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

#include <G4INCLNDeltaEtaProductionChannel.hh>

+ Inheritance diagram for G4INCL::NDeltaEtaProductionChannel:

Public Member Functions

 NDeltaEtaProductionChannel (Particle *, Particle *)
 
virtual ~NDeltaEtaProductionChannel ()
 
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 48 of file G4INCLNDeltaEtaProductionChannel.hh.

Constructor & Destructor Documentation

◆ NDeltaEtaProductionChannel()

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

Definition at line 51 of file G4INCLNDeltaEtaProductionChannel.cc.

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

◆ ~NDeltaEtaProductionChannel()

G4INCL::NDeltaEtaProductionChannel::~NDeltaEtaProductionChannel ( )
virtual

Definition at line 55 of file G4INCLNDeltaEtaProductionChannel.cc.

55{}

Member Function Documentation

◆ fillFinalState()

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

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

Implements G4INCL::IChannel.

Definition at line 98 of file G4INCLNDeltaEtaProductionChannel.cc.

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

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