65 G4int available_iso = 0;
74 pion_initial = particle1;
75 nucleon_initial = particle2;
78 pion_initial = particle2;
79 nucleon_initial = particle1;
94 else if((iso == 0 && rdm < 0.55) || rdm < 0.5){
109 nbr_pions = std::min(max_pions,std::max(min_pions,
G4int(intermediaire )));
111 available_iso += nbr_pions*2;
112#ifdef INCLXX_IN_GEANT4_MODE
129 G4bool pip_p = (std::abs(iso) == 3);
133 G4bool pim_p = (!pip_p && !piz_p);
135 for(
Int_t i=0; i<nbr_pions; i++){
137 if(available_iso-std::abs(iso-iso_system) >= 4){
139 if((pip_p && rdm < 0.54) || (piz_p && rdm < 0.32) || (pim_p && rdm < 0.45)){
144 else if((pip_p && rdm < 0.80) || (piz_p && rdm < 0.77) || (pim_p && rdm < 0.82)){
154 else if(available_iso-std::abs(iso-iso_system) == 2){
168 else if(available_iso-std::abs(iso-iso_system) == 0){
173 else INCL_ERROR(
"Pion Generation Problem in NpiToMissingStrangenessChannel" <<
'\n');
174 list.push_back(pion);
181 else if(min_pions == 1){
184 if(std::abs(iso-iso_system) == 3){
189 else if(std::abs(iso-iso_system) == 1){
195 else INCL_ERROR(
"Isospin non-conservation in NNToMissingStrangenessChannel" <<
'\n');
196 list.push_back(antikaon);
201 if(std::abs(iso-iso_system) == 3){
205 else if(std::abs(iso-iso_system) == 1){
207 if((pip_p && rdm < 0.73) || (piz_p && rdm < 0.32) || (pim_p && rdm < 0.45)){
216 else INCL_ERROR(
"Isospin non-conservation in NNToMissingStrangenessChannel" <<
'\n');
219 list.push_back(pion_initial);
220 list.push_back(nucleon_initial);
void setParentResonancePDGCode(const G4int parentPDGCode)
const G4INCL::ThreeVector & getPosition() const
void setParentResonanceID(const G4int parentID)
G4INCL::ParticleType getType() const
void setType(ParticleType t)
ParticleType getKaonType(const G4int isosp)
Get the type of kaon.
ParticleType getSigmaType(const G4int isosp)
Get the type of sigma.
G4double getINCLMass(const G4int A, const G4int Z, const G4int S)
Get INCL nuclear mass (in MeV/c^2)
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.
ParticleType getAntiKaonType(const G4int isosp)
Get the type of antikaon.