Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4INCL::NYElasticChannel Class Reference

#include <G4INCLNYElasticChannel.hh>

Inheritance diagram for G4INCL::NYElasticChannel:
G4INCL::IChannel

Public Member Functions

void fillFinalState (FinalState *fs)
 
FinalStategetFinalState ()
 
 NYElasticChannel (Particle *, Particle *)
 
virtual ~NYElasticChannel ()
 

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NYElasticChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Detailed Description

Definition at line 47 of file G4INCLNYElasticChannel.hh.

Constructor & Destructor Documentation

◆ NYElasticChannel()

G4INCL::NYElasticChannel::NYElasticChannel ( Particle p1,
Particle p2 
)

Definition at line 49 of file G4INCLNYElasticChannel.cc.

◆ ~NYElasticChannel()

G4INCL::NYElasticChannel::~NYElasticChannel ( )
virtual

Definition at line 53 of file G4INCLNYElasticChannel.cc.

53{}

Member Function Documentation

◆ fillFinalState()

void G4INCL::NYElasticChannel::fillFinalState ( FinalState fs)
virtual

Implements G4INCL::IChannel.

Definition at line 55 of file G4INCLNYElasticChannel.cc.

55 {
56
57 Particle *nucleon;
58 Particle *hyperon;
59
60 if(particle1->isNucleon()){
63 }
64 else{
67 }
68
70
71 ThreeVector mom_hyperon = Random::normVector(Pcm);
72
73 hyperon->setMomentum(mom_hyperon);
74 nucleon->setMomentum(-mom_hyperon);
75
76 hyperon->adjustEnergyFromMomentum();
77 nucleon->adjustEnergyFromMomentum();
78
79 fs->addModifiedParticle(nucleon);
80 fs->addModifiedParticle(hyperon);
81
82 }
double G4double
Definition: G4Types.hh:83
G4bool isNucleon() const
G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
ThreeVector normVector(G4double norm=1.)
G4bool hyperon(G4int ityp)
G4bool nucleon(G4int ityp)

References G4INCL::FinalState::addModifiedParticle(), G4InuclParticleNames::hyperon(), G4INCL::Particle::isNucleon(), G4INCL::KinematicsUtils::momentumInCM(), G4INCL::Random::normVector(), G4InuclParticleNames::nucleon(), particle1, and particle2.

◆ getFinalState()

FinalState * G4INCL::IChannel::getFinalState ( )
inherited

Definition at line 50 of file G4INCLIChannel.cc.

50 {
51 FinalState *fs = new FinalState;
53 return fs;
54 }
virtual void fillFinalState(FinalState *fs)=0

References G4INCL::IChannel::fillFinalState().

◆ INCL_DECLARE_ALLOCATION_POOL()

G4INCL::NYElasticChannel::INCL_DECLARE_ALLOCATION_POOL ( NYElasticChannel  )
private

Field Documentation

◆ particle1

Particle* G4INCL::NYElasticChannel::particle1
private

Definition at line 55 of file G4INCLNYElasticChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NYElasticChannel::particle2
private

Definition at line 55 of file G4INCLNYElasticChannel.hh.

Referenced by fillFinalState().


The documentation for this class was generated from the following files: