Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4INCL::EtaNToPiPiNChannel Class Reference

#include <G4INCLEtaNToPiPiNChannel.hh>

Inheritance diagram for G4INCL::EtaNToPiPiNChannel:
Collaboration diagram for G4INCL::EtaNToPiPiNChannel:

Public Member Functions

 EtaNToPiPiNChannel (Particle *, Particle *)
 
virtual ~EtaNToPiPiNChannel ()
 
void fillFinalState (FinalState *fs)
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 
FinalStategetFinalState ()
 

Detailed Description

Definition at line 47 of file G4INCLEtaNToPiPiNChannel.hh.

Constructor & Destructor Documentation

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

Definition at line 51 of file G4INCLEtaNToPiPiNChannel.cc.

52  : ind2(0),
53  particle1(p1),
54  particle2(p2)
55  {}
G4INCL::EtaNToPiPiNChannel::~EtaNToPiPiNChannel ( )
virtual

Definition at line 57 of file G4INCLEtaNToPiPiNChannel.cc.

57  {
58 
59  }

Member Function Documentation

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

Implements G4INCL::IChannel.

Definition at line 61 of file G4INCLEtaNToPiPiNChannel.cc.

61  {
62 
63  Particle * nucleon;
64  Particle * eta;
65  if(particle1->isNucleon()) {
66  nucleon = particle1;
67  eta = particle2;
68  } else {
69  nucleon = particle2;
70  eta = particle1;
71  }
72 
73  const G4double sqrtS = KinematicsUtils::totalEnergyInCM(nucleon, eta);
74 
75  ind2=ParticleTable::getIsospin(nucleon->getType());
76 
77  eta->setType(PiZero);
78 
79  ParticleType pionType;
80  G4double rs1=Random::shoot();
81  if (ind2 == 1) {
82  if (rs1*2. > 1.) pionType=PiZero;
83  else {
84  pionType=PiPlus;
85  ind2=-ind2;
86  }
87  }
88  else {
89  if (rs1*2. > 1.) pionType=PiZero;
90  else {
91  pionType=PiMinus;
92  ind2=-ind2;
93  }
94  }
95 
96 
98  nucleon->setType(tn);
99  ParticleList list;
100  list.push_back(nucleon);
101  list.push_back(eta);
102  const ThreeVector &rcolpion = eta->getPosition();
103  const ThreeVector zero;
104  Particle *newPion = new Particle(pionType,zero,rcolpion);
105  list.push_back(newPion);
106  fs->addModifiedParticle(nucleon);
107  fs->addModifiedParticle(eta);
108  fs->addCreatedParticle(newPion);
109 
110  PhaseSpaceGenerator::generateBiased(sqrtS, list, 0, angularSlope);
111 
112  }
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
G4bool nucleon(G4int ityp)
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
G4bool isNucleon() const
G4double shoot()
Definition: G4INCLRandom.cc:93
double G4double
Definition: G4Types.hh:76
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)

Here is the call graph for this function:


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