CMS 3D CMS Logo

StackingAction.cc
Go to the documentation of this file.
6 
8 
9 #include "G4VProcess.hh"
10 #include "G4EmProcessSubType.hh"
11 #include "G4LogicalVolumeStore.hh"
12 #include "G4RegionStore.hh"
13 #include "Randomize.hh"
14 #include "G4SystemOfUnits.hh"
15 #include "G4VSolid.hh"
16 #include "G4TransportationManager.hh"
17 #include "G4GammaGeneralProcess.hh"
18 #include "G4LossTableManager.hh"
19 
21  : trackAction(trka), steppingVerbose(sv) {
22  trackNeutrino = p.getParameter<bool>("TrackNeutrino");
23  killHeavy = p.getParameter<bool>("KillHeavy");
24  killGamma = p.getParameter<bool>("KillGamma");
25  kmaxGamma = p.getParameter<double>("GammaThreshold") * CLHEP::MeV;
26  kmaxIon = p.getParameter<double>("IonThreshold") * CLHEP::MeV;
27  kmaxProton = p.getParameter<double>("ProtonThreshold") * CLHEP::MeV;
28  kmaxNeutron = p.getParameter<double>("NeutronThreshold") * CLHEP::MeV;
29  killDeltaRay = p.getParameter<bool>("KillDeltaRay");
30  limitEnergyForVacuum = p.getParameter<double>("CriticalEnergyForVacuum") * CLHEP::MeV;
31  maxTrackTime = p.getParameter<double>("MaxTrackTime") * ns;
32  maxTrackTimeForward = p.getParameter<double>("MaxTrackTimeForward") * ns;
33  maxZCentralCMS = p.getParameter<double>("MaxZCentralCMS") * CLHEP::m;
34  maxTrackTimes = p.getParameter<std::vector<double> >("MaxTrackTimes");
35  maxTimeNames = p.getParameter<std::vector<std::string> >("MaxTimeNames");
36  deadRegionNames = p.getParameter<std::vector<std::string> >("DeadRegions");
37  savePDandCinAll = p.getUntrackedParameter<bool>("SaveAllPrimaryDecayProductsAndConversions", true);
38  savePDandCinTracker = p.getUntrackedParameter<bool>("SavePrimaryDecayProductsAndConversionsInTracker", false);
39  savePDandCinCalo = p.getUntrackedParameter<bool>("SavePrimaryDecayProductsAndConversionsInCalo", false);
40  savePDandCinMuon = p.getUntrackedParameter<bool>("SavePrimaryDecayProductsAndConversionsInMuon", false);
41  saveFirstSecondary = p.getUntrackedParameter<bool>("SaveFirstLevelSecondary", false);
42 
43  gRusRoEnerLim = p.getParameter<double>("RusRoGammaEnergyLimit") * CLHEP::MeV;
44  nRusRoEnerLim = p.getParameter<double>("RusRoNeutronEnergyLimit") * CLHEP::MeV;
45 
46  gRusRoEcal = p.getParameter<double>("RusRoEcalGamma");
47  gRusRoHcal = p.getParameter<double>("RusRoHcalGamma");
48  gRusRoMuonIron = p.getParameter<double>("RusRoMuonIronGamma");
49  gRusRoPreShower = p.getParameter<double>("RusRoPreShowerGamma");
50  gRusRoCastor = p.getParameter<double>("RusRoCastorGamma");
51  gRusRoWorld = p.getParameter<double>("RusRoWorldGamma");
52 
53  nRusRoEcal = p.getParameter<double>("RusRoEcalNeutron");
54  nRusRoHcal = p.getParameter<double>("RusRoHcalNeutron");
55  nRusRoMuonIron = p.getParameter<double>("RusRoMuonIronNeutron");
56  nRusRoPreShower = p.getParameter<double>("RusRoPreShowerNeutron");
57  nRusRoCastor = p.getParameter<double>("RusRoCastorNeutron");
58  nRusRoWorld = p.getParameter<double>("RusRoWorldNeutron");
59 
60  if (gRusRoEnerLim > 0.0 && (gRusRoEcal < 1.0 || gRusRoHcal < 1.0 || gRusRoMuonIron < 1.0 || gRusRoPreShower < 1.0 ||
61  gRusRoCastor < 1.0 || gRusRoWorld < 1.0)) {
62  gRRactive = true;
63  }
64  if (nRusRoEnerLim > 0.0 && (nRusRoEcal < 1.0 || nRusRoHcal < 1.0 || nRusRoMuonIron < 1.0 || nRusRoPreShower < 1.0 ||
65  nRusRoCastor < 1.0 || nRusRoWorld < 1.0)) {
66  nRRactive = true;
67  }
68 
69  if (p.exists("TestKillingOptions")) {
70  killInCalo = (p.getParameter<edm::ParameterSet>("TestKillingOptions")).getParameter<bool>("KillInCalo");
71  killInCaloEfH = (p.getParameter<edm::ParameterSet>("TestKillingOptions")).getParameter<bool>("KillInCaloEfH");
72  edm::LogWarning("SimG4CoreApplication")
73  << " *** Activating special test killing options in StackingAction \n"
74  << " *** Kill secondaries in Calorimetetrs volume = " << killInCalo << "\n"
75  << " *** Kill electromagnetic secondaries from hadrons in Calorimeters volume= " << killInCaloEfH;
76  }
77 
78  initPointer();
79  newTA = new NewTrackAction();
80 
81  edm::LogVerbatim("SimG4CoreApplication")
82  << "StackingAction initiated with"
83  << " flag for saving decay products in "
84  << " Tracker: " << savePDandCinTracker << " in Calo: " << savePDandCinCalo << " in Muon: " << savePDandCinMuon
85  << " everywhere: " << savePDandCinAll << "\n saveFirstSecondary"
86  << ": " << saveFirstSecondary << " Tracking neutrino flag: " << trackNeutrino
87  << " Kill Delta Ray flag: " << killDeltaRay << " Kill hadrons/ions flag: " << killHeavy
88  << " MaxZCentralCMS = " << maxZCentralCMS / CLHEP::m << " m"
89  << " MaxTrackTimeForward = " << maxTrackTimeForward / CLHEP::ns << " ns";
90 
91  if (killHeavy) {
92  edm::LogVerbatim("SimG4CoreApplication") << "StackingAction kill protons below " << kmaxProton / CLHEP::MeV
93  << " MeV, neutrons below " << kmaxNeutron / CLHEP::MeV << " MeV and ions"
94  << " below " << kmaxIon / CLHEP::MeV << " MeV";
95  }
97 
98  edm::LogVerbatim("SimG4CoreApplication") << "StackingAction kill tracks with "
99  << "time larger than " << maxTrackTime / CLHEP::ns << " ns ";
100  numberTimes = maxTimeNames.size();
101  if (0 < numberTimes) {
102  for (unsigned int i = 0; i < numberTimes; ++i) {
103  edm::LogVerbatim("SimG4CoreApplication")
104  << " MaxTrackTime for " << maxTimeNames[i] << " is " << maxTrackTimes[i] << " ns ";
105  maxTrackTimes[i] *= CLHEP::ns;
106  }
107  }
108  if (limitEnergyForVacuum > 0.0) {
109  edm::LogVerbatim("SimG4CoreApplication")
110  << "StackingAction LowDensity regions - kill if E < " << limitEnergyForVacuum / CLHEP::MeV << " MeV";
111  printRegions(lowdensRegions, "LowDensity");
112  }
113  if (deadRegions.size() > 0.0) {
114  edm::LogVerbatim("SimG4CoreApplication") << "StackingAction Dead regions - kill all secondaries ";
115  printRegions(deadRegions, "Dead");
116  }
117  if (gRRactive) {
118  edm::LogVerbatim("SimG4CoreApplication")
119  << "StackingAction: "
120  << "Russian Roulette for gamma Elimit(MeV)= " << gRusRoEnerLim / CLHEP::MeV << "\n"
121  << " ECAL Prob= " << gRusRoEcal << "\n"
122  << " HCAL Prob= " << gRusRoHcal << "\n"
123  << " MuonIron Prob= " << gRusRoMuonIron << "\n"
124  << " PreShower Prob= " << gRusRoPreShower << "\n"
125  << " CASTOR Prob= " << gRusRoCastor << "\n"
126  << " World Prob= " << gRusRoWorld;
127  }
128  if (nRRactive) {
129  edm::LogVerbatim("SimG4CoreApplication")
130  << "StackingAction: "
131  << "Russian Roulette for neutron Elimit(MeV)= " << nRusRoEnerLim / CLHEP::MeV << "\n"
132  << " ECAL Prob= " << nRusRoEcal << "\n"
133  << " HCAL Prob= " << nRusRoHcal << "\n"
134  << " MuonIron Prob= " << nRusRoMuonIron << "\n"
135  << " PreShower Prob= " << nRusRoPreShower << "\n"
136  << " CASTOR Prob= " << nRusRoCastor << "\n"
137  << " World Prob= " << nRusRoWorld;
138  }
139 
140  if (savePDandCinTracker) {
141  edm::LogVerbatim("SimG4CoreApplication") << "StackingAction Tracker regions: ";
142  printRegions(trackerRegions, "Tracker");
143  }
144  if (savePDandCinCalo) {
145  edm::LogVerbatim("SimG4CoreApplication") << "StackingAction Calo regions: ";
146  printRegions(caloRegions, "Calo");
147  }
148  if (savePDandCinMuon) {
149  edm::LogVerbatim("SimG4CoreApplication") << "StackingAction Muon regions: ";
150  printRegions(muonRegions, "Muon");
151  }
152  worldSolid = G4TransportationManager::GetTransportationManager()
153  ->GetNavigatorForTracking()
154  ->GetWorldVolume()
155  ->GetLogicalVolume()
156  ->GetSolid();
157 }
158 
160 
161 G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack(const G4Track* aTrack) {
162  // G4 interface part
163  G4ClassificationOfNewTrack classification = fUrgent;
164  const int pdg = aTrack->GetDefinition()->GetPDGEncoding();
165  const int abspdg = std::abs(pdg);
166  auto track = const_cast<G4Track*>(aTrack);
167  const G4VProcess* creatorProc = aTrack->GetCreatorProcess();
168 
169  if (creatorProc == nullptr && aTrack->GetParentID() != 0) {
170  edm::LogWarning("StackingAction::ClassifyNewTrack")
171  << " TrackID=" << aTrack->GetTrackID() << " ParentID=" << aTrack->GetParentID() << " "
172  << aTrack->GetDefinition()->GetParticleName() << " Ekin(MeV)=" << aTrack->GetKineticEnergy();
173  }
174  if (aTrack->GetKineticEnergy() < 0.0) {
175  edm::LogWarning("StackingAction::ClassifyNewTrack")
176  << " TrackID=" << aTrack->GetTrackID() << " ParentID=" << aTrack->GetParentID() << " "
177  << aTrack->GetDefinition()->GetParticleName() << " Ekin(MeV)=" << aTrack->GetKineticEnergy() << " creator "
178  << creatorProc->GetProcessName();
179  }
180  // primary
181  if (creatorProc == nullptr || aTrack->GetParentID() == 0) {
182  if (!trackNeutrino && (abspdg == 12 || abspdg == 14 || abspdg == 16 || abspdg == 18)) {
183  classification = fKill;
184  } else if (worldSolid->Inside(aTrack->GetPosition()) == kOutside) {
185  classification = fKill;
186  } else {
187  newTA->primary(track);
188  }
189  } else {
190  // secondary
191  const G4Region* reg = aTrack->GetVolume()->GetLogicalVolume()->GetRegion();
192  const double time = aTrack->GetGlobalTime();
193 
194  // definetly killed tracks
195  if (aTrack->GetTrackStatus() == fStopAndKill) {
196  classification = fKill;
197  } else if (!trackNeutrino && (abspdg == 12 || abspdg == 14 || abspdg == 16 || abspdg == 18)) {
198  classification = fKill;
199 
200  } else if (std::abs(aTrack->GetPosition().z()) >= maxZCentralCMS) {
201  // very forward secondary
202  if (time > maxTrackTimeForward) {
203  classification = fKill;
204  } else {
205  const G4Track* mother = trackAction->geant4Track();
206  newTA->secondary(track, *mother, 0);
207  }
208 
209  } else if (isItOutOfTimeWindow(reg, time)) {
210  // time window check
211  classification = fKill;
212 
213  } else {
214  // potentially good for tracking
215  const double ke = aTrack->GetKineticEnergy();
216  G4int subType = (nullptr != creatorProc) ? creatorProc->GetProcessSubType() : 0;
217  // VI: this part of code is needed for Geant4 10.7 only
218  if (subType == 16) {
219  auto ptr = dynamic_cast<const G4GammaGeneralProcess*>(creatorProc);
220  if (nullptr != ptr) {
221  creatorProc = ptr->GetSelectedProcess();
222  if (nullptr == creatorProc) {
223  if (nullptr == m_Compton) {
224  auto vp = G4LossTableManager::Instance()->GetEmProcessVector();
225  for (auto& p : vp) {
226  if (fComptonScattering == p->GetProcessSubType()) {
227  m_Compton = p;
228  break;
229  }
230  }
231  }
232  creatorProc = m_Compton;
233  }
234  subType = creatorProc->GetProcessSubType();
235  track->SetCreatorProcess(creatorProc);
236  }
237  if (creatorProc == nullptr) {
238  edm::LogWarning("StackingAction::ClassifyNewTrack")
239  << " SubType=16 and no creatorProc; TrackID=" << aTrack->GetTrackID()
240  << " ParentID=" << aTrack->GetParentID() << " " << aTrack->GetDefinition()->GetParticleName()
241  << " Ekin(MeV)=" << ke << " SubType=" << subType;
242  }
243  }
244  // VI - end
245  LogDebug("SimG4CoreApplication") << "##StackingAction:Classify Track " << aTrack->GetTrackID() << " Parent "
246  << aTrack->GetParentID() << " " << aTrack->GetDefinition()->GetParticleName()
247  << " Ekin(MeV)=" << ke / CLHEP::MeV << " subType=" << subType << " ";
248 
249  // kill tracks in specific regions
250  if (isThisRegion(reg, deadRegions)) {
251  classification = fKill;
252  }
253  if (classification != fKill && ke <= limitEnergyForVacuum && isThisRegion(reg, lowdensRegions)) {
254  classification = fKill;
255 
256  } else if (classification != fKill) {
257  // very low-energy gamma
258  if (pdg == 22 && killGamma && ke < kmaxGamma) {
259  classification = fKill;
260  }
261 
262  // specific track killing - not for production
263  if (killExtra && classification != fKill) {
264  if (killHeavy && classification != fKill) {
265  if (((pdg / 1000000000 == 1) && (((pdg / 10000) % 100) > 0) && (((pdg / 10) % 100) > 0) &&
266  (ke < kmaxIon)) ||
267  ((pdg == 2212) && (ke < kmaxProton)) || ((pdg == 2112) && (ke < kmaxNeutron))) {
268  classification = fKill;
269  }
270  }
271 
272  if (killDeltaRay && classification != fKill && subType == fIonisation) {
273  classification = fKill;
274  }
275  if (killInCalo && classification != fKill && isThisRegion(reg, caloRegions)) {
276  classification = fKill;
277  }
278  if (killInCaloEfH && classification != fKill) {
279  int pdgMother = std::abs(trackAction->geant4Track()->GetDefinition()->GetPDGEncoding());
280  if ((pdg == 22 || abspdg == 11) && pdgMother != 11 && pdgMother != 22 && isThisRegion(reg, caloRegions)) {
281  classification = fKill;
282  }
283  }
284  }
285 
286  // Russian roulette && MC truth
287  if (classification != fKill) {
288  const G4Track* mother = trackAction->geant4Track();
289  int flag = 0;
290  if (savePDandCinAll) {
291  flag = isItPrimaryDecayProductOrConversion(subType, *mother);
292  } else {
296  flag = isItPrimaryDecayProductOrConversion(subType, *mother);
297  }
298  }
299  if (saveFirstSecondary && 0 == flag) {
300  flag = isItFromPrimary(*mother, flag);
301  }
302 
303  // Russian roulette
304  if (2112 == pdg || 22 == pdg) {
305  double currentWeight = aTrack->GetWeight();
306 
307  if (1.0 >= currentWeight) {
308  double prob = 1.0;
309  double elim = 0.0;
310 
311  // neutron
312  if (nRRactive && pdg == 2112) {
313  elim = nRusRoEnerLim;
314  if (reg == regionEcal) {
315  prob = nRusRoEcal;
316  } else if (reg == regionHcal) {
317  prob = nRusRoHcal;
318  } else if (reg == regionMuonIron) {
320  } else if (reg == regionPreShower) {
322  } else if (reg == regionCastor) {
323  prob = nRusRoCastor;
324  } else if (reg == regionWorld) {
325  prob = nRusRoWorld;
326  }
327 
328  // gamma
329  } else if (gRRactive && pdg == 22) {
330  elim = gRusRoEnerLim;
331  if (reg == regionEcal || reg == regionPreShower) {
332  if (rrApplicable(aTrack, *mother)) {
333  if (reg == regionEcal) {
334  prob = gRusRoEcal;
335  } else {
337  }
338  }
339  } else {
340  if (reg == regionHcal) {
341  prob = gRusRoHcal;
342  } else if (reg == regionMuonIron) {
344  } else if (reg == regionCastor) {
345  prob = gRusRoCastor;
346  } else if (reg == regionWorld) {
347  prob = gRusRoWorld;
348  }
349  }
350  }
351  if (prob < 1.0 && aTrack->GetKineticEnergy() < elim) {
352  if (G4UniformRand() < prob) {
353  track->SetWeight(currentWeight / prob);
354  } else {
355  classification = fKill;
356  }
357  }
358  }
359  }
360  if (classification != fKill) {
361  newTA->secondary(track, *mother, flag);
362  }
363  LogDebug("SimG4CoreApplication")
364  << "StackingAction:Classify Track " << aTrack->GetTrackID() << " Parent " << aTrack->GetParentID()
365  << " Type " << aTrack->GetDefinition()->GetParticleName() << " Ekin=" << ke / CLHEP::MeV
366  << " MeV from process subType=" << subType << " as " << classification << " Flag: " << flag;
367  }
368  }
369  }
370  }
371  if (nullptr != steppingVerbose) {
372  steppingVerbose->StackFilled(aTrack, (classification == fKill));
373  }
374  return classification;
375 }
376 
378 
380 
382  // prepare region vector
383  const unsigned int num = maxTimeNames.size();
384  maxTimeRegions.resize(num, nullptr);
385 
386  // Russian roulette
387  const std::vector<G4Region*>* rs = G4RegionStore::GetInstance();
388 
389  for (auto& reg : *rs) {
390  const G4String& rname = reg->GetName();
391  if ((gRusRoEcal < 1.0 || nRusRoEcal < 1.0) && rname == "EcalRegion") {
392  regionEcal = reg;
393  }
394  if ((gRusRoHcal < 1.0 || nRusRoHcal < 1.0) && rname == "HcalRegion") {
395  regionHcal = reg;
396  }
397  if ((gRusRoMuonIron < 1.0 || nRusRoMuonIron < 1.0) && rname == "MuonIron") {
398  regionMuonIron = reg;
399  }
400  if ((gRusRoPreShower < 1.0 || nRusRoPreShower < 1.0) && rname == "PreshowerRegion") {
401  regionPreShower = reg;
402  }
403  if ((gRusRoCastor < 1.0 || nRusRoCastor < 1.0) && rname == "CastorRegion") {
404  regionCastor = reg;
405  }
406  if ((gRusRoWorld < 1.0 || nRusRoWorld < 1.0) && rname == "DefaultRegionForTheWorld") {
407  regionWorld = reg;
408  }
409 
410  // time limits
411  for (unsigned int i = 0; i < num; ++i) {
412  if (rname == (G4String)(maxTimeNames[i])) {
413  maxTimeRegions[i] = reg;
414  break;
415  }
416  }
417  //
418  if (savePDandCinTracker &&
419  (rname == "BeamPipe" || rname == "BeamPipeVacuum" || rname == "TrackerPixelSensRegion" ||
420  rname == "TrackerPixelDeadRegion" || rname == "TrackerDeadRegion" || rname == "TrackerSensRegion" ||
421  rname == "FastTimerRegion" || rname == "FastTimerRegionSensBTL" || rname == "FastTimerRegionSensETL")) {
422  trackerRegions.push_back(reg);
423  }
424  if (savePDandCinCalo && (rname == "HcalRegion" || rname == "EcalRegion" || rname == "PreshowerSensRegion" ||
425  rname == "PreshowerRegion" || rname == "APDRegion" || rname == "HGCalRegion")) {
426  caloRegions.push_back(reg);
427  }
428  if (savePDandCinMuon && (rname == "MuonChamber" || rname == "MuonSensitive_RPC" || rname == "MuonIron" ||
429  rname == "Muon" || rname == "MuonSensitive_DT-CSC")) {
430  muonRegions.push_back(reg);
431  }
432  if (rname == "BeamPipeOutside" || rname == "BeamPipeVacuum") {
433  lowdensRegions.push_back(reg);
434  }
435  for (auto& dead : deadRegionNames) {
436  if (rname == (G4String)(dead)) {
437  deadRegions.push_back(reg);
438  }
439  }
440  }
441 }
442 
443 bool StackingAction::isThisRegion(const G4Region* reg, std::vector<const G4Region*>& regions) const {
444  bool flag = false;
445  for (auto& region : regions) {
446  if (reg == region) {
447  flag = true;
448  break;
449  }
450  }
451  return flag;
452 }
453 
454 int StackingAction::isItPrimaryDecayProductOrConversion(const int stype, const G4Track& mother) const {
455  int flag = 0;
456  const TrackInformation& motherInfo(extractor(mother));
457  // Check whether mother is a primary
458  if (motherInfo.isPrimary()) {
459  if (stype == fDecay) {
460  flag = 1;
461  } else if (stype == fGammaConversion) {
462  flag = 2;
463  }
464  }
465  return flag;
466 }
467 
468 bool StackingAction::rrApplicable(const G4Track* aTrack, const G4Track& mother) const {
469  const TrackInformation& motherInfo(extractor(mother));
470 
471  // Check whether mother is gamma, e+, e-
472  const int genID = motherInfo.genParticlePID();
473  return (22 != genID && 11 != std::abs(genID));
474 }
475 
476 int StackingAction::isItFromPrimary(const G4Track& mother, int flagIn) const {
477  int flag = flagIn;
478  if (flag != 1) {
479  const TrackInformation* ptr = static_cast<TrackInformation*>(mother.GetUserInformation());
480  if (ptr->isPrimary()) {
481  flag = 3;
482  }
483  }
484  return flag;
485 }
486 
487 bool StackingAction::isItOutOfTimeWindow(const G4Region* reg, const double& t) const {
488  double tofM = maxTrackTime;
489  for (unsigned int i = 0; i < numberTimes; ++i) {
490  if (reg == maxTimeRegions[i]) {
491  tofM = maxTrackTimes[i];
492  break;
493  }
494  }
495  return (t > tofM);
496 }
497 
498 void StackingAction::printRegions(const std::vector<const G4Region*>& reg, const std::string& word) const {
499  for (unsigned int i = 0; i < reg.size(); ++i) {
500  edm::LogVerbatim("SimG4CoreApplication")
501  << " StackingAction: " << word << "Region " << i << ". " << reg[i]->GetName();
502  }
503 }
double nRusRoPreShower
Log< level::Info, true > LogVerbatim
NewTrackAction * newTA
bool isPrimary() const
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack) final
StackingAction(const TrackingAction *, const edm::ParameterSet &ps, const CMSSteppingVerbose *)
std::vector< const G4Region * > lowdensRegions
double maxZCentralCMS
void PrepareNewEvent() override
std::vector< double > maxTrackTimes
TrackInformationExtractor extractor
bool rrApplicable(const G4Track *, const G4Track &) const
double gRusRoPreShower
double nRusRoEnerLim
const G4Region * regionCastor
const G4Region * regionMuonIron
const G4Track * geant4Track() const
int isItFromPrimary(const G4Track &, int) const
std::vector< const G4Region * > deadRegions
const G4VProcess * m_Compton
const CMSSteppingVerbose * steppingVerbose
uint64_t word
std::vector< const G4Region * > muonRegions
std::vector< std::string > maxTimeNames
void NewStage() override
const G4Region * regionEcal
~StackingAction() override
unsigned int numberTimes
void printRegions(const std::vector< const G4Region *> &reg, const std::string &word) const
double nRusRoMuonIron
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
G4VSolid * worldSolid
bool isItOutOfTimeWindow(const G4Region *, const double &) const
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
int genParticlePID() const
bool isThisRegion(const G4Region *, std::vector< const G4Region *> &) const
void primary(const G4Track *aSecondary) const
bool savePDandCinTracker
std::vector< std::string > deadRegionNames
double gRusRoEnerLim
const G4Region * regionHcal
std::vector< const G4Region * > maxTimeRegions
double maxTrackTimeForward
const G4String rname[NREG]
void StackFilled(const G4Track *, bool isKilled) const
const G4Region * regionPreShower
const TrackingAction * trackAction
Log< level::Warning, false > LogWarning
double gRusRoMuonIron
std::vector< const G4Region * > trackerRegions
int isItPrimaryDecayProductOrConversion(const int subtype, const G4Track &) const
#define LogDebug(id)
std::vector< const G4Region * > caloRegions
double limitEnergyForVacuum
const G4Region * regionWorld