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

#include <G4INCLOmegaNToPiPiNChannel.hh>

+ Inheritance diagram for G4INCL::OmegaNToPiPiNChannel:

Public Member Functions

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

Detailed Description

Definition at line 47 of file G4INCLOmegaNToPiPiNChannel.hh.

Constructor & Destructor Documentation

◆ OmegaNToPiPiNChannel()

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

Definition at line 51 of file G4INCLOmegaNToPiPiNChannel.cc.

52 : ind2(0),
53 particle1(p1),
54 particle2(p2)
55 {}

◆ ~OmegaNToPiPiNChannel()

G4INCL::OmegaNToPiPiNChannel::~OmegaNToPiPiNChannel ( )
virtual

Definition at line 57 of file G4INCLOmegaNToPiPiNChannel.cc.

57 {
58
59 }

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 61 of file G4INCLOmegaNToPiPiNChannel.cc.

61 {
62
63 Particle * nucleon;
64 Particle * omega;
65 if(particle1->isNucleon()) {
66 nucleon = particle1;
67 omega = particle2;
68 } else {
69 nucleon = particle2;
70 omega = particle1;
71 }
72
73 const G4double sqrtS = KinematicsUtils::totalEnergyInCM(nucleon, omega);
74
75 ind2=ParticleTable::getIsospin(nucleon->getType());
76
77 omega->setType(PiZero);
78
79 ParticleType pionType;
81 if (ind2 == 1) {
82 if (rs1*2. > 1.) pionType=PiZero;
83 else {
84 pionType=PiPlus;
85 ind2=-ind2;
86 }
87 }
88 else {
89 if (rs1*2. > 1.) pionType=PiZero;
90 else {
91 pionType=PiMinus;
92 ind2=-ind2;
93 }
94 }
95
96
98 nucleon->setType(tn);
99 ParticleList list;
100 list.push_back(nucleon);
101 list.push_back(omega);
102 const ThreeVector &rcolpion = omega->getPosition();
103 const ThreeVector zero;
104 Particle *newPion = new Particle(pionType,zero,rcolpion);
105 list.push_back(newPion);
106 fs->addModifiedParticle(nucleon);
107 fs->addModifiedParticle(omega);
108 fs->addCreatedParticle(newPion);
109
110 PhaseSpaceGenerator::generateBiased(sqrtS, list, 0, angularSlope);
111
112 }
double G4double
Definition: G4Types.hh:83
G4bool isNucleon() const
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
G4bool nucleon(G4int ityp)

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