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

#include <G4INCLNNToNLKChannel.hh>

Inheritance diagram for G4INCL::NNToNLKChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NNToNLKChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 2.
 

Detailed Description

Definition at line 47 of file G4INCLNNToNLKChannel.hh.

Constructor & Destructor Documentation

◆ NNToNLKChannel()

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

Definition at line 51 of file G4INCLNNToNLKChannel.cc.

◆ ~NNToNLKChannel()

G4INCL::NNToNLKChannel::~NNToNLKChannel ( )
virtual

Definition at line 55 of file G4INCLNNToNLKChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLNNToNLKChannel.cc.

57 {
58
60
62
63 ParticleType KaonType;
65
66 if(iso == 2) KaonType = KPlus;
67 else if(iso == -2) KaonType = KZero;
68 else if(Random::shoot() < 0.5){
70 KaonType = KZero;
71 }
72 else{
74 KaonType = KPlus;
75 }
76
77 ParticleList list;
78 list.push_back(particle1);
79 list.push_back(particle2);
80 const ThreeVector &rcol = particle2->getPosition();
81 const ThreeVector zero;
82 Particle *kaon = new Particle(KaonType,zero,rcol);
83 list.push_back(kaon);
84
87
88 fs->addModifiedParticle(particle1);
89 fs->addModifiedParticle(particle2);
90 fs->addCreatedParticle(kaon);
91
92 }
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::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::NNToNLKChannel::INCL_DECLARE_ALLOCATION_POOL ( NNToNLKChannel  )
private

Field Documentation

◆ angularSlope

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

Definition at line 57 of file G4INCLNNToNLKChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::NNToNLKChannel::particle1
private

Definition at line 55 of file G4INCLNNToNLKChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NNToNLKChannel::particle2
private

Definition at line 55 of file G4INCLNNToNLKChannel.hh.

Referenced by fillFinalState().


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