Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4INCL::DeltaProductionChannel Class Reference

#include <G4INCLDeltaProductionChannel.hh>

Inheritance diagram for G4INCL::DeltaProductionChannel:
G4INCL::IChannel

Public Member Functions

 DeltaProductionChannel (Particle *, Particle *)
 
virtual ~DeltaProductionChannel ()
 
FinalStategetFinalState ()
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 

Detailed Description

Definition at line 46 of file G4INCLDeltaProductionChannel.hh.

Constructor & Destructor Documentation

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

Definition at line 46 of file G4INCLDeltaProductionChannel.cc.

48  : particle1(p1), particle2(p2)
49  {}
G4INCL::DeltaProductionChannel::~DeltaProductionChannel ( )
virtual

Definition at line 51 of file G4INCLDeltaProductionChannel.cc.

51 {}

Member Function Documentation

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

Delta production

The production is not isotropic in this version it has the same exp(b*t) structure as the nn elastic scattering (formula 2.3 of j.cugnon et al, nucl phys a352(1981)505) parametrization of b taken from ref. prc56(1997)2431

Implements G4INCL::IChannel.

Definition at line 83 of file G4INCLDeltaProductionChannel.cc.

References G4INCL::FinalState::addModifiedParticle(), test::b, G4INCL::DeltaMinus, G4INCL::DeltaPlus, G4INCL::DeltaPlusPlus, G4INCL::DeltaZero, G4INCL::ParticleTable::effectiveNucleonMass, G4INCL::ParticleTable::effectiveNucleonMass2, G4INCL::ParticleTable::getIsospin(), G4INCL::Particle::getMomentum(), G4INCL::Particle::getType(), G4INCL::ThreeVector::getX(), G4INCL::ThreeVector::getY(), G4INCL::ThreeVector::getZ(), G4INCL::Particle::isDelta(), G4INCL::ThreeVector::mag(), G4INCL::KinematicsUtils::momentumInCM(), G4INCL::KinematicsUtils::momentumInLab(), G4INCL::Neutron, G4INCL::ThreeVector::perp2(), G4INCL::Proton, rndm(), G4INCL::Particle::setEnergy(), G4INCL::Particle::setHelicity(), G4INCL::Particle::setMass(), G4INCL::Particle::setMomentum(), G4INCL::Particle::setType(), G4INCL::Random::shoot(), G4INCL::Math::sign(), G4INCL::KinematicsUtils::totalEnergyInCM(), and G4INCL::Math::twoPi.

83  {
84  /**
85  * Delta production
86  *
87  * The production is not isotropic in this version it has the same
88  * exp(b*t) structure as the nn elastic scattering (formula 2.3 of
89  * j.cugnon et al, nucl phys a352(1981)505) parametrization of b
90  * taken from ref. prc56(1997)2431
91  */
92  // 100 IF (K4.NE.1) GO TO 101 // ThA K4 = 2 by default
93  // ParticleType p1TypeOld = particle1->getType();
94  // ParticleType p2TypeOld = particle2->getType();
95  G4double ecm = KinematicsUtils::totalEnergyInCM(particle1, particle2);
96 
97  const G4int isospin = ParticleTable::getIsospin(particle1->getType()) +
98  ParticleTable::getIsospin(particle2->getType());
99 
100  // Calculate the outcome of the channel:
101  G4double pin = particle1->getMomentum().mag();
102  G4double rndm = 0.0, b = 0.0;
103 
104  G4double xmdel = sampleDeltaMass(ecm);
105  // deltaProduction103: // This label is not used
107  if (pnorm <= 0.0) pnorm=0.000001;
108  G4int index=0;
109  G4int index2=0;
110  rndm = Random::shoot();
111  if (rndm < 0.5) index=1;
112  if (isospin == 0) { // pn case
113  rndm = Random::shoot();
114  if (rndm < 0.5) index2=1;
115  }
116 
117  // G4double x=0.001*0.5*ecm*std::sqrt(ecm*ecm-4.*ParticleTable::effectiveNucleonMass2)
118  // / ParticleTable::effectiveNucleonMass;
120  if(x < 1.4) {
121  b=(5.287/(1.+std::exp((1.3-x)/0.05)))*1.e-6;
122  } else {
123  b=(4.65+0.706*(x-1.4))*1.e-6;
124  }
125  G4double xkh = 2.*b*pin*pnorm;
126  rndm = Random::shoot();
127  G4double ctet=1.0+std::log(1.-rndm*(1.-std::exp(-2.*xkh)))/xkh;
128  if(std::abs(ctet) > 1.0) ctet = Math::sign(ctet);
129  G4double stet = std::sqrt(1.-ctet*ctet);
130 
131  rndm = Random::shoot();
133  G4double cfi = std::cos(fi);
134  G4double sfi = std::sin(fi);
135  // delta production: correction of the angular distribution 02/09/02
136 
137  G4double xx = particle1->getMomentum().perp2();
138  G4double zz = std::pow(particle1->getMomentum().getZ(), 2);
139  G4double xp1, xp2, xp3;
140  if (xx >= zz*1.e-8) {
141  G4double yn = std::sqrt(xx);
142  G4double zn = yn*pin;
143  G4double ex[3], ey[3], ez[3];
144  G4double p1 = particle1->getMomentum().getX();
145  G4double p2 = particle1->getMomentum().getY();
146  G4double p3 = particle1->getMomentum().getZ();
147  ez[0] = p1/pin;
148  ez[1] = p2/pin;
149  ez[2] = p3/pin;
150  ex[0] = p2/yn;
151  ex[1] = -p1/yn;
152  ex[2] = 0.0;
153  ey[0] = p1*p3/zn;
154  ey[1] = p2*p3/zn;
155  ey[2] = -xx/zn;
156  xp1 = (ex[0]*cfi*stet+ey[0]*sfi*stet+ez[0]*ctet)*pnorm;
157  xp2 = (ex[1]*cfi*stet+ey[1]*sfi*stet+ez[1]*ctet)*pnorm;
158  xp3 = (ex[2]*cfi*stet+ey[2]*sfi*stet+ez[2]*ctet)*pnorm;
159  }else {
160  xp1=pnorm*stet*cfi;
161  xp2=pnorm*stet*sfi;
162  xp3=pnorm*ctet;
163  }
164  // end of correction angular distribution of delta production
165  G4double e3 = std::sqrt(xp1*xp1+xp2*xp2+xp3*xp3
167  // if(k4.ne.0) go to 161
168 
169  // long-lived delta
170  if (index != 1) {
171  ThreeVector mom(xp1, xp2, xp3);
172  particle1->setMomentum(mom);
173  // e1=ecm-eout1
174  } else {
175  ThreeVector mom(-xp1, -xp2, -xp3);
176  particle1->setMomentum(mom);
177  // e1=ecm-eout1
178  }
179 
180  particle1->setEnergy(ecm - e3);
181  particle2->setEnergy(e3);
182  particle2->setMomentum(-particle1->getMomentum());
183 
184  // SYMMETRIZATION OF CHARGES IN pn -> N DELTA
185  // THE TEST ON "INDEX" ABOVE SYMETRIZES THE EXCITATION OF ONE
186  // OF THE NUCLEONS WITH RESPECT TO THE DELTA EXCITATION
187  // (SEE NOTE 16/10/97)
188  G4int is1 = ParticleTable::getIsospin(particle1->getType());
189  G4int is2 = ParticleTable::getIsospin(particle2->getType());
190  if (isospin == 0) {
191  if(index2 == 1) {
192  G4int isi=is1;
193  is1=is2;
194  is2=isi;
195  }
196  particle1->setHelicity(0.0);
197  } else {
198  rndm = Random::shoot();
199  if (rndm >= 0.25) {
200  is1=3*is1;
201  is2=-is2;
202  }
203  particle1->setHelicity(ctet*ctet);
204  }
205 
207  particle1->setType(DeltaMinus);
208  } else if(is1 == ParticleTable::getIsospin(DeltaZero)) {
209  particle1->setType(DeltaZero);
210  } else if(is1 == ParticleTable::getIsospin(DeltaPlus)) {
211  particle1->setType(DeltaPlus);
212  } else if(is1 == ParticleTable::getIsospin(DeltaPlusPlus)) {
213  particle1->setType(DeltaPlusPlus);
214  }
215 
216  if(is2 == ParticleTable::getIsospin(Proton)) {
217  particle2->setType(Proton);
218  } else if(is2 == ParticleTable::getIsospin(Neutron)) {
219  particle2->setType(Neutron);
220  }
221 
222  if(particle1->isDelta()) particle1->setMass(xmdel);
223  if(particle2->isDelta()) particle2->setMass(xmdel);
224 
225  FinalState *fs = new FinalState;
226  fs->addModifiedParticle(particle1);
227  fs->addModifiedParticle(particle2);
228  return fs;
229  }
void setMass(G4double mass)
const G4INCL::ThreeVector & getMomentum() const
G4bool isDelta() const
Is it a Delta?
G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
int G4int
Definition: G4Types.hh:78
void setEnergy(G4double energy)
G4double perp2() const
double precision function rndm(RDUMMY)
Definition: dpm25nulib.f:1460
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
const G4double effectiveNucleonMass2
G4INCL::ParticleType getType() const
void setType(ParticleType t)
const G4double twoPi
G4double getX() const
G4double shoot()
Definition: G4INCLRandom.cc:74
G4double momentumInLab(Particle const *const p1, Particle const *const p2)
gives the momentum in the lab frame of two particles.
G4double mag() const
double G4double
Definition: G4Types.hh:76
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int sign(const T t)
const G4double effectiveNucleonMass
G4double getZ() const
void setHelicity(G4double h)
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
G4double getY() const

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