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

#include <G4INCLNKbToS2piChannel.hh>

Inheritance diagram for G4INCL::NKbToS2piChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NKbToS2piChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 4.
 

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.

◆ ~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()){
74 kaon = particle2;
75 }
76 else{
78 kaon = particle1;
79 }
80
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
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
static const G4double angularSlope
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)
static const G4LorentzVector zero(0., 0., 0., 0.)

References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::ParticleTable::getPionType(), G4INCL::ParticleTable::getSigmaType(), G4INCL::Particle::getType(), G4INCL::Particle::isNucleon(), G4InuclParticleNames::nucleon(), particle1, particle2, G4InuclParticleNames::pion(), G4INCL::PiZero, G4INCL::Particle::setType(), G4INCL::Random::shoot(), G4INCL::SigmaZero, 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::NKbToS2piChannel::INCL_DECLARE_ALLOCATION_POOL ( NKbToS2piChannel  )
private

Field Documentation

◆ angularSlope

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

Definition at line 57 of file G4INCLNKbToS2piChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::NKbToS2piChannel::particle1
private

Definition at line 55 of file G4INCLNKbToS2piChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NKbToS2piChannel::particle2
private

Definition at line 55 of file G4INCLNKbToS2piChannel.hh.

Referenced by fillFinalState().


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