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

#include <G4INCLNNToNNEtaChannel.hh>

Inheritance diagram for G4INCL::NNToNNEtaChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NNToNNEtaChannel)
 

Private Attributes

G4int iso1
 
G4int iso2
 
Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 6.
 

Detailed Description

Definition at line 47 of file G4INCLNNToNNEtaChannel.hh.

Constructor & Destructor Documentation

◆ NNToNNEtaChannel()

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

◆ ~NNToNNEtaChannel()

G4INCL::NNToNNEtaChannel::~NNToNNEtaChannel ( )
virtual

Definition at line 58 of file G4INCLNNToNNEtaChannel.cc.

58 {
59
60 }

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 62 of file G4INCLNNToNNEtaChannel.cc.

62 {
63
66
67 ParticleList list;
68 list.push_back(particle1);
69 list.push_back(particle2);
70 fs->addModifiedParticle(particle1);
71 fs->addModifiedParticle(particle2);
72
74
76 particle1->setType(tn1);
78 particle2->setType(tn2);
79 const ThreeVector &rcolnucleon1 = particle1->getPosition();
80 const ThreeVector &rcolnucleon2 = particle2->getPosition();
81 const ThreeVector rcol = (rcolnucleon1+rcolnucleon2)*0.5;
82 const ThreeVector zero;
83 ParticleType etaType=Eta;
84 Particle *etaCreated = new Particle(etaType,zero,rcol);
85 list.push_back(etaCreated);
86 fs->addCreatedParticle(etaCreated);
87
88 G4int biasIndex = ((Random::shoot()<0.5) ? 0 : 1);
90
91 }
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.
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::Eta, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::ParticleTable::getNucleonType(), G4INCL::Particle::getPosition(), G4INCL::Particle::getType(), iso1, iso2, particle1, particle2, 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::NNToNNEtaChannel::INCL_DECLARE_ALLOCATION_POOL ( NNToNNEtaChannel  )
private

Field Documentation

◆ angularSlope

const G4double G4INCL::NNToNNEtaChannel::angularSlope = 6.
staticprivate

Definition at line 59 of file G4INCLNNToNNEtaChannel.hh.

Referenced by fillFinalState().

◆ iso1

G4int G4INCL::NNToNNEtaChannel::iso1
private

Definition at line 55 of file G4INCLNNToNNEtaChannel.hh.

Referenced by fillFinalState().

◆ iso2

G4int G4INCL::NNToNNEtaChannel::iso2
private

Definition at line 56 of file G4INCLNNToNNEtaChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::NNToNNEtaChannel::particle1
private

Definition at line 57 of file G4INCLNNToNNEtaChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NNToNNEtaChannel::particle2
private

Definition at line 57 of file G4INCLNNToNNEtaChannel.hh.

Referenced by fillFinalState().


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