Geant4-11
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
G4INCL::NKbToNKbpiChannel Class Reference

#include <G4INCLNKbToNKbpiChannel.hh>

Inheritance diagram for G4INCL::NKbToNKbpiChannel:
G4INCL::IChannel

Public Member Functions

void fillFinalState (FinalState *fs)
 
FinalStategetFinalState ()
 
 NKbToNKbpiChannel (Particle *, Particle *)
 
virtual ~NKbToNKbpiChannel ()
 

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NKbToNKbpiChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 4.
 

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.

◆ ~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()){
77 kaon = particle2;
78 }
79 else{
81 kaon = particle1;
82 }
83
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
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
static const G4double angularSlope
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)
static const G4LorentzVector zero(0., 0., 0., 0.)

References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getAntiKaonType(), G4INCL::ParticleTable::getIsospin(), G4INCL::ParticleTable::getNucleonType(), G4INCL::ParticleTable::getPionType(), G4INCL::Particle::getType(), G4INCL::Particle::isNucleon(), G4InuclParticleNames::nucleon(), particle1, particle2, G4InuclParticleNames::pion(), G4INCL::PiZero, G4INCL::Particle::setType(), G4INCL::Random::shoot(), G4INCL::KinematicsUtils::totalEnergyInCM(), and anonymous_namespace{G4CascadeDeexciteBase.cc}::zero.

◆ getFinalState()

FinalState * G4INCL::IChannel::getFinalState ( )
inherited

Definition at line 50 of file G4INCLIChannel.cc.

50 {
51 FinalState *fs = new FinalState;
53 return fs;
54 }
virtual void fillFinalState(FinalState *fs)=0

References G4INCL::IChannel::fillFinalState().

◆ INCL_DECLARE_ALLOCATION_POOL()

G4INCL::NKbToNKbpiChannel::INCL_DECLARE_ALLOCATION_POOL ( NKbToNKbpiChannel  )
private

Field Documentation

◆ angularSlope

const G4double G4INCL::NKbToNKbpiChannel::angularSlope = 4.
staticprivate

Definition at line 57 of file G4INCLNKbToNKbpiChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::NKbToNKbpiChannel::particle1
private

Definition at line 55 of file G4INCLNKbToNKbpiChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NKbToNKbpiChannel::particle2
private

Definition at line 55 of file G4INCLNKbToNKbpiChannel.hh.

Referenced by fillFinalState().


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