34#define INCLXX_IN_GEANT4_MODE 1
48 : particle1(p1), particle2(p2)
79 nucleon->setParentResonancePDGCode(0);
80 nucleon->setParentResonanceID(0);
81 pion->setParentResonancePDGCode(0);
82 pion->setParentResonanceID(0);
84 G4double sh=nucleon->getEnergy()+pion->getEnergy();
87 G4double en=(sh*sh+mn*mn-me*me)/(2*sh);
88 nucleon->setEnergy(en);
89 G4double ee=std::sqrt(en*en-mn*mn+me*me);
108 G4double f1= -0.0000288627*ECM*ECM+0.09155289*ECM-72.25436;
109 G4double b1=(f1-(f1/(1.5-0.5*std::pow((ECM-1580.)/95.,2))))/2.;
123 fteta=(a1*x1*x1+b1*x1+c1)/interg1;
125 if (u1*f1/interg1 < fteta) {
140 G4double interg2=0.1716182902205207;
151 fteta=((a2*x1*x1+b2*x1+c2)*(0.5+(std::atan(10*(x1+dev)))/pi) + vert)/interg2;
163 pn*std::sin(teta)*std::cos(fi),
164 pn*std::sin(teta)*std::sin(fi),
169 nucleon->setMomentum(-mom_nucleon);
170 pion->setMomentum(mom_nucleon);
void addModifiedParticle(Particle *p)
virtual ~PiNToEtaChannel()
PiNToEtaChannel(Particle *, Particle *)
void fillFinalState(FinalState *fs)
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.