Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
G4MuBremsstrahlungModel Class Reference

#include <G4MuBremsstrahlungModel.hh>

Inheritance diagram for G4MuBremsstrahlungModel:
G4VEmModel G4hBremsstrahlungModel

Public Member Functions

 G4MuBremsstrahlungModel (const G4ParticleDefinition *p=0, const G4String &nam="MuBrem")
 
virtual ~G4MuBremsstrahlungModel ()
 
virtual void Initialise (const G4ParticleDefinition *, const G4DataVector &)
 
virtual void InitialiseLocal (const G4ParticleDefinition *, G4VEmModel *masterModel)
 
virtual G4double MinEnergyCut (const G4ParticleDefinition *, const G4MaterialCutsCouple *)
 
virtual G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy)
 
virtual G4double ComputeDEDXPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
 
virtual void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
 
void SetLowestKineticEnergy (G4double e)
 
virtual G4double MinPrimaryEnergy (const G4Material *, const G4ParticleDefinition *, G4double)
 
- Public Member Functions inherited from G4VEmModel
 G4VEmModel (const G4String &nam)
 
virtual ~G4VEmModel ()
 
virtual void InitialiseForMaterial (const G4ParticleDefinition *, const G4Material *)
 
virtual void InitialiseForElement (const G4ParticleDefinition *, G4int Z)
 
virtual G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ChargeSquareRatio (const G4Track &)
 
virtual G4double GetChargeSquareRatio (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual G4double GetParticleCharge (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void StartTracking (G4Track *)
 
virtual void CorrectionsAlongStep (const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &eloss, G4double &niel, G4double length)
 
virtual G4double Value (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual void SetupForMaterial (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void DefineForRegion (const G4Region *)
 
void InitialiseElementSelectors (const G4ParticleDefinition *, const G4DataVector &)
 
std::vector
< G4EmElementSelector * > * 
GetElementSelectors ()
 
void SetElementSelectors (std::vector< G4EmElementSelector * > *)
 
G4double ComputeDEDX (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
G4double CrossSection (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeMeanFreePath (const G4ParticleDefinition *, G4double kineticEnergy, const G4Material *, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, const G4Element *, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4int SelectIsotopeNumber (const G4Element *)
 
const G4ElementSelectRandomAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4int SelectRandomAtomNumber (const G4Material *)
 
void SetParticleChange (G4VParticleChange *, G4VEmFluctuationModel *f=0)
 
void SetCrossSectionTable (G4PhysicsTable *, G4bool isLocal)
 
G4ElementDataGetElementData ()
 
G4PhysicsTableGetCrossSectionTable ()
 
G4VEmFluctuationModelGetModelOfFluctuations ()
 
G4VEmAngularDistributionGetAngularDistribution ()
 
void SetAngularDistribution (G4VEmAngularDistribution *)
 
G4double HighEnergyLimit () const
 
G4double LowEnergyLimit () const
 
G4double HighEnergyActivationLimit () const
 
G4double LowEnergyActivationLimit () const
 
G4double PolarAngleLimit () const
 
G4double SecondaryThreshold () const
 
G4bool LPMFlag () const
 
G4bool DeexcitationFlag () const
 
G4bool ForceBuildTableFlag () const
 
G4bool UseAngularGeneratorFlag () const
 
void SetAngularGeneratorFlag (G4bool)
 
void SetHighEnergyLimit (G4double)
 
void SetLowEnergyLimit (G4double)
 
void SetActivationHighEnergyLimit (G4double)
 
void SetActivationLowEnergyLimit (G4double)
 
G4bool IsActive (G4double kinEnergy)
 
void SetPolarAngleLimit (G4double)
 
void SetSecondaryThreshold (G4double)
 
void SetLPMFlag (G4bool val)
 
void SetDeexcitationFlag (G4bool val)
 
void SetForceBuildTable (G4bool val)
 
void SetMasterThread (G4bool val)
 
G4bool IsMaster () const
 
G4double MaxSecondaryKinEnergy (const G4DynamicParticle *dynParticle)
 
const G4StringGetName () const
 
void SetCurrentCouple (const G4MaterialCutsCouple *)
 
const G4ElementGetCurrentElement () const
 

Protected Member Functions

G4double ComputMuBremLoss (G4double Z, G4double tkin, G4double cut)
 
G4double ComputeMicroscopicCrossSection (G4double tkin, G4double Z, G4double cut)
 
virtual G4double ComputeDMicroscopicCrossSection (G4double tkin, G4double Z, G4double gammaEnergy)
 
void SetParticle (const G4ParticleDefinition *)
 
- Protected Member Functions inherited from G4VEmModel
G4ParticleChangeForLossGetParticleChangeForLoss ()
 
G4ParticleChangeForGammaGetParticleChangeForGamma ()
 
virtual G4double MaxSecondaryEnergy (const G4ParticleDefinition *, G4double kineticEnergy)
 
const G4MaterialCutsCoupleCurrentCouple () const
 
void SetCurrentElement (const G4Element *)
 

Protected Attributes

const G4ParticleDefinitionparticle
 
G4NistManagernist
 
G4double mass
 
G4double rmass
 
G4double cc
 
G4double coeff
 
G4double sqrte
 
G4double bh
 
G4double bh1
 
G4double btf
 
G4double btf1
 
- Protected Attributes inherited from G4VEmModel
G4ElementDatafElementData
 
G4VParticleChangepParticleChange
 
G4PhysicsTablexSectionTable
 
const std::vector< G4double > * theDensityFactor
 
const std::vector< G4int > * theDensityIdx
 
size_t idxTable
 

Detailed Description

Definition at line 72 of file G4MuBremsstrahlungModel.hh.

Constructor & Destructor Documentation

G4MuBremsstrahlungModel::G4MuBremsstrahlungModel ( const G4ParticleDefinition p = 0,
const G4String nam = "MuBrem" 
)

Definition at line 92 of file G4MuBremsstrahlungModel.cc.

References cc, coeff, G4Gamma::Gamma(), G4NistManager::GetA27(), python.hepunit::GeV, G4NistManager::Instance(), mass, nist, rmass, and SetParticle().

94  : G4VEmModel(nam),
95  particle(0),
96  sqrte(sqrt(G4Exp(1.))),
97  bh(202.4),
98  bh1(446.),
99  btf(183.),
100  btf1(1429.),
101  fParticleChange(0),
102  lowestKinEnergy(1.0*GeV),
103  minThreshold(0.9*keV)
104 {
105  theGamma = G4Gamma::Gamma();
107 
108  lowestKinEnergy = 1.*GeV;
109 
110  mass = rmass = cc = coeff = 1.0;
111 
112  if(0.0 == fDN[1]) {
113  for(G4int i=1; i<93; ++i) {
114  G4double dn = 1.54*nist->GetA27(i);
115  fDN[i] = dn;
116  if(1 < i) {
117  fDN[i] /= std::pow(dn, 1./G4double(i));
118  }
119  }
120  }
121 
122  if(p) { SetParticle(p); }
123 }
G4double GetA27(G4int Z)
void SetParticle(const G4ParticleDefinition *)
int G4int
Definition: G4Types.hh:78
static G4NistManager * Instance()
G4VEmModel(const G4String &nam)
Definition: G4VEmModel.cc:65
const G4ParticleDefinition * particle
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:180
double G4double
Definition: G4Types.hh:76
G4MuBremsstrahlungModel::~G4MuBremsstrahlungModel ( )
virtual

Definition at line 127 of file G4MuBremsstrahlungModel.cc.

128 {}

Member Function Documentation

G4double G4MuBremsstrahlungModel::ComputeCrossSectionPerAtom ( const G4ParticleDefinition ,
G4double  kineticEnergy,
G4double  Z,
G4double  A,
G4double  cutEnergy,
G4double  maxEnergy 
)
virtual

Reimplemented from G4VEmModel.

Definition at line 339 of file G4MuBremsstrahlungModel.cc.

References ComputeMicroscopicCrossSection(), and G4INCL::Math::min().

345 {
346  G4double cross = 0.0;
347  if (kineticEnergy <= lowestKinEnergy) return cross;
348  G4double tmax = std::min(maxEnergy, kineticEnergy);
349  G4double cut = std::min(cutEnergy, kineticEnergy);
350  if(cut < minThreshold) cut = minThreshold;
351  if (cut >= tmax) return cross;
352 
353  cross = ComputeMicroscopicCrossSection (kineticEnergy, Z, cut);
354  if(tmax < kineticEnergy) {
355  cross -= ComputeMicroscopicCrossSection(kineticEnergy, Z, tmax);
356  }
357  return cross;
358 }
G4double ComputeMicroscopicCrossSection(G4double tkin, G4double Z, G4double cut)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
double G4double
Definition: G4Types.hh:76
G4double G4MuBremsstrahlungModel::ComputeDEDXPerVolume ( const G4Material material,
const G4ParticleDefinition ,
G4double  kineticEnergy,
G4double  cutEnergy 
)
virtual

Reimplemented from G4VEmModel.

Definition at line 172 of file G4MuBremsstrahlungModel.cc.

References ComputMuBremLoss(), G4Material::GetAtomicNumDensityVector(), G4Material::GetElementVector(), G4Material::GetNumberOfElements(), and G4INCL::Math::min().

177 {
178  G4double dedx = 0.0;
179  if (kineticEnergy <= lowestKinEnergy) { return dedx; }
180 
181  G4double tmax = kineticEnergy;
182  G4double cut = std::min(cutEnergy,tmax);
183  if(cut < minThreshold) { cut = minThreshold; }
184 
185  const G4ElementVector* theElementVector = material->GetElementVector();
186  const G4double* theAtomicNumDensityVector =
187  material->GetAtomicNumDensityVector();
188 
189  // loop for elements in the material
190  for (size_t i=0; i<material->GetNumberOfElements(); i++) {
191 
192  G4double loss =
193  ComputMuBremLoss((*theElementVector)[i]->GetZ(), kineticEnergy, cut);
194 
195  dedx += loss*theAtomicNumDensityVector[i];
196  }
197  // G4cout << "BR e= " << kineticEnergy << " dedx= " << dedx << G4endl;
198  if(dedx < 0.) dedx = 0.;
199  return dedx;
200 }
std::vector< G4Element * > G4ElementVector
const G4ElementVector * GetElementVector() const
Definition: G4Material.hh:188
const G4double * GetAtomicNumDensityVector() const
Definition: G4Material.hh:214
G4double ComputMuBremLoss(G4double Z, G4double tkin, G4double cut)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
size_t GetNumberOfElements() const
Definition: G4Material.hh:184
double G4double
Definition: G4Types.hh:76
G4double G4MuBremsstrahlungModel::ComputeDMicroscopicCrossSection ( G4double  tkin,
G4double  Z,
G4double  gammaEnergy 
)
protectedvirtual

Reimplemented in G4hBremsstrahlungModel.

Definition at line 284 of file G4MuBremsstrahlungModel.cc.

References test::b, bh, bh1, btf, btf1, coeff, python.hepunit::electron_mass_c2, fe, G4Log(), G4lrint(), G4NistManager::GetZ13(), iz, mass, nist, rmass, sqrte, and test::v.

Referenced by ComputeMicroscopicCrossSection(), ComputMuBremLoss(), and SampleSecondaries().

289 {
290  G4double dxsection = 0.;
291 
292  if(gammaEnergy > tkin) { return dxsection; }
293 
294  G4double E = tkin + mass ;
295  G4double v = gammaEnergy/E ;
296  G4double delta = 0.5*mass*mass*v/(E-gammaEnergy) ;
297  G4double rab0 = delta*sqrte ;
298 
299  G4int iz = G4lrint(Z);
300  if(iz < 1) { iz = 1; }
301  else if(iz > 92) { iz = 92; }
302 
303  G4double z13 = 1.0/nist->GetZ13(iz);
304  G4double dnstar = fDN[iz];
305 
306  G4double b,b1;
307 
308  if(1 == iz) {
309  b = bh;
310  b1 = bh1;
311  } else {
312  b = btf;
313  b1 = btf1;
314  }
315 
316  // nucleus contribution logarithm
317  G4double rab1=b*z13;
318  G4double fn=G4Log(rab1/(dnstar*(electron_mass_c2+rab0*rab1))*
319  (mass+delta*(dnstar*sqrte-2.))) ;
320  if(fn <0.) { fn = 0.; }
321  // electron contribution logarithm
322  G4double epmax1=E/(1.+0.5*mass*rmass/E) ;
323  G4double fe=0.;
324  if(gammaEnergy<epmax1)
325  {
326  G4double rab2=b1*z13*z13 ;
327  fe=G4Log(rab2*mass/((1.+delta*rmass/(electron_mass_c2*sqrte))*
328  (electron_mass_c2+rab0*rab2))) ;
329  if(fe<0.) { fe=0.; }
330  }
331 
332  dxsection = coeff*(1.-v*(1. - 0.75*v))*Z*(fn*Z + fe)/gammaEnergy;
333 
334  return dxsection;
335 }
G4double GetZ13(G4double Z)
int G4int
Definition: G4Types.hh:78
G4double iz
Definition: TRTMaterials.hh:39
float electron_mass_c2
Definition: hepunit.py:274
G4double G4Log(G4double x)
Definition: G4Log.hh:227
int G4lrint(double ad)
Definition: templates.hh:163
double G4double
Definition: G4Types.hh:76
G4fissionEvent * fe
G4double G4MuBremsstrahlungModel::ComputeMicroscopicCrossSection ( G4double  tkin,
G4double  Z,
G4double  cut 
)
protected

Definition at line 241 of file G4MuBremsstrahlungModel.cc.

References ComputeDMicroscopicCrossSection(), G4Exp(), G4Log(), and mass.

Referenced by ComputeCrossSectionPerAtom().

245 {
246  G4double totalEnergy = tkin + mass;
247  static const G4double ak1 = 2.3;
248  static const G4int k2 = 4;
249  G4double cross = 0.;
250 
251  if(cut >= tkin) return cross;
252 
253  G4double vcut = cut/totalEnergy;
254  G4double vmax = tkin/totalEnergy;
255 
256  G4double aaa = G4Log(vcut);
257  G4double bbb = G4Log(vmax);
258  G4int kkk = (G4int)((bbb-aaa)/ak1)+k2 ;
259  if(kkk < 1) { kkk = 1; }
260 
261  G4double hhh = (bbb-aaa)/G4double(kkk);
262 
263  G4double aa = aaa;
264 
265  for(G4int l=0; l<kkk; l++)
266  {
267  for(G4int i=0; i<6; i++)
268  {
269  G4double ep = G4Exp(aa + xgi[i]*hhh)*totalEnergy;
270  cross += ep*wgi[i]*ComputeDMicroscopicCrossSection(tkin, Z, ep);
271  }
272  aa += hhh;
273  }
274 
275  cross *=hhh;
276 
277  //G4cout << "BR e= " << tkin<< " cross= " << cross/barn << G4endl;
278 
279  return cross;
280 }
int G4int
Definition: G4Types.hh:78
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin, G4double Z, G4double gammaEnergy)
G4double G4Log(G4double x)
Definition: G4Log.hh:227
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:180
double G4double
Definition: G4Types.hh:76
G4double G4MuBremsstrahlungModel::ComputMuBremLoss ( G4double  Z,
G4double  tkin,
G4double  cut 
)
protected

Definition at line 204 of file G4MuBremsstrahlungModel.cc.

References ComputeDMicroscopicCrossSection(), and mass.

Referenced by ComputeDEDXPerVolume().

206 {
207  G4double totalEnergy = mass + tkin;
208  static const G4double ak1 = 0.05;
209  static const G4int k2=5;
210  G4double loss = 0.;
211 
212  G4double vcut = cut/totalEnergy;
213  G4double vmax = tkin/totalEnergy;
214 
215  G4double aaa = 0.;
216  G4double bbb = vcut;
217  if(vcut>vmax) { bbb = vmax; }
218  G4int kkk = (G4int)((bbb-aaa)/ak1)+k2;
219  if(kkk < 1) { kkk = 1; }
220 
221  G4double hhh=(bbb-aaa)/G4double(kkk);
222 
223  G4double aa = aaa;
224  for(G4int l=0; l<kkk; l++)
225  {
226  for(G4int i=0; i<6; i++)
227  {
228  G4double ep = (aa + xgi[i]*hhh)*totalEnergy;
229  loss += ep*wgi[i]*ComputeDMicroscopicCrossSection(tkin, Z, ep);
230  }
231  aa += hhh;
232  }
233 
234  loss *=hhh*totalEnergy ;
235 
236  return loss;
237 }
int G4int
Definition: G4Types.hh:78
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin, G4double Z, G4double gammaEnergy)
double G4double
Definition: G4Types.hh:76
void G4MuBremsstrahlungModel::Initialise ( const G4ParticleDefinition p,
const G4DataVector cuts 
)
virtual

Implements G4VEmModel.

Definition at line 149 of file G4MuBremsstrahlungModel.cc.

References G4VEmModel::GetParticleChangeForLoss(), G4VEmModel::InitialiseElementSelectors(), G4VEmModel::IsMaster(), particle, and SetParticle().

151 {
152  if(p) { SetParticle(p); }
153 
154  if(IsMaster() && p == particle) { InitialiseElementSelectors(p, cuts); }
155 
156  // define pointer to G4ParticleChange
157  if(!fParticleChange) { fParticleChange = GetParticleChangeForLoss(); }
158 }
G4ParticleChangeForLoss * GetParticleChangeForLoss()
Definition: G4VEmModel.cc:107
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
Definition: G4VEmModel.cc:135
G4bool IsMaster() const
Definition: G4VEmModel.hh:676
void SetParticle(const G4ParticleDefinition *)
const G4ParticleDefinition * particle
void G4MuBremsstrahlungModel::InitialiseLocal ( const G4ParticleDefinition p,
G4VEmModel masterModel 
)
virtual

Reimplemented from G4VEmModel.

Definition at line 162 of file G4MuBremsstrahlungModel.cc.

References G4VEmModel::GetElementSelectors(), particle, and G4VEmModel::SetElementSelectors().

164 {
165  if(p == particle) {
167  }
168 }
const G4ParticleDefinition * particle
std::vector< G4EmElementSelector * > * GetElementSelectors()
Definition: G4VEmModel.hh:760
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
Definition: G4VEmModel.hh:768
G4double G4MuBremsstrahlungModel::MinEnergyCut ( const G4ParticleDefinition ,
const G4MaterialCutsCouple  
)
virtual

Reimplemented from G4VEmModel.

Definition at line 132 of file G4MuBremsstrahlungModel.cc.

134 {
135  return minThreshold;
136 }
G4double G4MuBremsstrahlungModel::MinPrimaryEnergy ( const G4Material ,
const G4ParticleDefinition ,
G4double  cut 
)
virtual

Reimplemented from G4VEmModel.

Definition at line 140 of file G4MuBremsstrahlungModel.cc.

References G4INCL::Math::max().

143 {
144  return std::max(lowestKinEnergy,cut);
145 }
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void G4MuBremsstrahlungModel::SampleSecondaries ( std::vector< G4DynamicParticle * > *  vdp,
const G4MaterialCutsCouple couple,
const G4DynamicParticle dp,
G4double  tmin,
G4double  maxEnergy 
)
virtual

Implements G4VEmModel.

Definition at line 362 of file G4MuBremsstrahlungModel.cc.

References ComputeDMicroscopicCrossSection(), func1(), func2(), G4Exp(), G4Log(), G4UniformRand, G4InuclParticleNames::gam, G4DynamicParticle::GetKineticEnergy(), G4DynamicParticle::GetMomentumDirection(), G4Element::GetZ(), mass, python.hepunit::MeV, G4INCL::Math::min(), particle, CLHEP::Hep3Vector::rotateUz(), G4VEmModel::SelectRandomAtom(), G4ParticleChangeForLoss::SetProposedKineticEnergy(), G4ParticleChangeForLoss::SetProposedMomentumDirection(), python.hepunit::twopi, CLHEP::Hep3Vector::unit(), and test::x.

368 {
369  G4double kineticEnergy = dp->GetKineticEnergy();
370  // check against insufficient energy
371  G4double tmax = std::min(kineticEnergy, maxEnergy);
372  G4double tmin = std::min(kineticEnergy, minEnergy);
373  if(tmin < minThreshold) tmin = minThreshold;
374  if(tmin >= tmax) return;
375 
376  // ===== sampling of energy transfer ======
377 
378  G4ParticleMomentum partDirection = dp->GetMomentumDirection();
379 
380  // select randomly one element constituing the material
381  const G4Element* anElement = SelectRandomAtom(couple,particle,kineticEnergy);
382  G4double Z = anElement->GetZ();
383 
384  G4double totalEnergy = kineticEnergy + mass;
385  G4double totalMomentum = sqrt(kineticEnergy*(kineticEnergy + 2.0*mass));
386 
387  G4double func1 = tmin*
388  ComputeDMicroscopicCrossSection(kineticEnergy,Z,tmin);
389 
390  G4double lnepksi, epksi;
391  G4double func2;
392 
393  G4double xmin = G4Log(tmin/MeV);
394  G4double xmax = G4Log(kineticEnergy/tmin);
395 
396  do {
397  lnepksi = xmin + G4UniformRand()*xmax;
398  epksi = MeV*G4Exp(lnepksi);
399  func2 = epksi*ComputeDMicroscopicCrossSection(kineticEnergy,Z,epksi);
400 
401  } while(func2 < func1*G4UniformRand());
402 
403  G4double gEnergy = epksi;
404 
405  // ===== sample angle =====
406 
407  G4double gam = totalEnergy/mass;
408  G4double rmax = gam*std::min(1.0, totalEnergy/gEnergy - 1.0);
409  G4double rmax2= rmax*rmax;
410  G4double x = G4UniformRand()*rmax2/(1.0 + rmax2);
411 
412  G4double theta = sqrt(x/(1.0 - x))/gam;
413  G4double sint = sin(theta);
414  G4double phi = twopi * G4UniformRand() ;
415  G4double dirx = sint*cos(phi), diry = sint*sin(phi), dirz = cos(theta) ;
416 
417  G4ThreeVector gDirection(dirx, diry, dirz);
418  gDirection.rotateUz(partDirection);
419 
420  partDirection *= totalMomentum;
421  partDirection -= gEnergy*gDirection;
422  partDirection = partDirection.unit();
423 
424  // primary change
425  kineticEnergy -= gEnergy;
426  fParticleChange->SetProposedKineticEnergy(kineticEnergy);
427  fParticleChange->SetProposedMomentumDirection(partDirection);
428 
429  // save secondary
430  G4DynamicParticle* aGamma =
431  new G4DynamicParticle(theGamma,gDirection,gEnergy);
432  vdp->push_back(aGamma);
433 }
int func1(int i)
Definition: XFunc.cc:40
G4double GetKineticEnergy() const
int func2(int i)
Definition: XFunc.cc:51
G4double GetZ() const
Definition: G4Element.hh:131
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin, G4double Z, G4double gammaEnergy)
#define G4UniformRand()
Definition: Randomize.hh:87
const G4ParticleDefinition * particle
const G4ThreeVector & GetMomentumDirection() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
G4double G4Log(G4double x)
Definition: G4Log.hh:227
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:180
Hep3Vector unit() const
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
double G4double
Definition: G4Types.hh:76
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
Definition: G4VEmModel.hh:510
void G4MuBremsstrahlungModel::SetLowestKineticEnergy ( G4double  e)
inline

Definition at line 163 of file G4MuBremsstrahlungModel.hh.

164 {
165  lowestKinEnergy = e;
166 }
void G4MuBremsstrahlungModel::SetParticle ( const G4ParticleDefinition p)
inlineprotected

Definition at line 171 of file G4MuBremsstrahlungModel.hh.

References cc, coeff, G4ParticleDefinition::GetPDGMass(), mass, particle, and rmass.

Referenced by G4MuBremsstrahlungModel(), and Initialise().

172 {
173  if(!particle) {
174  particle = p;
175  mass = particle->GetPDGMass();
176  rmass=mass/CLHEP::electron_mass_c2 ;
177  cc=CLHEP::classic_electr_radius/rmass ;
178  coeff= 16.*CLHEP::fine_structure_const*cc*cc/3. ;
179  }
180 }
const char * p
Definition: xmltok.h:285
const G4ParticleDefinition * particle
G4double GetPDGMass() const

Field Documentation

G4double G4MuBremsstrahlungModel::bh
protected
G4double G4MuBremsstrahlungModel::bh1
protected

Definition at line 143 of file G4MuBremsstrahlungModel.hh.

Referenced by ComputeDMicroscopicCrossSection().

G4double G4MuBremsstrahlungModel::btf
protected
G4double G4MuBremsstrahlungModel::btf1
protected

Definition at line 145 of file G4MuBremsstrahlungModel.hh.

Referenced by ComputeDMicroscopicCrossSection().

G4double G4MuBremsstrahlungModel::cc
protected

Definition at line 139 of file G4MuBremsstrahlungModel.hh.

Referenced by G4MuBremsstrahlungModel(), and SetParticle().

G4double G4MuBremsstrahlungModel::coeff
protected
G4double G4MuBremsstrahlungModel::mass
protected
G4NistManager* G4MuBremsstrahlungModel::nist
protected
const G4ParticleDefinition* G4MuBremsstrahlungModel::particle
protected
G4double G4MuBremsstrahlungModel::rmass
protected
G4double G4MuBremsstrahlungModel::sqrte
protected

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