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

#include <G4INCLNNToNSKChannel.hh>

Inheritance diagram for G4INCL::NNToNSKChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NNToNSKChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 2.
 

Detailed Description

Definition at line 47 of file G4INCLNNToNSKChannel.hh.

Constructor & Destructor Documentation

◆ NNToNSKChannel()

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

Definition at line 51 of file G4INCLNNToNSKChannel.cc.

◆ ~NNToNSKChannel()

G4INCL::NNToNSKChannel::~NNToNSKChannel ( )
virtual

Definition at line 55 of file G4INCLNNToNSKChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLNNToNSKChannel.cc.

57 {
58
59
61
63
64 ParticleType KaonType;
65 const G4double rdm = Random::shoot();
66 // pp->pS+K0 (1/4)
67 // pp->pS0K+ (1/8) // HEM
68 // pp->pS0K+ (1/4) // Data
69 // pp->nS+K+ (1)
70
71 // pn->nS+K0 (1/4)
72 // pn->pS-K+ (1/4)
73 // pn->nS0K+ (5/8)
74 // pn->pS0K0 (5/8)
75
76 if(iso == 2){
77 if(rdm * 6. < 4.){
78 KaonType = KPlus;
81 }
82 else if(rdm * 6. < 5.){
83 KaonType = KZero;
85 }
86 else{
87 KaonType = KPlus;
89 }
90 }
91 else if(iso == -2){
92 if(rdm * 6. < 8.){
93 KaonType = KZero;
96 }
97 else if(rdm * 6. < 5.){
98 KaonType = KPlus;
100 }
101 else{
102 KaonType = KZero;
104 }
105 }
106 else{
107 if(rdm * 14. < 2.){
108 KaonType = KZero;
111 }
112 else if(rdm * 14. < 4.){
113 KaonType = KPlus;
116 }
117 else if(rdm * 14. < 9.){
118 KaonType = KPlus;
121 }
122 else{
123 KaonType = KZero;
126 }
127 }
128
129 ParticleList list;
130 list.push_back(particle1);
131 list.push_back(particle2);
132 const ThreeVector &rcol = particle2->getPosition();
133 const ThreeVector zero;
134 Particle *kaon = new Particle(KaonType,zero,rcol);
135 list.push_back(kaon);
136
139
140 fs->addModifiedParticle(particle1);
141 fs->addModifiedParticle(particle2);
142 fs->addCreatedParticle(kaon);
143
144
145 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
static const G4double angularSlope
const G4INCL::ThreeVector & getPosition() const
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
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
static const G4LorentzVector zero(0., 0., 0., 0.)

References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::Particle::getPosition(), G4INCL::Particle::getType(), G4INCL::KPlus, G4INCL::KZero, G4INCL::Neutron, particle1, particle2, G4INCL::Proton, G4INCL::Particle::setType(), G4INCL::Random::shoot(), G4INCL::SigmaMinus, G4INCL::SigmaPlus, 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::NNToNSKChannel::INCL_DECLARE_ALLOCATION_POOL ( NNToNSKChannel  )
private

Field Documentation

◆ angularSlope

const G4double G4INCL::NNToNSKChannel::angularSlope = 2.
staticprivate

Definition at line 57 of file G4INCLNNToNSKChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::NNToNSKChannel::particle1
private

Definition at line 55 of file G4INCLNNToNSKChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NNToNSKChannel::particle2
private

Definition at line 55 of file G4INCLNNToNSKChannel.hh.

Referenced by fillFinalState().


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