Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::NNToNNOmegaChannel Class Reference

#include <G4INCLNNToNNOmegaChannel.hh>

+ Inheritance diagram for G4INCL::NNToNNOmegaChannel:

Public Member Functions

 NNToNNOmegaChannel (Particle *, Particle *)
 
virtual ~NNToNNOmegaChannel ()
 
void fillFinalState (FinalState *fs)
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 
FinalStategetFinalState ()
 

Detailed Description

Definition at line 47 of file G4INCLNNToNNOmegaChannel.hh.

Constructor & Destructor Documentation

◆ NNToNNOmegaChannel()

G4INCL::NNToNNOmegaChannel::NNToNNOmegaChannel ( Particle * p1,
Particle * p2 )

Definition at line 51 of file G4INCLNNToNNOmegaChannel.cc.

52 : iso1(0),
53 iso2(0),
54 particle1(p1),
55 particle2(p2)
56 {}

◆ ~NNToNNOmegaChannel()

G4INCL::NNToNNOmegaChannel::~NNToNNOmegaChannel ( )
virtual

Definition at line 58 of file G4INCLNNToNNOmegaChannel.cc.

58 {
59
60 }

Member Function Documentation

◆ fillFinalState()

void G4INCL::NNToNNOmegaChannel::fillFinalState ( FinalState * fs)
virtual

Implements G4INCL::IChannel.

Definition at line 62 of file G4INCLNNToNNOmegaChannel.cc.

62 {
63
64 iso1=ParticleTable::getIsospin(particle1->getType());
65 iso2=ParticleTable::getIsospin(particle2->getType());
66
67 ParticleList list;
68 list.push_back(particle1);
69 list.push_back(particle2);
70 fs->addModifiedParticle(particle1);
71 fs->addModifiedParticle(particle2);
72
73 const G4double sqrtS = KinematicsUtils::totalEnergyInCM(particle1, particle2);
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 omegaType=Omega;
84 Particle *omegaCreated = new Particle(omegaType,zero,rcol);
85 list.push_back(omegaCreated);
86 fs->addCreatedParticle(omegaCreated);
87
88 G4int biasIndex = ((Random::shoot()<0.5) ? 0 : 1);
89 PhaseSpaceGenerator::generateBiased(sqrtS, list, biasIndex, angularSlope);
90
91 }
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)
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()

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