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

#include <G4INCLNDeltaOmegaProductionChannel.hh>

Inheritance diagram for G4INCL::NDeltaOmegaProductionChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (NDeltaOmegaProductionChannel)
 
G4double sampleDeltaMass (G4double ecm)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 6.
 
static const G4int maxTries = 100000
 

Detailed Description

Definition at line 48 of file G4INCLNDeltaOmegaProductionChannel.hh.

Constructor & Destructor Documentation

◆ NDeltaOmegaProductionChannel()

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

◆ ~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
107
108 ParticleList list;
109 list.push_back(particle1);
110 list.push_back(particle2);
111
112// isospin Repartition of N and Delta;
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
143 } else if(is1 == ParticleTable::getIsospin(DeltaZero)) {
145 } else if(is1 == ParticleTable::getIsospin(DeltaPlus)) {
147 } else if(is1 == ParticleTable::getIsospin(DeltaPlusPlus)) {
149 }
150
153 } else if(is2 == ParticleTable::getIsospin(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
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);
174 if (isospin == 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 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
static const G4LorentzVector zero(0., 0., 0., 0.)

References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::DeltaMinus, G4INCL::DeltaPlus, G4INCL::DeltaPlusPlus, G4INCL::DeltaZero, G4INCL::ThreeVector::dot(), G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::Particle::getMomentum(), G4INCL::Particle::getPosition(), G4INCL::Particle::getType(), G4INCL::Particle::isDelta(), G4INCL::ThreeVector::mag(), G4INCL::Neutron, G4INCL::Omega, particle1, particle2, G4INCL::Proton, sampleDeltaMass(), G4INCL::Particle::setHelicity(), G4INCL::Particle::setMass(), 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::NDeltaOmegaProductionChannel::INCL_DECLARE_ALLOCATION_POOL ( NDeltaOmegaProductionChannel  )
private

◆ sampleDeltaMass()

G4double G4INCL::NDeltaOmegaProductionChannel::sampleDeltaMass ( G4double  ecm)
private

Definition at line 57 of file G4INCLNDeltaOmegaProductionChannel.cc.

57 {
58 const G4double ecm = ecmorigin - 783.437; // 783.437 MeV translation to open pion(delta) production in NNOmega
59 const G4double maxDeltaMass = ecm - ParticleTable::effectiveNucleonMass - 1.0;
60 const G4double maxDeltaMassRndm = std::atan((maxDeltaMass-ParticleTable::effectiveDeltaMass)*2./ParticleTable::effectiveDeltaWidth);
61 const G4double deltaMassRndmRange = maxDeltaMassRndm - ParticleTable::minDeltaMassRndm;
62// assert(deltaMassRndmRange>0.);
63
64 G4double y=ecm*ecm;
65 G4double q2=(y-1.157776E6)*(y-6.4E5)/y/4.0; // 1.157776E6 = 1076^2, 6.4E5 = 800^2
66 G4double q3=std::pow(std::sqrt(q2), 3.);
67 const G4double f3max=q3/(q3+5.832E6); // 5.832E6 = 180^3
68 G4double x;
69
70 G4int nTries = 0;
71 G4bool success = false;
72 while(!success) { /* Loop checking, 10.07.2015, D.Mancusi */
73 if(++nTries >= maxTries) {
74 INCL_WARN("NDeltaOmegaProductionChannel::sampleDeltaMass loop was stopped because maximum number of tries was reached. Minimum delta mass "
75 << ParticleTable::minDeltaMass << " MeV with CM energy " << ecm << " MeV may be unphysical." << '\n');
77 }
78
79 G4double rndm = ParticleTable::minDeltaMassRndm + Random::shoot() * deltaMassRndmRange;
80 y = std::tan(rndm);
82// assert(x>=ParticleTable::minDeltaMass && ecm >= x + ParticleTable::effectiveNucleonMass + 1.0);
83
84 // generation of the delta mass with the penetration factor
85 // (see prc56(1997)2431)
86 y=x*x;
87 q2=(y-1.157776E6)*(y-6.4E5)/y/4.0; // 1.157776E6 = 1076^2, 6.4E5 = 800^2
88 q3=std::pow(std::sqrt(q2), 3.);
89 const G4double f3=q3/(q3+5.832E6); // 5.832E6 = 180^3
90 rndm = Random::shoot();
91 if (rndm*f3max < f3)
92 success = true;
93 }
94 return x;
95 }
#define INCL_WARN(x)
bool G4bool
Definition: G4Types.hh:86
const G4double effectiveDeltaWidth
const G4double effectiveDeltaMass
G4ThreadLocal G4double minDeltaMass
G4ThreadLocal G4double minDeltaMassRndm
const G4double effectiveNucleonMass

References G4INCL::ParticleTable::effectiveDeltaMass, G4INCL::ParticleTable::effectiveDeltaWidth, G4INCL::ParticleTable::effectiveNucleonMass, INCL_WARN, maxTries, G4INCL::ParticleTable::minDeltaMass, G4INCL::ParticleTable::minDeltaMassRndm, and G4INCL::Random::shoot().

Referenced by fillFinalState().

Field Documentation

◆ angularSlope

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

Definition at line 60 of file G4INCLNDeltaOmegaProductionChannel.hh.

Referenced by fillFinalState().

◆ maxTries

const G4int G4INCL::NDeltaOmegaProductionChannel::maxTries = 100000
staticprivate

Definition at line 62 of file G4INCLNDeltaOmegaProductionChannel.hh.

Referenced by sampleDeltaMass().

◆ particle1

Particle* G4INCL::NDeltaOmegaProductionChannel::particle1
private

Definition at line 58 of file G4INCLNDeltaOmegaProductionChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::NDeltaOmegaProductionChannel::particle2
private

Definition at line 58 of file G4INCLNDeltaOmegaProductionChannel.hh.

Referenced by fillFinalState().


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