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

#include <G4INCLNKbToNKbpiChannel.hh>

+ Inheritance diagram for G4INCL::NKbToNKbpiChannel:

Public Member Functions

 NKbToNKbpiChannel (Particle *, Particle *)
 
virtual ~NKbToNKbpiChannel ()
 
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 G4INCLNKbToNKbpiChannel.hh.

Constructor & Destructor Documentation

◆ NKbToNKbpiChannel()

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

Definition at line 51 of file G4INCLNKbToNKbpiChannel.cc.

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

◆ ~NKbToNKbpiChannel()

G4INCL::NKbToNKbpiChannel::~NKbToNKbpiChannel ( )
virtual

Definition at line 55 of file G4INCLNKbToNKbpiChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLNKbToNKbpiChannel.cc.

57 {
58
59 // ratio
60 // p K- (28) p K0b (20)
61 //
62 // p K- -> p K- pi0 (6)*
63 // p K- -> p K0b pi- (7)*
64 // p K- -> n K- pi+ (9)*
65 // p K- -> n K0b pi0 (6)
66 //
67 // p K0b -> p K0b pi0 (4)
68 // p K0b -> p K- pi+ (10)*
69 // p K0b -> n K0b pi+ (6)*
70 //
71
72 Particle *nucleon;
73 Particle *kaon;
74
75 if(particle1->isNucleon()){
76 nucleon = particle1;
77 kaon = particle2;
78 }
79 else{
80 nucleon = particle2;
81 kaon = particle1;
82 }
83
84 const G4double sqrtS = KinematicsUtils::totalEnergyInCM(nucleon, kaon);
85
86 const G4int iso = ParticleTable::getIsospin(nucleon->getType()) + ParticleTable::getIsospin(kaon->getType());
87 const G4int iso_n = ParticleTable::getIsospin(nucleon->getType());
88 G4double rdm = Random::shoot();
89
90 ParticleType PionType;
91
92 if(iso == 2 || iso == -2){
93 if(rdm*5. < 1.){
94 PionType = PiZero;
95 }
96 else if(rdm*2. < 1.){
97 PionType = ParticleTable::getPionType(iso);
98 nucleon->setType(ParticleTable::getNucleonType(-iso/2));
99 }
100 else{
101 PionType = ParticleTable::getPionType(iso);
102 kaon->setType(ParticleTable::getAntiKaonType(-iso/2));
103 }
104 }
105 else{
106 if(rdm*28. < 6.){
107 PionType = PiZero;
108 }
109 else if(rdm*28. < 13.){
110 kaon->setType(ParticleTable::getAntiKaonType(iso_n));
111 PionType = ParticleTable::getPionType(-2*iso_n);
112 }
113 else if(rdm*28. < 22.){
114 nucleon->setType(ParticleTable::getNucleonType(-iso_n));
115 PionType = ParticleTable::getPionType(2*iso_n);
116 }
117 else{
118 kaon->setType(ParticleTable::getAntiKaonType(iso_n));
119 nucleon->setType(ParticleTable::getNucleonType(-iso_n));
120 PionType = PiZero;
121 }
122 }
123
124 ParticleList list;
125 list.push_back(nucleon);
126 list.push_back(kaon);
127 const ThreeVector &rcol = nucleon->getPosition();
128 const ThreeVector zero;
129 Particle *pion = new Particle(PionType,zero,rcol);
130 list.push_back(pion);
131
132 PhaseSpaceGenerator::generateBiased(sqrtS, list, 0, angularSlope);
133
134 fs->addModifiedParticle(nucleon);
135 fs->addModifiedParticle(kaon);
136 fs->addCreatedParticle(pion);
137
138 }
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)
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.
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: