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

#include <G4INCLDeltaDecayChannel.hh>

+ Inheritance diagram for G4INCL::DeltaDecayChannel:

Public Member Functions

 DeltaDecayChannel (Nucleus *n, Particle *, ThreeVector const)
 
virtual ~DeltaDecayChannel ()
 
FinalStategetFinalState ()
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 
virtual G4INCL::FinalStategetFinalState ()=0
 

Static Public Member Functions

static G4double computeDecayTime (Particle *p)
 

Detailed Description

Definition at line 49 of file G4INCLDeltaDecayChannel.hh.

Constructor & Destructor Documentation

◆ DeltaDecayChannel()

G4INCL::DeltaDecayChannel::DeltaDecayChannel ( Nucleus n,
Particle p,
ThreeVector const  dir 
)

Definition at line 47 of file G4INCLDeltaDecayChannel.cc.

48 :theParticle(p), theNucleus(n), incidentDirection(dir)
49 { }

◆ ~DeltaDecayChannel()

G4INCL::DeltaDecayChannel::~DeltaDecayChannel ( )
virtual

Definition at line 51 of file G4INCLDeltaDecayChannel.cc.

51{}

Member Function Documentation

◆ computeDecayTime()

G4double G4INCL::DeltaDecayChannel::computeDecayTime ( Particle p)
static

Definition at line 53 of file G4INCLDeltaDecayChannel.cc.

53 {
54 const G4double m = p->getMass();
55 const G4double g0 = 115.0;
56 G4double gg = g0;
57 if(m > 1500.0) gg = 200.0;
58 const G4double geff = p->getEnergy()/m;
60 const G4double psf = std::pow(qqq, 3)/(std::pow(qqq, 3) + 5832000.0);
61 const G4double tdel = -G4INCL::PhysicalConstants::hc/(gg*psf)*std::log(Random::shoot())*geff;
62 return tdel;
63 }
double G4double
Definition: G4Types.hh:64
static G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
static const G4double effectiveNucleonMass
static const G4double effectivePionMass
static G4double shoot()
Definition: G4INCLRandom.hh:99
const G4double hc
[MeV*fm]

Referenced by G4INCL::StandardPropagationModel::generateDecays().

◆ getFinalState()

FinalState * G4INCL::DeltaDecayChannel::getFinalState ( )
virtual

Implements G4INCL::IChannel.

Definition at line 76 of file G4INCLDeltaDecayChannel.cc.

76 {
77 // SUBROUTINE DECAY2(P1,P2,P3,WP,ij,
78 // s X1,X2,hel,B1,B2,B3)
79
80 // This routine describes the anisotropic decay of a particle of mass
81 // xi into 2 particles of masses x1,x2.
82 // The anisotropy is supposed to follow a 1+3*hel*(cos(theta))**2
83 // law with respect to the direction of the incoming particle.
84 // In the input, p1,p2,p3 is the momentum of particle xi.
85 // In the output, p1,p2,p3 is the momentum of particle x1 , while
86 // q1,q2,q3 is the momentum of particle x2.
87
88 // COMMON/bl12/QQ1(200),QQ2(200),QQ3(200),QQ4(200),
89 // s YY1(200),YY2(200),YY3(200),YM(200),IPI(200)
90 // common/hazard/ial,IY1,IY2,IY3,IY4,IY5,IY6,IY7,IY8,IY9,IY10,
91 // s IY11,IY12,IY13,IY14,IY15,IY16,IY17,IY18,IY19
92
93 // DATA IY8,IY9,IY10/82345,92345,45681/
94 // PCM(E,A,C)=0.5*SQRT((E**2-(A+C)**2)*(E**2-(A-C)**2))/E P-N20800
95 // XI=YM(ij)
96
97 // XE=WP P-N20810
98 // B1=P1/XE P-N20820
99 // B2=P2/XE P-N20830
100 // B3=P3/XE
101 // XQ=PCM(XI,X1,X2)
102
103 const G4double deltaMass = theParticle->getMass();
104
105 G4double fi, ctet, stet;
106 sampleAngles(&ctet, &stet, &fi);
107
108 G4double cfi = std::cos(fi);
109 G4double sfi = std::sin(fi);
110 G4double beta = incidentDirection.mag();
111
112 G4double q1, q2, q3;
113 G4double sal=0.0;
114 if (beta >= 1.0e-10)
115 sal = incidentDirection.perp()/beta;
116 if (sal >= 1.0e-6) {
117 G4double b1 = incidentDirection.getX();
118 G4double b2 = incidentDirection.getY();
119 G4double b3 = incidentDirection.getZ();
120 G4double cal = b3/beta;
121 G4double t1 = ctet+cal*stet*sfi/sal;
122 G4double t2 = stet/sal;
123 q1=(b1*t1+b2*t2*cfi)/beta;
124 q2=(b2*t1-b1*t2*cfi)/beta;
125 q3=(b3*t1/beta-t2*sfi);
126 } else {
127 q1 = stet*cfi;
128 q2 = stet*sfi;
129 q3 = ctet;
130 }
131 theParticle->setHelicity(0.0);
132
133 ParticleType pionType;
134 switch(theParticle->getType()) {
135 case DeltaPlusPlus:
136 theParticle->setType(Proton);
137 pionType = PiPlus;
138 break;
139 case DeltaPlus:
140 if(Random::shoot() < 1.0/3.0) {
141 theParticle->setType(Neutron);
142 pionType = PiPlus;
143 } else {
144 theParticle->setType(Proton);
145 pionType = PiZero;
146 }
147 break;
148 case DeltaZero:
149 if(Random::shoot() < 1.0/3.0) {
150 theParticle->setType(Proton);
151 pionType = PiMinus;
152 } else {
153 theParticle->setType(Neutron);
154 pionType = PiZero;
155 }
156 break;
157 case DeltaMinus:
158 theParticle->setType(Neutron);
159 pionType = PiMinus;
160 break;
161 default:
162 FATAL("Unrecognized delta type; type=" << theParticle->getType() << std::endl);
163 abort();
164 break;
165 }
166
168 theParticle->getMass(),
170
171 q1 *= xq;
172 q2 *= xq;
173 q3 *= xq;
174
175 ThreeVector pionMomentum(q1, q2, q3);
176 ThreeVector pionPosition(theParticle->getPosition());
177 Particle *pion = new Particle(pionType, pionMomentum, pionPosition);
178 theParticle->setMomentum(-pionMomentum);
179 theParticle->adjustEnergyFromMomentum();
180
181 FinalState *fs = new FinalState;
182 fs->addModifiedParticle(theParticle);
183 fs->addCreatedParticle(pion);
184 // call loren(q1,q2,q3,b1,b2,b3,wq)
185 // call loren(p1,p2,p3,b1,b2,b3,wp)
186 // qq1(ij)=q1
187 // qq2(ij)=q2
188 // qq3(ij)=q3
189 // qq4(ij)=wq
190 // ym(ij)=xi
191 // RETURN P-N21120
192 // END P-N21130
193 return fs;
194 }
#define FATAL(x)
static G4double getINCLMass(const G4int A, const G4int Z)
Get INCL nuclear mass (in MeV/c^2)
void setHelicity(G4double h)
const G4INCL::ThreeVector & getPosition() const
G4double adjustEnergyFromMomentum()
Recompute the energy to match the momentum.
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4double getMass() const
Get the cached particle mass.
G4double getY() const
G4double getZ() const
G4double mag() const
G4double perp() const
G4double getX() const

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