Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QuasiCerenkov.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#include "G4QuasiCerenkov.hh"
28
29#include "G4ios.hh"
30#include "G4LossTableManager.hh"
31#include "G4Material.hh"
35#include "G4OpticalPhoton.hh"
37#include "G4ParticleMomentum.hh"
40#include "G4Poisson.hh"
41#include "G4QuasiOpticalData.hh"
43#include "G4SystemOfUnits.hh"
44#include "G4ThreeVector.hh"
45#include "Randomize.hh"
47
48//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50 : G4VProcess(processName, type)
51 , fNumPhotons(0)
52{
53 secID = G4PhysicsModelCatalog::GetModelID("model_QuasiCerenkov");
55
56 thePhysicsTable = nullptr;
57
58 if(verboseLevel > 0)
59 {
60 G4cout << GetProcessName() << " is created." << G4endl;
61 }
62 Initialise();
63}
64
65//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67{
68 if(thePhysicsTable != nullptr)
69 {
70 thePhysicsTable->clearAndDestroy();
71 delete thePhysicsTable;
72 }
73}
74
75void G4QuasiCerenkov::ProcessDescription(std::ostream& out) const
76{
77 out << "The Cerenkov effect simulates optical photons created by the\n";
78 out << "passage of charged particles through matter. Materials need\n";
79 out << "to have the property RINDEX (refractive index) defined.\n";
81
83 out << "Maximum beta change per step: " << params->GetCerenkovMaxBetaChange();
84 out << "Maximum photons per step: " << params->GetCerenkovMaxPhotonsPerStep();
85 out << "Track secondaries first: "
87 out << "Stack photons: " << params->GetCerenkovStackPhotons();
88 out << "Verbose level: " << params->GetCerenkovVerboseLevel();
89}
90
91//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93{
94 return (aParticleType.GetPDGCharge() != 0.0 &&
95 aParticleType.GetPDGMass() != 0.0 &&
96 aParticleType.GetParticleName() != "chargedgeantino" &&
97 !aParticleType.IsShortLived())
98 ? true
99 : false;
100}
101
102//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
116{
118 return;
119
120 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
121 std::size_t numOfMaterials = G4Material::GetNumberOfMaterials();
122
123 // Find the number of materials that have non-empty material property tables
124 std::size_t numOfMaterialsWithMPT = 0;
125 for(std::size_t i = 0; i < numOfMaterials; ++i)
126 {
127 if(((*theMaterialTable)[i])->GetMaterialPropertiesTable())
128 {
129 ++numOfMaterialsWithMPT;
130 }
131 }
132
133 thePhysicsTable = new G4PhysicsTable(numOfMaterialsWithMPT);
134
135 // loop over materials
136 std::size_t indexMPT = 0;
137 for(std::size_t i = 0; i < numOfMaterials; ++i)
138 {
139 G4PhysicsFreeVector* cerenkovIntegral = nullptr;
140
141 // Retrieve vector of refraction indices for the material
142 // from the material's optical properties table
143 G4Material* aMaterial = (*theMaterialTable)[i];
145
146 if(MPT)
147 {
148 cerenkovIntegral = new G4PhysicsFreeVector();
149 G4MaterialPropertyVector* refractiveIndex = MPT->GetProperty(kRINDEX);
150
151 if(refractiveIndex)
152 {
153 // Retrieve the first refraction index in vector
154 // of (photon energy, refraction index) pairs
155 G4double currentRI = (*refractiveIndex)[0];
156 if(currentRI > 1.0)
157 {
158 // Create first (photon energy, Cerenkov Integral) pair
159 G4double currentPM = refractiveIndex->Energy(0);
160 G4double currentCAI = 0.0;
161
162 cerenkovIntegral->InsertValues(currentPM, currentCAI);
163
164 // Set previous values to current ones prior to loop
165 G4double prevPM = currentPM;
166 G4double prevCAI = currentCAI;
167 G4double prevRI = currentRI;
168
169 // loop over all (photon energy, refraction index)
170 // pairs stored for this material
171 for(std::size_t ii = 1; ii < refractiveIndex->GetVectorLength(); ++ii)
172 {
173 currentRI = (*refractiveIndex)[ii];
174 currentPM = refractiveIndex->Energy(ii);
175 currentCAI = prevCAI + (currentPM - prevPM) * 0.5 *
176 (1.0 / (prevRI * prevRI) +
177 1.0 / (currentRI * currentRI));
178
179 cerenkovIntegral->InsertValues(currentPM, currentCAI);
180
181 prevPM = currentPM;
182 prevCAI = currentCAI;
183 prevRI = currentRI;
184 }
185 }
186 }
187 // The Cerenkov integral for a given material will be inserted in
188 // thePhysicsTable according to the position of the material in
189 // the material table.
190 thePhysicsTable->insertAt(indexMPT, cerenkovIntegral);
191 fIndexMPT.insert(std::make_pair(i, indexMPT));
192 ++indexMPT;
193 }
194 }
195}
196
197//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
199 const G4Step& aStep)
200// This routine is called for each tracking Step of a charged particle
201// in a radiator. A Poisson-distributed number of photons is generated
202// according to the Cerenkov formula, distributed evenly along the track
203// segment and uniformly azimuth w.r.t. the particle direction. The
204// parameters are then transformed into the Master Reference System, and
205// they are added to the particle change.
206
207{
208 aParticleChange.Initialize(aTrack);
209
210 const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
211 const G4Material* aMaterial = aTrack.GetMaterial();
212
213 G4StepPoint* pPreStepPoint = aStep.GetPreStepPoint();
214 G4StepPoint* pPostStepPoint = aStep.GetPostStepPoint();
215
216 G4ThreeVector x0 = pPreStepPoint->GetPosition();
217 G4ThreeVector p0 = aStep.GetDeltaPosition().unit();
218 G4double t0 = pPreStepPoint->GetGlobalTime();
219
221 if(!MPT)
222 return pParticleChange;
223
225 if(!Rindex)
226 return pParticleChange;
227
228 G4double charge = aParticle->GetDefinition()->GetPDGCharge();
229
230 G4double beta1 = pPreStepPoint->GetBeta();
231 G4double beta2 = pPostStepPoint->GetBeta();
232 G4double beta = (beta1 + beta2) * 0.5;
233
234 G4double MeanNumberOfPhotons =
235 GetAverageNumberOfPhotons(charge, beta, aMaterial, Rindex);
236 G4double MeanNumberOfPhotons1 =
237 GetAverageNumberOfPhotons(charge, beta1, aMaterial, Rindex);
238 G4double MeanNumberOfPhotons2 =
239 GetAverageNumberOfPhotons(charge, beta2, aMaterial, Rindex);
240
241 if(MeanNumberOfPhotons <= 0.0)
242 {
243 // return unchanged particle and no secondaries
244 aParticleChange.SetNumberOfSecondaries(0);
245 return pParticleChange;
246 }
247
248 MeanNumberOfPhotons *= aStep.GetStepLength();
249 fNumPhotons = (G4int) G4Poisson(MeanNumberOfPhotons);
250
251 // third condition added to prevent infinite loop in do-while below,
252 // see bugzilla 2555
253 if(fNumPhotons <= 0 || !fStackingFlag ||
254 std::max(MeanNumberOfPhotons1, MeanNumberOfPhotons2) < 1e-15)
255 {
256 // return unchanged particle and no secondaries
257 aParticleChange.SetNumberOfSecondaries(0);
258 return pParticleChange;
259 }
260
261 G4double deltaVelocity = pPostStepPoint->GetVelocity() -
262 pPreStepPoint->GetVelocity();
263 auto touchableHandle = aStep.GetPreStepPoint()->GetTouchableHandle();
264
265 if(fOffloadingFlag)
266 {
267 // Create a G4DynamicParticle with G4QuasiOpticalPhoton
268 auto quasiPhoton = new G4DynamicParticle(
270 aParticle->GetMomentum());
271
272 // Create a new G4Track object with the quasi-optical photon
273 G4Track* aSecondaryTrack = new G4Track(quasiPhoton, t0, x0);
274 aSecondaryTrack->SetTouchableHandle(touchableHandle);
275 aSecondaryTrack->SetParentID(aTrack.GetTrackID());
276 aSecondaryTrack->SetCreatorModelID(secID);
277
278 // Attach auxiliary track information with associated metadata
279 G4QuasiOpticalData quasiTrackData{aMaterial->GetIndex(), fNumPhotons,
280 charge, aStep.GetStepLength(), pPreStepPoint->GetVelocity(),
281 deltaVelocity, aStep.GetDeltaPosition()};
282 aSecondaryTrack->SetAuxiliaryTrackInformation(secID,
283 new G4CerenkovQuasiTrackInfo(quasiTrackData,
284 MeanNumberOfPhotons1, MeanNumberOfPhotons2));
285 aParticleChange.AddSecondary(aSecondaryTrack);
286
287 // Return early when offloading is enabled
288 return pParticleChange;
289 }
290
291 ////////////////////////////////////////////////////////////////
292 aParticleChange.SetNumberOfSecondaries(fNumPhotons);
293
294 if(fTrackSecondariesFirst)
295 {
296 if(aTrack.GetTrackStatus() == fAlive)
297 aParticleChange.ProposeTrackStatus(fSuspend);
298 }
299
300 ////////////////////////////////////////////////////////////////
301 G4double Pmin = Rindex->Energy(0);
302 G4double Pmax = Rindex->GetMaxEnergy();
303 G4double dp = Pmax - Pmin;
304 G4double deltaNumberOfPhotons = MeanNumberOfPhotons1 - MeanNumberOfPhotons2;
305 G4double maxNumberOfPhotons =
306 std::max(MeanNumberOfPhotons1, MeanNumberOfPhotons2);
307
308 G4double nMax = Rindex->GetMaxValue();
309 G4double BetaInverse = 1. / beta;
310
311 G4double maxCos = BetaInverse / nMax;
312 G4double maxSin2 = 1.0 - maxCos * maxCos;
313
314 for(G4int i = 0; i < fNumPhotons; ++i)
315 {
316 // Determine photon energy
317 G4double rand;
318 G4double sampledEnergy;
319 G4double cosTheta, sin2Theta;
320
321 // sample an energy
322 do
323 {
324 rand = G4UniformRand();
325 sampledEnergy = Pmin + rand * dp;
326 cosTheta = BetaInverse / Rindex->Value(sampledEnergy);
327
328 sin2Theta = 1.0 - cosTheta * cosTheta;
329 rand = G4UniformRand();
330
331 // Loop checking, 07-Aug-2015, Vladimir Ivanchenko
332 } while(rand * maxSin2 > sin2Theta);
333
334 // Create photon momentum direction vector. The momentum direction is still
335 // with respect to the coordinate system where the primary particle
336 // direction is aligned with the z axis
337 rand = G4UniformRand();
338 G4double phi = twopi * rand;
339 G4double sinPhi = std::sin(phi);
340 G4double cosPhi = std::cos(phi);
341 G4double sinTheta = std::sqrt(sin2Theta);
342 G4ParticleMomentum photonMomentum(sinTheta * cosPhi, sinTheta * sinPhi,
343 cosTheta);
344
345 // Rotate momentum direction back to global reference system
346 photonMomentum.rotateUz(p0);
347
348 // Determine polarization of new photon
349 G4ThreeVector photonPolarization(cosTheta * cosPhi, cosTheta * sinPhi,
350 -sinTheta);
351
352 // Rotate back to original coord system
353 photonPolarization.rotateUz(p0);
354
355 // Generate a new photon:
356 auto aCerenkovPhoton =
358
359 aCerenkovPhoton->SetPolarization(photonPolarization);
360 aCerenkovPhoton->SetKineticEnergy(sampledEnergy);
361
362 G4double NumberOfPhotons;
363
364 do
365 {
366 rand = G4UniformRand();
367 NumberOfPhotons = MeanNumberOfPhotons1 - rand * deltaNumberOfPhotons;
368 // Loop checking, 07-Aug-2015, Vladimir Ivanchenko
369 } while(G4UniformRand() * maxNumberOfPhotons > NumberOfPhotons);
370
371 G4double delta = rand * aStep.GetStepLength();
372 G4double deltaTime =
373 delta / (pPreStepPoint->GetVelocity() + rand * deltaVelocity * 0.5);
374
375 G4double aSecondaryTime = t0 + deltaTime;
376 G4ThreeVector aSecondaryPosition = x0 + rand * aStep.GetDeltaPosition();
377
378 // Generate new G4Track object:
379 G4Track* aSecondaryTrack =
380 new G4Track(aCerenkovPhoton, aSecondaryTime, aSecondaryPosition);
381
382 aSecondaryTrack->SetTouchableHandle(touchableHandle);
383 aSecondaryTrack->SetParentID(aTrack.GetTrackID());
384 aSecondaryTrack->SetCreatorModelID(secID);
385 aParticleChange.AddSecondary(aSecondaryTrack);
386 }
387
388 if(verboseLevel > 1)
389 {
390 G4cout << "\n Exiting from G4QuasiCerenkov::DoIt -- NumberOfSecondaries = "
391 << aParticleChange.GetNumberOfSecondaries() << G4endl;
392 }
393
394 return pParticleChange;
395}
396
397//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
402
403//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
409
410//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
413{
415 G4double StepLimit = DBL_MAX;
416 fNumPhotons = 0;
417
418 const G4Material* aMaterial = aTrack.GetMaterial();
419 std::size_t materialIndex = aMaterial->GetIndex();
420
421 // If Physics Vector is not defined no Cerenkov photons
422 const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
424 ((*materialTable)[materialIndex])->GetMaterialPropertiesTable();
425 // if(!(*thePhysicsTable)[materialIndex])
426 if(!MPT)
427 {
428 return StepLimit;
429 }
430
431 const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
432 const G4MaterialCutsCouple* couple = aTrack.GetMaterialCutsCouple();
433
434 G4double kineticEnergy = aParticle->GetKineticEnergy();
435 const G4ParticleDefinition* particleType = aParticle->GetDefinition();
436 G4double mass = particleType->GetPDGMass();
437
438 G4double beta = aParticle->GetTotalMomentum() / aParticle->GetTotalEnergy();
439 G4double gamma = aParticle->GetTotalEnergy() / mass;
440
441 G4MaterialPropertiesTable* aMaterialPropertiesTable =
442 aMaterial->GetMaterialPropertiesTable();
443
444 G4MaterialPropertyVector* Rindex = nullptr;
445
446 if(aMaterialPropertiesTable)
447 Rindex = aMaterialPropertiesTable->GetProperty(kRINDEX);
448
449 G4double nMax;
450 if(Rindex)
451 {
452 nMax = Rindex->GetMaxValue();
453 }
454 else
455 {
456 return StepLimit;
457 }
458
459 G4double BetaMin = 1. / nMax;
460 if(BetaMin >= 1.)
461 return StepLimit;
462
463 G4double GammaMin = 1. / std::sqrt(1. - BetaMin * BetaMin);
464 if(gamma < GammaMin)
465 return StepLimit;
466
467 G4double kinEmin = mass * (GammaMin - 1.);
468 G4double RangeMin =
469 G4LossTableManager::Instance()->GetRange(particleType, kinEmin, couple);
471 particleType, kineticEnergy, couple);
472 G4double Step = Range - RangeMin;
473
474 // If the step is smaller than G4ThreeVector::getTolerance(), it may happen
475 // that the particle does not move. See bug 1992.
476 static const G4double minAllowedStep = G4ThreeVector::getTolerance();
477 if(Step < minAllowedStep)
478 return StepLimit;
479
480 if(Step < StepLimit)
481 StepLimit = Step;
482
483 // If user has defined an average maximum number of photons to be generated in
484 // a Step, then calculate the Step length for that number of photons.
485 if(fMaxPhotons > 0)
486 {
487 const G4double charge = aParticle->GetDefinition()->GetPDGCharge();
488 G4double MeanNumberOfPhotons =
489 GetAverageNumberOfPhotons(charge, beta, aMaterial, Rindex);
490 Step = 0.;
491 if(MeanNumberOfPhotons > 0.0)
492 Step = fMaxPhotons / MeanNumberOfPhotons;
493 if(Step > 0. && Step < StepLimit)
494 StepLimit = Step;
495 }
496
497 // If user has defined an maximum allowed change in beta per step
498 if(fMaxBetaChange > 0.)
499 {
501 particleType, kineticEnergy, couple);
502 G4double deltaGamma =
503 gamma - 1. / std::sqrt(1. - beta * beta * (1. - fMaxBetaChange) *
504 (1. - fMaxBetaChange));
505
506 Step = mass * deltaGamma / dedx;
507 if(Step > 0. && Step < StepLimit)
508 StepLimit = Step;
509 }
510
512 return StepLimit;
513}
514
515//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
517 const G4double charge, const G4double beta, const G4Material* aMaterial,
518 G4MaterialPropertyVector* Rindex) const
519// This routine computes the number of Cerenkov photons produced per
520// Geant4-unit (millimeter) in the current medium.
521{
522 constexpr G4double Rfact = 369.81 / (eV * cm);
523 if(beta <= 0.0)
524 return 0.0;
525 G4double BetaInverse = 1. / beta;
526
527 // Vectors used in computation of Cerenkov Angle Integral:
528 // - Refraction Indices for the current material
529 // - new G4PhysicsFreeVector allocated to hold CAI's
530 std::size_t materialIndex = aMaterial->GetIndex();
531
532 // Retrieve the Cerenkov Angle Integrals for this material
533 auto it = fIndexMPT.find(materialIndex);
534
535 std::size_t indexMPT = 0;
536 if(it != fIndexMPT.end())
537 {
538 indexMPT = it->second;
539 }
540 else
541 {
543 ed << "G4MaterialPropertiesTable for " << aMaterial->GetName()
544 << " is not found!" << G4endl;
545 G4Exception("G4QuasiCerenkov::GetAverageNumberOfPhotons",
546 "QuasiCerenkovCerenkov01", FatalException, ed);
547 }
548
549 G4PhysicsVector* CerenkovAngleIntegrals = ((*thePhysicsTable)(indexMPT));
550
551 std::size_t length = CerenkovAngleIntegrals->GetVectorLength();
552 if(0 == length)
553 return 0.0;
554
555 // Min and Max photon energies
556 G4double Pmin = Rindex->Energy(0);
557 G4double Pmax = Rindex->GetMaxEnergy();
558
559 // Min and Max Refraction Indices
560 G4double nMin = Rindex->GetMinValue();
561 G4double nMax = Rindex->GetMaxValue();
562
563 // Max Cerenkov Angle Integral
564 G4double CAImax = (*CerenkovAngleIntegrals)[length - 1];
565
566 G4double dp, ge;
567 // If n(Pmax) < 1/Beta -- no photons generated
568 if(nMax < BetaInverse)
569 {
570 dp = 0.0;
571 ge = 0.0;
572 }
573 // otherwise if n(Pmin) >= 1/Beta -- photons generated
574 else if(nMin > BetaInverse)
575 {
576 dp = Pmax - Pmin;
577 ge = CAImax;
578 }
579 // If n(Pmin) < 1/Beta, and n(Pmax) >= 1/Beta, then we need to find a P such
580 // that the value of n(P) == 1/Beta. Interpolation is performed by the
581 // GetEnergy() and Value() methods of the G4MaterialPropertiesTable and
582 // the Value() method of G4PhysicsVector.
583 else
584 {
585 Pmin = Rindex->GetEnergy(BetaInverse);
586 dp = Pmax - Pmin;
587
588 G4double CAImin = CerenkovAngleIntegrals->Value(Pmin);
589 ge = CAImax - CAImin;
590
591 if(verboseLevel > 1)
592 {
593 G4cout << "CAImin = " << CAImin << G4endl << "ge = " << ge << G4endl;
594 }
595 }
596
597 // Calculate number of photons
598 G4double NumPhotons = Rfact * charge / eplus * charge / eplus *
599 (dp - ge * BetaInverse * BetaInverse);
600
601 return NumPhotons;
602}
603
604//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
606{
607 fTrackSecondariesFirst = state;
609 fTrackSecondariesFirst);
610}
611
612//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
614{
615 fMaxBetaChange = value * CLHEP::perCent;
617}
618
619//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
621{
622 fMaxPhotons = NumPhotons;
624}
625
627{
628 fStackingFlag = stackingFlag;
630}
631
633{
634 fOffloadingFlag = offloadingFlag;
636}
637
638//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
640{
641 G4cout << "Dump Physics Table!" << G4endl;
642 for(std::size_t i = 0; i < thePhysicsTable->entries(); ++i)
643 {
644 (*thePhysicsTable)[i]->DumpValues();
645 }
646}
647
648//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ fCerenkov
G4double condition(const G4ErrorSymMatrix &m)
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4ForceCondition
@ StronglyForced
@ NotForced
G4PhysicsFreeVector G4MaterialPropertyVector
std::vector< G4Material * > G4MaterialTable
G4ThreeVector G4ParticleMomentum
G4long G4Poisson(G4double mean)
Definition G4Poisson.hh:50
G4ProcessType
CLHEP::Hep3Vector G4ThreeVector
@ fSuspend
@ fAlive
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
#define G4UniformRand()
Definition Randomize.hh:52
Hep3Vector unit() const
static double getTolerance()
Hep3Vector & rotateUz(const Hep3Vector &)
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4ThreeVector GetMomentum() const
G4double GetTotalMomentum() const
static G4LossTableManager * Instance()
G4double GetRange(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
G4double GetDEDX(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
G4MaterialPropertyVector * GetProperty(const char *key) const
G4MaterialPropertiesTable * GetMaterialPropertiesTable() const
static std::size_t GetNumberOfMaterials()
std::size_t GetIndex() const
static G4MaterialTable * GetMaterialTable()
void SetCerenkovMaxBetaChange(G4double)
void SetCerenkovMaxPhotonsPerStep(G4int)
G4int GetCerenkovVerboseLevel() const
G4int GetCerenkovMaxPhotonsPerStep() const
static G4OpticalParameters * Instance()
G4double GetCerenkovMaxBetaChange() const
void SetCerenkovStackPhotons(G4bool)
void SetCerenkovTrackSecondariesFirst(G4bool)
G4bool GetCerenkovOffloadPhotons() const
void SetCerenkovOffloadPhotons(G4bool)
G4bool GetCerenkovTrackSecondariesFirst() const
G4bool GetCerenkovStackPhotons() const
static G4OpticalPhoton * OpticalPhoton()
const G4String & GetParticleName() const
void InsertValues(const G4double energy, const G4double value)
static G4int GetModelID(const G4int modelIndex)
G4double GetMaxEnergy() const
G4double GetMaxValue() const
G4double Energy(const std::size_t index) const
G4double Value(const G4double energy, std::size_t &lastidx) const
std::size_t GetVectorLength() const
G4double GetAverageNumberOfPhotons(const G4double charge, const G4double beta, const G4Material *aMaterial, G4MaterialPropertyVector *Rindex) const
G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double, G4ForceCondition *) override
void ProcessDescription(std::ostream &out) const override
void PreparePhysicsTable(const G4ParticleDefinition &part) override
G4bool IsApplicable(const G4ParticleDefinition &aParticleType) override
void SetMaxNumPhotonsPerStep(const G4int NumPhotons)
void DumpPhysicsTable() const
G4PhysicsTable * thePhysicsTable
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType) override
void SetOffloadPhotons(const G4bool)
std::map< std::size_t, std::size_t > fIndexMPT
G4QuasiCerenkov(const G4String &processName="QuasiCerenkov", G4ProcessType type=fElectromagnetic)
void SetTrackSecondariesFirst(const G4bool state)
void SetVerboseLevel(G4int)
void SetMaxBetaChangePerStep(const G4double d)
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep) override
G4double GetMeanFreePath(const G4Track &aTrack, G4double, G4ForceCondition *)
void SetStackPhotons(const G4bool)
static G4QuasiOpticalPhoton * QuasiOpticalPhotonDefinition()
G4double GetVelocity() const
G4double GetBeta() const
G4double GetGlobalTime() const
const G4ThreeVector & GetPosition() const
const G4TouchableHandle & GetTouchableHandle() const
G4ThreeVector GetDeltaPosition() const
G4StepPoint * GetPreStepPoint() const
G4double GetStepLength() const
G4StepPoint * GetPostStepPoint() const
G4TrackStatus GetTrackStatus() const
G4int GetTrackID() const
void SetAuxiliaryTrackInformation(G4int id, G4VAuxiliaryTrackInformation *info) const
Definition G4Track.cc:215
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const
void SetCreatorModelID(const G4int id)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
void SetParentID(const G4int aValue)
G4ParticleChange aParticleChange
G4VProcess(const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
Definition G4VProcess.cc:46
G4int verboseLevel
void SetProcessSubType(G4int)
G4VParticleChange * pParticleChange
virtual void DumpInfo() const
const G4String & GetProcessName() const
#define DBL_MAX
Definition templates.hh:62