34#define INCLXX_IN_GEANT4_MODE 1
49 const G4double PiNToMultiPionsChannel::angularSlope = 15.;
57 std::fill(isosp, isosp+4, 0);
77#ifdef INCLXX_IN_GEANT4_MODE
79 nucleon->setParentResonancePDGCode(0);
80 nucleon->setParentResonanceID(0);
81 pion->setParentResonancePDGCode(0);
82 pion->setParentResonanceID(0);
88 list.push_back(nucleon);
93 isospinRepartition(ipi);
98 pion->setType(pionType);
101 for(
G4int i=1; i<npion; ++i) {
105 list.push_back(newPion);
114 void PiNToMultiPionsChannel::isospinRepartition(
G4int ipi) {
116 const G4int itot=ipi*ind2;
147 else if (itot == 0) {
169 else if (itot == -2) {
224 else if (itot == 0) {
255 else if (itot == 2) {
void addModifiedParticle(Particle *p)
void addCreatedParticle(Particle *p)
void setType(ParticleType t)
virtual ~PiNToMultiPionsChannel()
PiNToMultiPionsChannel(const G4int, 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.
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
ParticleType getPionType(const G4int isosp)
Get the type of pion.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
Adapter const & getAdapter()