Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::EtaNToPiPiNChannel Class Reference

#include <G4INCLEtaNToPiPiNChannel.hh>

+ Inheritance 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

◆ EtaNToPiPiNChannel()

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 {}

◆ ~EtaNToPiPiNChannel()

G4INCL::EtaNToPiPiNChannel::~EtaNToPiPiNChannel ( )
virtual

Definition at line 57 of file G4INCLEtaNToPiPiNChannel.cc.

57 {
58
59 }

Member Function Documentation

◆ fillFinalState()

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;
81 if (ind2 == 1) {
82 if (rs1*6. > 5.) pionType=PiZero;
83 else if (rs1*6. > 3.) {
84 pionType=PiPlus;
85 ind2=-ind2;
86 }
87 else {
88 pionType=PiPlus;
89 eta->setType(PiMinus);
90 }
91 }
92 else {
93 if (rs1*6. > 5.) pionType=PiZero;
94 else if (rs1*6. > 3.) {
95 pionType=PiMinus;
96 ind2=-ind2;
97 }
98 else {
99 pionType=PiPlus;
100 eta->setType(PiMinus);
101 }
102 }
103
104
106 nucleon->setType(tn);
107 ParticleList list;
108 list.push_back(nucleon);
109 list.push_back(eta);
110 const ThreeVector &rcolpion = eta->getPosition();
111 const ThreeVector zero;
112 Particle *newPion = new Particle(pionType,zero,rcolpion);
113 list.push_back(newPion);
114 fs->addModifiedParticle(nucleon);
115 fs->addModifiedParticle(eta);
116 fs->addCreatedParticle(newPion);
117
118 PhaseSpaceGenerator::generateBiased(sqrtS, list, 0, angularSlope);
119
120 }
double G4double
Definition G4Types.hh:83
G4bool isNucleon() const
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
G4double shoot()
G4bool nucleon(G4int ityp)

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