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

#include <G4INCLNDeltaToNLKChannel.hh>

Inheritance diagram for G4INCL::NDeltaToNLKChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NDeltaToNLKChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 2.
 

Detailed Description

Definition at line 47 of file G4INCLNDeltaToNLKChannel.hh.

Constructor & Destructor Documentation

◆ NDeltaToNLKChannel()

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

◆ ~NDeltaToNLKChannel()

G4INCL::NDeltaToNLKChannel::~NDeltaToNLKChannel ( )
virtual

Definition at line 55 of file G4INCLNDeltaToNLKChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLNDeltaToNLKChannel.cc.

57 {
58 // D++ n -> p L K+ (3)
59 //
60 // D+ p -> p L K+ (1)
61 //
62 // D+ n -> p L K0 (1)
63 // D+ n -> n L K+ (1)
64
66
68
69 ParticleType KaonType;
70 ParticleType NucleonType;
72
73 if(std::abs(iso) == 2){// D++ n and D+ p
74 KaonType = ParticleTable::getKaonType(iso/2);
75 NucleonType = ParticleTable::getNucleonType(iso/2);
76 }
77 else if(Random::shoot() < 0.5){// D+ n
78 KaonType = KPlus;
79 NucleonType = Neutron;
80 }
81 else{// D+ n
82 KaonType = KZero;
83 NucleonType = Proton;
84 }
85 particle1->setType(NucleonType);
86
87 ParticleList list;
88 list.push_back(particle1);
89 list.push_back(particle2);
90 const ThreeVector &rcol = particle2->getPosition();
91 const ThreeVector zero;
92 Particle *kaon = new Particle(KaonType,zero,rcol);
93 list.push_back(kaon);
94
97
98 fs->addModifiedParticle(particle1);
99 fs->addModifiedParticle(particle2);
100 fs->addCreatedParticle(kaon);
101
102 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4INCL::ThreeVector & getPosition() const
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
ParticleType getKaonType(const G4int isosp)
Get the type of kaon.
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
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::ParticleTable::getKaonType(), G4INCL::ParticleTable::getNucleonType(), G4INCL::Particle::getPosition(), G4INCL::Particle::getType(), G4INCL::KPlus, G4INCL::KZero, G4INCL::Lambda, G4INCL::Neutron, particle1, particle2, G4INCL::Proton, 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::NDeltaToNLKChannel::INCL_DECLARE_ALLOCATION_POOL ( NDeltaToNLKChannel  )
private

Field Documentation

◆ angularSlope

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

Definition at line 57 of file G4INCLNDeltaToNLKChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::NDeltaToNLKChannel::particle1
private

Definition at line 55 of file G4INCLNDeltaToNLKChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NDeltaToNLKChannel::particle2
private

Definition at line 55 of file G4INCLNDeltaToNLKChannel.hh.

Referenced by fillFinalState().


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