Geant4  10.02.p01
G4Cerenkov.cc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4Cerenkov.cc 92046 2015-08-14 07:22:07Z gcosmo $
28 //
30 // Cerenkov Radiation Class Implementation
32 //
33 // File: G4Cerenkov.cc
34 // Description: Discrete Process -- Generation of Cerenkov Photons
35 // Version: 2.1
36 // Created: 1996-02-21
37 // Author: Juliet Armstrong
38 // Updated: 2007-09-30 by Peter Gumplinger
39 // > change inheritance to G4VDiscreteProcess
40 // GetContinuousStepLimit -> GetMeanFreePath (StronglyForced)
41 // AlongStepDoIt -> PostStepDoIt
42 // 2005-08-17 by Peter Gumplinger
43 // > change variable name MeanNumPhotons -> MeanNumberOfPhotons
44 // 2005-07-28 by Peter Gumplinger
45 // > add G4ProcessType to constructor
46 // 2001-09-17, migration of Materials to pure STL (mma)
47 // 2000-11-12 by Peter Gumplinger
48 // > add check on CerenkovAngleIntegrals->IsFilledVectorExist()
49 // in method GetAverageNumberOfPhotons
50 // > and a test for MeanNumberOfPhotons <= 0.0 in DoIt
51 // 2000-09-18 by Peter Gumplinger
52 // > change: aSecondaryPosition=x0+rand*aStep.GetDeltaPosition();
53 // aSecondaryTrack->SetTouchable(0);
54 // 1999-10-29 by Peter Gumplinger
55 // > change: == into <= in GetContinuousStepLimit
56 // 1997-08-08 by Peter Gumplinger
57 // > add protection against /0
58 // > G4MaterialPropertiesTable; new physics/tracking scheme
59 //
60 // mail: gum@triumf.ca
61 //
63 
64 #include "G4ios.hh"
65 #include "G4PhysicalConstants.hh"
66 #include "G4SystemOfUnits.hh"
67 #include "G4Poisson.hh"
68 #include "G4EmProcessSubType.hh"
69 
70 #include "G4LossTableManager.hh"
71 #include "G4MaterialCutsCouple.hh"
72 #include "G4ParticleDefinition.hh"
73 
74 #include "G4Cerenkov.hh"
75 
77 // Class Implementation
79 
81  // static data members
83 
84 //G4bool G4Cerenkov::fTrackSecondariesFirst = false;
85 //G4double G4Cerenkov::fMaxBetaChange = 0.;
86 //G4int G4Cerenkov::fMaxPhotons = 0;
87 
89  // Operators
91 
92 // G4Cerenkov::operator=(const G4Cerenkov &right)
93 // {
94 // }
95 
97  // Constructors
99 
101  : G4VProcess(processName, type) ,
102  fTrackSecondariesFirst(false),
103  fMaxBetaChange(0),
104  fMaxPhotons(0)
105 {
107 
108  thePhysicsTable = NULL;
109 
110  if (verboseLevel>0) {
111  G4cout << GetProcessName() << " is created " << G4endl;
112  }
113 }
114 
115 // G4Cerenkov::G4Cerenkov(const G4Cerenkov &right)
116 // {
117 // }
118 
120  // Destructors
122 
124 {
125  if (thePhysicsTable != NULL) {
127  delete thePhysicsTable;
128  }
129 }
130 
132  // Methods
134 
136 {
137  G4bool result = false;
138  if (aParticleType.GetPDGCharge() != 0.0 &&
139  aParticleType.GetPDGMass() != 0.0 &&
140  aParticleType.GetParticleName() != "chargedgeantino" &&
141  !aParticleType.IsShortLived() ) { result = true; }
142 
143  return result;
144 }
145 
147 {
148  fTrackSecondariesFirst = state;
149 }
150 
152 {
154 }
155 
157 {
158  fMaxPhotons = NumPhotons;
159 }
160 
162 {
164 }
165 
166 // PostStepDoIt
167 // -------------
168 //
170 G4Cerenkov::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
171 
172 // This routine is called for each tracking Step of a charged particle
173 // in a radiator. A Poisson-distributed number of photons is generated
174 // according to the Cerenkov formula, distributed evenly along the track
175 // segment and uniformly azimuth w.r.t. the particle direction. The
176 // parameters are then transformed into the Master Reference System, and
177 // they are added to the particle change.
178 
179 {
181  // Should we ensure that the material is dispersive?
183 
184  aParticleChange.Initialize(aTrack);
185 
186  const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
187  const G4Material* aMaterial = aTrack.GetMaterial();
188 
189  G4StepPoint* pPreStepPoint = aStep.GetPreStepPoint();
190  G4StepPoint* pPostStepPoint = aStep.GetPostStepPoint();
191 
192  G4ThreeVector x0 = pPreStepPoint->GetPosition();
193  G4ThreeVector p0 = aStep.GetDeltaPosition().unit();
194  G4double t0 = pPreStepPoint->GetGlobalTime();
195 
196  G4MaterialPropertiesTable* aMaterialPropertiesTable =
197  aMaterial->GetMaterialPropertiesTable();
198  if (!aMaterialPropertiesTable) return pParticleChange;
199 
200  G4MaterialPropertyVector* Rindex =
201  aMaterialPropertiesTable->GetProperty("RINDEX");
202  if (!Rindex) return pParticleChange;
203 
204  // particle charge
205  G4double charge = aParticle->GetDefinition()->GetPDGCharge();
206 
207  // particle beta
208  G4double beta = (pPreStepPoint ->GetBeta() +
209  pPostStepPoint->GetBeta())*0.5;
210 
211  G4double MeanNumberOfPhotons =
212  GetAverageNumberOfPhotons(charge,beta,aMaterial,Rindex);
213 
214  if (MeanNumberOfPhotons <= 0.0) {
215 
216  // return unchanged particle and no secondaries
217 
219 
220  return pParticleChange;
221 
222  }
223 
224  G4double step_length;
225  step_length = aStep.GetStepLength();
226 
227  MeanNumberOfPhotons = MeanNumberOfPhotons * step_length;
228 
229  G4int NumPhotons = (G4int) G4Poisson(MeanNumberOfPhotons);
230 
231  if (NumPhotons <= 0) {
232 
233  // return unchanged particle and no secondaries
234 
236 
237  return pParticleChange;
238  }
239 
241 
243 
245  if (aTrack.GetTrackStatus() == fAlive )
247  }
248 
250 
251  G4double Pmin = Rindex->GetMinLowEdgeEnergy();
252  G4double Pmax = Rindex->GetMaxLowEdgeEnergy();
253  G4double dp = Pmax - Pmin;
254 
255  G4double nMax = Rindex->GetMaxValue();
256 
257  G4double BetaInverse = 1./beta;
258 
259  G4double maxCos = BetaInverse / nMax;
260  G4double maxSin2 = (1.0 - maxCos) * (1.0 + maxCos);
261 
262  G4double beta1 = pPreStepPoint ->GetBeta();
263  G4double beta2 = pPostStepPoint->GetBeta();
264 
265  G4double MeanNumberOfPhotons1 =
266  GetAverageNumberOfPhotons(charge,beta1,aMaterial,Rindex);
267  G4double MeanNumberOfPhotons2 =
268  GetAverageNumberOfPhotons(charge,beta2,aMaterial,Rindex);
269 
270  for (G4int i = 0; i < NumPhotons; i++) {
271 
272  // Determine photon energy
273 
274  G4double rand;
275  G4double sampledEnergy, sampledRI;
276  G4double cosTheta, sin2Theta;
277 
278  // sample an energy
279 
280  do {
281  rand = G4UniformRand();
282  sampledEnergy = Pmin + rand * dp;
283  sampledRI = Rindex->Value(sampledEnergy);
284  cosTheta = BetaInverse / sampledRI;
285 
286  sin2Theta = (1.0 - cosTheta)*(1.0 + cosTheta);
287  rand = G4UniformRand();
288 
289  // Loop checking, 07-Aug-2015, Vladimir Ivanchenko
290  } while (rand*maxSin2 > sin2Theta);
291 
292  // Generate random position of photon on cone surface
293  // defined by Theta
294 
295  rand = G4UniformRand();
296 
297  G4double phi = twopi*rand;
298  G4double sinPhi = std::sin(phi);
299  G4double cosPhi = std::cos(phi);
300 
301  // calculate x,y, and z components of photon energy
302  // (in coord system with primary particle direction
303  // aligned with the z axis)
304 
305  G4double sinTheta = std::sqrt(sin2Theta);
306  G4double px = sinTheta*cosPhi;
307  G4double py = sinTheta*sinPhi;
308  G4double pz = cosTheta;
309 
310  // Create photon momentum direction vector
311  // The momentum direction is still with respect
312  // to the coordinate system where the primary
313  // particle direction is aligned with the z axis
314 
315  G4ParticleMomentum photonMomentum(px, py, pz);
316 
317  // Rotate momentum direction back to global reference
318  // system
319 
320  photonMomentum.rotateUz(p0);
321 
322  // Determine polarization of new photon
323 
324  G4double sx = cosTheta*cosPhi;
325  G4double sy = cosTheta*sinPhi;
326  G4double sz = -sinTheta;
327 
328  G4ThreeVector photonPolarization(sx, sy, sz);
329 
330  // Rotate back to original coord system
331 
332  photonPolarization.rotateUz(p0);
333 
334  // Generate a new photon:
335 
336  G4DynamicParticle* aCerenkovPhoton =
338  photonMomentum);
339  aCerenkovPhoton->SetPolarization
340  (photonPolarization.x(),
341  photonPolarization.y(),
342  photonPolarization.z());
343 
344  aCerenkovPhoton->SetKineticEnergy(sampledEnergy);
345 
346  // Generate new G4Track object:
347 
348  G4double NumberOfPhotons, N;
349 
350  do {
351  rand = G4UniformRand();
352  NumberOfPhotons = MeanNumberOfPhotons1 - rand *
353  (MeanNumberOfPhotons1-MeanNumberOfPhotons2);
354  N = G4UniformRand() *
355  std::max(MeanNumberOfPhotons1,MeanNumberOfPhotons2);
356  // Loop checking, 07-Aug-2015, Vladimir Ivanchenko
357  } while (N > NumberOfPhotons);
358 
359  G4double delta = rand * aStep.GetStepLength();
360 
361  G4double deltaTime = delta / (pPreStepPoint->GetVelocity()+
362  rand*(pPostStepPoint->GetVelocity()-
363  pPreStepPoint->GetVelocity())*0.5);
364 
365  G4double aSecondaryTime = t0 + deltaTime;
366 
367  G4ThreeVector aSecondaryPosition =
368  x0 + rand * aStep.GetDeltaPosition();
369 
370  G4Track* aSecondaryTrack =
371  new G4Track(aCerenkovPhoton,aSecondaryTime,aSecondaryPosition);
372 
373  aSecondaryTrack->SetTouchableHandle(
375 
376  aSecondaryTrack->SetParentID(aTrack.GetTrackID());
377 
378  aParticleChange.AddSecondary(aSecondaryTrack);
379  }
380 
381  if (verboseLevel>0) {
382  G4cout <<"\n Exiting from G4Cerenkov::DoIt -- NumberOfSecondaries = "
384  }
385 
386  return pParticleChange;
387 }
388 
389 // BuildThePhysicsTable for the Cerenkov process
390 // ---------------------------------------------
391 //
392 
394 {
395  if (thePhysicsTable) return;
396 
397  const G4MaterialTable* theMaterialTable=
399  G4int numOfMaterials = G4Material::GetNumberOfMaterials();
400 
401  // create new physics table
402 
403  thePhysicsTable = new G4PhysicsTable(numOfMaterials);
404 
405  // loop for materials
406 
407  for (G4int i=0 ; i < numOfMaterials; i++)
408  {
409  G4PhysicsOrderedFreeVector* aPhysicsOrderedFreeVector = 0;
410 
411  // Retrieve vector of refraction indices for the material
412  // from the material's optical properties table
413 
414  G4Material* aMaterial = (*theMaterialTable)[i];
415 
416  G4MaterialPropertiesTable* aMaterialPropertiesTable =
417  aMaterial->GetMaterialPropertiesTable();
418 
419  if (aMaterialPropertiesTable) {
420 
421  aPhysicsOrderedFreeVector = new G4PhysicsOrderedFreeVector();
422  G4MaterialPropertyVector* theRefractionIndexVector =
423  aMaterialPropertiesTable->GetProperty("RINDEX");
424 
425  if (theRefractionIndexVector) {
426 
427  // Retrieve the first refraction index in vector
428  // of (photon energy, refraction index) pairs
429 
430  G4double currentRI = (*theRefractionIndexVector)[0];
431 
432  if (currentRI > 1.0) {
433 
434  // Create first (photon energy, Cerenkov Integral)
435  // pair
436 
437  G4double currentPM = theRefractionIndexVector->
438  Energy(0);
439  G4double currentCAI = 0.0;
440 
441  aPhysicsOrderedFreeVector->
442  InsertValues(currentPM , currentCAI);
443 
444  // Set previous values to current ones prior to loop
445 
446  G4double prevPM = currentPM;
447  G4double prevCAI = currentCAI;
448  G4double prevRI = currentRI;
449 
450  // loop over all (photon energy, refraction index)
451  // pairs stored for this material
452 
453  for (size_t ii = 1;
454  ii < theRefractionIndexVector->GetVectorLength();
455  ++ii)
456  {
457  currentRI = (*theRefractionIndexVector)[ii];
458  currentPM = theRefractionIndexVector->Energy(ii);
459 
460  currentCAI = 0.5*(1.0/(prevRI*prevRI) +
461  1.0/(currentRI*currentRI));
462 
463  currentCAI = prevCAI +
464  (currentPM - prevPM) * currentCAI;
465 
466  aPhysicsOrderedFreeVector->
467  InsertValues(currentPM, currentCAI);
468 
469  prevPM = currentPM;
470  prevCAI = currentCAI;
471  prevRI = currentRI;
472  }
473 
474  }
475  }
476  }
477 
478  // The Cerenkov integral for a given material
479  // will be inserted in thePhysicsTable
480  // according to the position of the material in
481  // the material table.
482 
483  thePhysicsTable->insertAt(i,aPhysicsOrderedFreeVector);
484 
485  }
486 }
487 
488 // GetMeanFreePath
489 // ---------------
490 //
491 
493  G4double,
495 {
496  return 1.;
497 }
498 
500  const G4Track& aTrack,
501  G4double,
503 {
504  *condition = NotForced;
505  G4double StepLimit = DBL_MAX;
506 
507  const G4Material* aMaterial = aTrack.GetMaterial();
508  G4int materialIndex = aMaterial->GetIndex();
509 
510  // If Physics Vector is not defined no Cerenkov photons
511  // this check avoid string comparison below
512  if(!(*thePhysicsTable)[materialIndex]) { return StepLimit; }
513 
514  const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
515  const G4MaterialCutsCouple* couple = aTrack.GetMaterialCutsCouple();
516 
517  G4double kineticEnergy = aParticle->GetKineticEnergy();
518  const G4ParticleDefinition* particleType = aParticle->GetDefinition();
519  G4double mass = particleType->GetPDGMass();
520 
521  // particle beta
522  G4double beta = aParticle->GetTotalMomentum() /
523  aParticle->GetTotalEnergy();
524  // particle gamma
525  G4double gamma = aParticle->GetTotalEnergy()/mass;
526 
527  G4MaterialPropertiesTable* aMaterialPropertiesTable =
528  aMaterial->GetMaterialPropertiesTable();
529 
530  G4MaterialPropertyVector* Rindex = NULL;
531 
532  if (aMaterialPropertiesTable)
533  Rindex = aMaterialPropertiesTable->GetProperty("RINDEX");
534 
535  G4double nMax;
536  if (Rindex) {
537  nMax = Rindex->GetMaxValue();
538  } else {
539  return StepLimit;
540  }
541 
542  G4double BetaMin = 1./nMax;
543  if ( BetaMin >= 1. ) return StepLimit;
544 
545  G4double GammaMin = 1./std::sqrt(1.-BetaMin*BetaMin);
546 
547  if (gamma < GammaMin ) return StepLimit;
548 
549  G4double kinEmin = mass*(GammaMin-1.);
550 
552  GetRange(particleType,
553  kinEmin,
554  couple);
556  GetRange(particleType,
557  kineticEnergy,
558  couple);
559 
560  G4double Step = Range - RangeMin;
561  if (Step < 1.*um ) return StepLimit;
562 
563  if (Step > 0. && Step < StepLimit) StepLimit = Step;
564 
565  // If user has defined an average maximum number of photons to
566  // be generated in a Step, then calculate the Step length for
567  // that number of photons.
568 
569  if (fMaxPhotons > 0) {
570 
571  // particle charge
572  const G4double charge = aParticle->
573  GetDefinition()->GetPDGCharge();
574 
575  G4double MeanNumberOfPhotons =
576  GetAverageNumberOfPhotons(charge,beta,aMaterial,Rindex);
577 
578  Step = 0.;
579  if (MeanNumberOfPhotons > 0.0) Step = fMaxPhotons /
580  MeanNumberOfPhotons;
581 
582  if (Step > 0. && Step < StepLimit) StepLimit = Step;
583  }
584 
585  // If user has defined an maximum allowed change in beta per step
586  if (fMaxBetaChange > 0.) {
587 
589  GetDEDX(particleType,
590  kineticEnergy,
591  couple);
592 
593  G4double deltaGamma = gamma -
594  1./std::sqrt(1.-beta*beta*
595  (1.-fMaxBetaChange)*
596  (1.-fMaxBetaChange));
597 
598  Step = mass * deltaGamma / dedx;
599 
600  if (Step > 0. && Step < StepLimit) StepLimit = Step;
601 
602  }
603 
604  *condition = StronglyForced;
605  return StepLimit;
606 }
607 
608 // GetAverageNumberOfPhotons
609 // -------------------------
610 // This routine computes the number of Cerenkov photons produced per
611 // GEANT-unit (millimeter) in the current medium.
612 // ^^^^^^^^^^
613 
614 G4double
616  const G4double beta,
617  const G4Material* aMaterial,
618  G4MaterialPropertyVector* Rindex) const
619 {
620  const G4double Rfact = 369.81/(eV * cm);
621 
622  if(beta <= 0.0)return 0.0;
623 
624  G4double BetaInverse = 1./beta;
625 
626  // Vectors used in computation of Cerenkov Angle Integral:
627  // - Refraction Indices for the current material
628  // - new G4PhysicsOrderedFreeVector allocated to hold CAI's
629 
630  G4int materialIndex = aMaterial->GetIndex();
631 
632  // Retrieve the Cerenkov Angle Integrals for this material
633 
634  G4PhysicsOrderedFreeVector* CerenkovAngleIntegrals =
635  (G4PhysicsOrderedFreeVector*)((*thePhysicsTable)(materialIndex));
636 
637  if(!(CerenkovAngleIntegrals->IsFilledVectorExist()))return 0.0;
638 
639  // Min and Max photon energies
640  G4double Pmin = Rindex->GetMinLowEdgeEnergy();
641  G4double Pmax = Rindex->GetMaxLowEdgeEnergy();
642 
643  // Min and Max Refraction Indices
644  G4double nMin = Rindex->GetMinValue();
645  G4double nMax = Rindex->GetMaxValue();
646 
647  // Max Cerenkov Angle Integral
648  G4double CAImax = CerenkovAngleIntegrals->GetMaxValue();
649 
650  G4double dp, ge;
651 
652  // If n(Pmax) < 1/Beta -- no photons generated
653 
654  if (nMax < BetaInverse) {
655  dp = 0;
656  ge = 0;
657  }
658 
659  // otherwise if n(Pmin) >= 1/Beta -- photons generated
660 
661  else if (nMin > BetaInverse) {
662  dp = Pmax - Pmin;
663  ge = CAImax;
664  }
665 
666  // If n(Pmin) < 1/Beta, and n(Pmax) >= 1/Beta, then
667  // we need to find a P such that the value of n(P) == 1/Beta.
668  // Interpolation is performed by the GetEnergy() and
669  // Value() methods of the G4MaterialPropertiesTable and
670  // the GetValue() method of G4PhysicsVector.
671 
672  else {
673  Pmin = Rindex->GetEnergy(BetaInverse);
674  dp = Pmax - Pmin;
675 
676  // need boolean for current implementation of G4PhysicsVector
677  // ==> being phased out
678  G4bool isOutRange;
679  G4double CAImin = CerenkovAngleIntegrals->
680  GetValue(Pmin, isOutRange);
681  ge = CAImax - CAImin;
682 
683  if (verboseLevel>0) {
684  G4cout << "CAImin = " << CAImin << G4endl;
685  G4cout << "ge = " << ge << G4endl;
686  }
687  }
688 
689  // Calculate number of photons
690  G4double NumPhotons = Rfact * charge/eplus * charge/eplus *
691  (dp - ge * BetaInverse*BetaInverse);
692 
693  return NumPhotons;
694 }
static const double cm
Definition: G4SIunits.hh:118
G4double condition(const G4ErrorSymMatrix &m)
void SetMaxBetaChangePerStep(const G4double d)
Definition: G4Cerenkov.cc:151
G4long G4Poisson(G4double mean)
Definition: G4Poisson.hh:51
G4int GetNumberOfSecondaries() const
static G4LossTableManager * Instance()
G4MaterialPropertyVector * GetProperty(const char *key)
G4int verboseLevel
Definition: G4VProcess.hh:368
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
G4double GetTotalEnergy() const
G4double GetStepLength() const
const G4DynamicParticle * GetDynamicParticle() const
void SetTrackSecondariesFirst(const G4bool state)
Definition: G4Cerenkov.cc:146
size_t GetIndex() const
Definition: G4Material.hh:262
G4double GetAverageNumberOfPhotons(const G4double charge, const G4double beta, const G4Material *aMaterial, G4MaterialPropertyVector *Rindex) const
Definition: G4Cerenkov.cc:615
G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double, G4ForceCondition *)
Definition: G4Cerenkov.cc:499
G4TrackStatus GetTrackStatus() const
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:589
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
std::vector< G4Material * > G4MaterialTable
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4ParticleDefinition * GetDefinition() const
G4double GetVelocity() const
G4PhysicsTable * thePhysicsTable
Definition: G4Cerenkov.hh:210
size_t GetVectorLength() const
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
G4int fMaxPhotons
Definition: G4Cerenkov.hh:219
G4double GetTotalMomentum() const
G4StepPoint * GetPreStepPoint() const
G4double GetMeanFreePath(const G4Track &aTrack, G4double, G4ForceCondition *)
Definition: G4Cerenkov.cc:492
#define G4UniformRand()
Definition: Randomize.hh:97
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetPosition() const
bool G4bool
Definition: G4Types.hh:79
static const double twopi
Definition: G4SIunits.hh:75
G4double fMaxBetaChange
Definition: G4Cerenkov.hh:218
void SetProcessSubType(G4int)
Definition: G4VProcess.hh:432
static const double perCent
Definition: G4SIunits.hh:329
void SetMaxNumPhotonsPerStep(const G4int NumPhotons)
Definition: G4Cerenkov.cc:156
Definition: G4Step.hh:76
G4int GetTrackID() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
G4double Energy(size_t index) const
G4double Value(G4double theEnergy, size_t &lastidx) const
static size_t GetNumberOfMaterials()
Definition: G4Material.cc:596
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
void SetKineticEnergy(G4double aEnergy)
G4double GetEnergy(G4double aValue)
G4Material * GetMaterial() const
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
Definition: G4Cerenkov.cc:170
static G4OpticalPhoton * OpticalPhoton()
virtual void Initialize(const G4Track &)
static const double eV
Definition: G4SIunits.hh:212
G4double GetPDGMass() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4MaterialPropertiesTable * GetMaterialPropertiesTable() const
Definition: G4Material.hh:252
void SetNumberOfSecondaries(G4int totSecondaries)
void SetParentID(const G4int aValue)
G4StepPoint * GetPostStepPoint() const
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:283
G4ParticleChange aParticleChange
Definition: G4VProcess.hh:289
Definition: Step.hh:41
void AddSecondary(G4Track *aSecondary)
void insertAt(size_t, G4PhysicsVector *)
G4Cerenkov(const G4String &processName="Cerenkov", G4ProcessType type=fElectromagnetic)
Definition: G4Cerenkov.cc:100
static const double um
Definition: G4SIunits.hh:112
#define G4endl
Definition: G4ios.hh:61
G4double GetGlobalTime() const
double G4double
Definition: G4Types.hh:76
void ProposeTrackStatus(G4TrackStatus status)
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
Definition: G4Cerenkov.cc:161
static const double eplus
Definition: G4SIunits.hh:196
G4ForceCondition
G4double GetPDGCharge() const
G4ThreeVector G4ParticleMomentum
G4ThreeVector GetDeltaPosition() const
G4bool IsFilledVectorExist() const
#define DBL_MAX
Definition: templates.hh:83
const G4TouchableHandle & GetTouchableHandle() const
void clearAndDestroy()
void BuildThePhysicsTable()
Definition: G4Cerenkov.cc:393
G4ProcessType
G4double GetBeta() const
G4bool fTrackSecondariesFirst
Definition: G4Cerenkov.hh:217
G4bool IsApplicable(const G4ParticleDefinition &aParticleType)
Definition: G4Cerenkov.cc:135