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

#include <G4INCLNDeltaOmegaProductionChannel.hh>

+ Inheritance diagram for G4INCL::NDeltaOmegaProductionChannel:

Public Member Functions

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

Detailed Description

Definition at line 48 of file G4INCLNDeltaOmegaProductionChannel.hh.

Constructor & Destructor Documentation

◆ NDeltaOmegaProductionChannel()

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

Definition at line 51 of file G4INCLNDeltaOmegaProductionChannel.cc.

52 : particle1(p1), particle2(p2)
53 {}

◆ ~NDeltaOmegaProductionChannel()

G4INCL::NDeltaOmegaProductionChannel::~NDeltaOmegaProductionChannel ( )
virtual

Definition at line 55 of file G4INCLNDeltaOmegaProductionChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

Unlike NN -> NDelta, NN -> NDeltaOmega is drawn from a phase-space generator

Implements G4INCL::IChannel.

Definition at line 97 of file G4INCLNDeltaOmegaProductionChannel.cc.

97 {
98
99/**
100*
101* Unlike NN -> NDelta, NN -> NDeltaOmega is drawn from a phase-space generator
102*
103**/
104
105 G4int is1=ParticleTable::getIsospin(particle1->getType());
106 G4int is2=ParticleTable::getIsospin(particle2->getType());
107
108 ParticleList list;
109 list.push_back(particle1);
110 list.push_back(particle2);
111
112// isospin Repartition of N and Delta;
113 G4double ecm = KinematicsUtils::totalEnergyInCM(particle1, particle2);
114 const G4int isospin = is1+is2;
115
116 G4double rndm = 0.0;
117 G4double xmdel = sampleDeltaMass(ecm);
118
119 G4int index2=0;
120 if (isospin == 0) { // pn case
121 rndm = Random::shoot();
122 if (rndm < 0.5) index2=1;
123 }
124
125 if (isospin == 0) {
126 if(index2 == 1) {
127 G4int isi=is1;
128 is1=is2;
129 is2=isi;
130 }
131// particle1->setHelicity(0.0);
132 } else {
133 rndm = Random::shoot();
134 if (rndm >= 0.25) {
135 is1=3*is1;
136 is2=-is2;
137 }
138// particle1->setHelicity(ctet*ctet);
139 }
140
142 particle1->setType(DeltaMinus);
143 } else if(is1 == ParticleTable::getIsospin(DeltaZero)) {
144 particle1->setType(DeltaZero);
145 } else if(is1 == ParticleTable::getIsospin(DeltaPlus)) {
146 particle1->setType(DeltaPlus);
147 } else if(is1 == ParticleTable::getIsospin(DeltaPlusPlus)) {
148 particle1->setType(DeltaPlusPlus);
149 }
150
152 particle2->setType(Proton);
153 } else if(is2 == ParticleTable::getIsospin(Neutron)) {
154 particle2->setType(Neutron);
155 }
156
157 if(particle1->isDelta()) particle1->setMass(xmdel);
158 if(particle2->isDelta()) particle2->setMass(xmdel);
159
160 const ThreeVector &rcolnucleon1 = particle1->getPosition();
161 const ThreeVector &rcolnucleon2 = particle2->getPosition();
162 const ThreeVector rcol = (rcolnucleon1+rcolnucleon2)*0.5;
163 const ThreeVector zero;
164 Particle *omega = new Particle(Omega,zero,rcol);
165 list.push_back(omega);
166 fs->addCreatedParticle(omega);
167
168 const G4double sqrtS = KinematicsUtils::totalEnergyInCM(particle1, particle2);
169 G4int biasIndex = ((Random::shoot()<0.5) ? 0 : 1);
170 PhaseSpaceGenerator::generateBiased(sqrtS, list, biasIndex, angularSlope);
171
172 const ThreeVector vz(0.0,0.0,1.0);
173 G4double ctet=(particle1->getMomentum().dot(vz))/particle1->getMomentum().mag();
174 if (isospin == 0)
175 particle1->setHelicity(0.0);
176 else
177 particle1->setHelicity(ctet*ctet);
178
179 fs->addModifiedParticle(particle1);
180 fs->addModifiedParticle(particle2);
181
182 }
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
void setMass(G4double mass)
void setHelicity(G4double h)
const G4INCL::ThreeVector & getPosition() const
const G4INCL::ThreeVector & getMomentum() const
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4bool isDelta() const
Is it a Delta?
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()

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