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

#include <G4INCLNKbToS2piChannel.hh>

+ Inheritance diagram for G4INCL::NKbToS2piChannel:

Public Member Functions

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

Detailed Description

Definition at line 47 of file G4INCLNKbToS2piChannel.hh.

Constructor & Destructor Documentation

◆ NKbToS2piChannel()

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

Definition at line 51 of file G4INCLNKbToS2piChannel.cc.

52 : particle1(p1), particle2(p2)
53 {}

◆ ~NKbToS2piChannel()

G4INCL::NKbToS2piChannel::~NKbToS2piChannel ( )
virtual

Definition at line 55 of file G4INCLNKbToS2piChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLNKbToS2piChannel.cc.

57 {
58
59 // p K0b -> S+ pi+ pi- (2/3)
60 // p K0b -> S+ pi0 pi0 (1/4)
61 // p K0b -> S0 pi+ pi0 (5/6)
62 // p K0b -> S- pi+ pi+ (2/3)
63 //
64 // p K- -> S+ pi0 pi- (1)
65 // p K- -> S0 pi+ pi- (2/3)
66 // p K- -> S0 pi0 pi0 (1/8)
67 // p K- -> S- pi+ pi0 (2/3)
68
69 Particle *nucleon;
70 Particle *kaon;
71
72 if(particle1->isNucleon()){
73 nucleon = particle1;
74 kaon = particle2;
75 }
76 else{
77 nucleon = particle2;
78 kaon = particle1;
79 }
80
81 const G4double sqrtS = KinematicsUtils::totalEnergyInCM(nucleon, kaon);
82
83 const G4int iso = ParticleTable::getIsospin(nucleon->getType()) + ParticleTable::getIsospin(kaon->getType());
84 const G4int iso_n = ParticleTable::getIsospin(nucleon->getType());
85 G4double rdm = Random::shoot();
86
87 ParticleType PionType;
88
89 if(iso == 2 || iso == -2){
90 if(rdm*29. < 8.){
91 PionType = ParticleTable::getPionType(-iso);
92 kaon->setType(ParticleTable::getPionType(iso));
94 }
95 else if(rdm*29. < 11.){
96 PionType = PiZero;
97 kaon->setType(PiZero);
99 }
100 else if(rdm*29. < 21.){
101 PionType = PiZero;
102 kaon->setType(ParticleTable::getPionType(iso));
103 nucleon->setType(SigmaZero);
104 }
105 else{
106 PionType = ParticleTable::getPionType(iso);
107 kaon->setType(ParticleTable::getPionType(iso));
108 nucleon->setType(ParticleTable::getSigmaType(-iso));
109 }
110 }
111 else{
112 if(rdm*59. < 24.){
113 PionType = PiZero;
114 kaon->setType(ParticleTable::getPionType(-2*iso_n));
115 nucleon->setType(ParticleTable::getSigmaType(2*iso_n));
116 }
117 else if(rdm*59. < 40.){
118 PionType = ParticleTable::getPionType(2*iso_n);
119 kaon->setType(ParticleTable::getPionType(-2*iso_n));
120 nucleon->setType(SigmaZero);
121 }
122 else if(rdm*59. < 43.){
123 PionType = PiZero;
124 kaon->setType(PiZero);
125 nucleon->setType(SigmaZero);
126 }
127 else{
128 PionType = ParticleTable::getPionType(2*iso_n);
129 kaon->setType(PiZero);
130 nucleon->setType(ParticleTable::getSigmaType(-2*iso_n));
131 }
132 }
133
134 ParticleList list;
135 list.push_back(nucleon);
136 list.push_back(kaon);
137 const ThreeVector &rcol = nucleon->getPosition();
138 const ThreeVector zero;
139 Particle *pion = new Particle(PionType,zero,rcol);
140 list.push_back(pion);
141
142 PhaseSpaceGenerator::generateBiased(sqrtS, list, 0, angularSlope);
143
144 fs->addModifiedParticle(nucleon);
145 fs->addModifiedParticle(kaon);
146 fs->addCreatedParticle(pion);
147
148 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4bool isNucleon() const
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
ParticleType getSigmaType(const G4int isosp)
Get the type of sigma.
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
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.
G4double shoot()
Definition: G4INCLRandom.cc:93
G4bool pion(G4int ityp)
G4bool nucleon(G4int ityp)

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