CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Phase2SteppingAction Class Reference

#include <Phase2SteppingAction.h>

Inheritance diagram for Phase2SteppingAction:

Public Member Functions

 Phase2SteppingAction (const CMSSteppingVerbose *, const edm::ParameterSet &, bool hasW)
 
void UserSteppingAction (const G4Step *aStep) final
 
 ~Phase2SteppingAction () override=default
 

Public Attributes

SimActivityRegistry::G4StepSignal m_g4StepSignal
 

Private Member Functions

bool initPointer ()
 
bool isInsideDeadRegion (const G4Region *reg) const
 
bool isLowEnergy (const G4LogicalVolume *, const G4Track *) const
 
bool isOutOfTimeWindow (const G4Region *reg, const double &time) const
 
void PrintKilledTrack (const G4Track *, const TrackStatus &) const
 

Private Attributes

const G4VPhysicalVolume * btl {nullptr}
 
const G4VPhysicalVolume * calo {nullptr}
 
const G4VPhysicalVolume * cmse {nullptr}
 
std::vector< std::string > deadRegionNames
 
std::vector< const G4Region * > deadRegions
 
std::vector< double > ekinMins
 
std::vector< std::string > ekinNames
 
std::vector< std::string > ekinParticles
 
std::vector< int > ekinPDG
 
std::vector< G4LogicalVolume * > ekinVolumes
 
bool hasWatcher
 
bool initialized {false}
 
bool killBeamPipe {false}
 
G4int maxNumberOfSteps
 
std::vector< std::string > maxTimeNames
 
std::vector< const G4Region * > maxTimeRegions
 
double maxTrackTime
 
double maxTrackTimeForward
 
std::vector< double > maxTrackTimes
 
double maxZCentralCMS
 
unsigned int ndeadRegions
 
unsigned int numberEkins
 
unsigned int numberPart
 
unsigned int numberTimes
 
unsigned int nWarnings {0}
 
const CMSSteppingVerbosesteppingVerbose
 
double theCriticalDensity
 
double theCriticalEnergyForVacuum
 
const G4VPhysicalVolume * tracker {nullptr}
 

Detailed Description

Definition at line 20 of file Phase2SteppingAction.h.

Constructor & Destructor Documentation

◆ Phase2SteppingAction()

Phase2SteppingAction::Phase2SteppingAction ( const CMSSteppingVerbose sv,
const edm::ParameterSet p,
bool  hasW 
)
explicit

Definition at line 18 of file Phase2SteppingAction.cc.

References deadRegionNames, ekinMins, ekinNames, ekinParticles, g, mps_fire::i, killBeamPipe, visualization-live-secondInstance_cfg::m, maxNumberOfSteps, maxTimeNames, maxTrackTime, maxTrackTimeForward, maxTrackTimes, maxZCentralCMS, ndeadRegions, numberEkins, numberPart, numberTimes, AlCaHLTBitMon_ParallelJobs::p, theCriticalDensity, and theCriticalEnergyForVacuum.

19  : steppingVerbose(sv), hasWatcher(hasW) {
20  theCriticalEnergyForVacuum = (p.getParameter<double>("CriticalEnergyForVacuum") * CLHEP::MeV);
21  if (0.0 < theCriticalEnergyForVacuum) {
22  killBeamPipe = true;
23  }
24  theCriticalDensity = (p.getParameter<double>("CriticalDensity") * CLHEP::g / CLHEP::cm3);
25  maxZCentralCMS = p.getParameter<double>("MaxZCentralCMS") * CLHEP::m;
26  maxTrackTime = p.getParameter<double>("MaxTrackTime") * CLHEP::ns;
27  maxTrackTimeForward = p.getParameter<double>("MaxTrackTimeForward") * CLHEP::ns;
28  maxTrackTimes = p.getParameter<std::vector<double> >("MaxTrackTimes");
29  maxTimeNames = p.getParameter<std::vector<std::string> >("MaxTimeNames");
30  deadRegionNames = p.getParameter<std::vector<std::string> >("DeadRegions");
31  maxNumberOfSteps = p.getParameter<int>("MaxNumberOfSteps");
32  ekinMins = p.getParameter<std::vector<double> >("EkinThresholds");
33  ekinNames = p.getParameter<std::vector<std::string> >("EkinNames");
34  ekinParticles = p.getParameter<std::vector<std::string> >("EkinParticles");
35 
36  edm::LogVerbatim("SimG4CoreApplication")
37  << "Phase2SteppingAction:: KillBeamPipe = " << killBeamPipe
38  << " CriticalDensity = " << theCriticalDensity * CLHEP::cm3 / CLHEP::g << " g/cm3\n"
39  << " CriticalEnergyForVacuum = " << theCriticalEnergyForVacuum / CLHEP::MeV << " Mev;"
40  << " MaxTrackTime = " << maxTrackTime / CLHEP::ns << " ns;"
41  << " MaxZCentralCMS = " << maxZCentralCMS / CLHEP::m << " m"
42  << " MaxTrackTimeForward = " << maxTrackTimeForward / CLHEP::ns << " ns"
43  << " MaxNumberOfSteps = " << maxNumberOfSteps;
44 
45  numberTimes = maxTrackTimes.size();
46  if (numberTimes > 0) {
47  for (unsigned int i = 0; i < numberTimes; i++) {
48  edm::LogVerbatim("SimG4CoreApplication")
49  << "Phase2SteppingAction::MaxTrackTime for " << maxTimeNames[i] << " is " << maxTrackTimes[i] << " ns ";
50  maxTrackTimes[i] *= ns;
51  }
52  }
53 
55  if (ndeadRegions > 0) {
56  edm::LogVerbatim("SimG4CoreApplication")
57  << "Phase2SteppingAction: Number of DeadRegions where all trackes are killed " << ndeadRegions;
58  for (unsigned int i = 0; i < ndeadRegions; ++i) {
59  edm::LogVerbatim("SimG4CoreApplication")
60  << "Phase2SteppingAction: DeadRegion " << i << ". " << deadRegionNames[i];
61  }
62  }
63  numberEkins = ekinNames.size();
64  numberPart = ekinParticles.size();
65  if (0 == numberPart) {
66  numberEkins = 0;
67  }
68 
69  if (numberEkins > 0) {
70  edm::LogVerbatim("SimG4CoreApplication")
71  << "Phase2SteppingAction::Kill following " << numberPart << " particles in " << numberEkins << " volumes";
72  for (unsigned int i = 0; i < numberPart; ++i) {
73  edm::LogVerbatim("SimG4CoreApplication") << "Phase2SteppingAction::Particle " << i << " " << ekinParticles[i]
74  << " Threshold = " << ekinMins[i] << " MeV";
75  ekinMins[i] *= CLHEP::MeV;
76  }
77  for (unsigned int i = 0; i < numberEkins; ++i) {
78  edm::LogVerbatim("SimG4CoreApplication") << "Phase2SteppingAction::LogVolume[" << i << "] = " << ekinNames[i];
79  }
80  }
81 }
Log< level::Info, true > LogVerbatim
const CMSSteppingVerbose * steppingVerbose
std::vector< std::string > maxTimeNames
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
std::vector< std::string > ekinNames
std::vector< std::string > ekinParticles
std::vector< double > ekinMins
std::vector< std::string > deadRegionNames
std::vector< double > maxTrackTimes

◆ ~Phase2SteppingAction()

Phase2SteppingAction::~Phase2SteppingAction ( )
overridedefault

Member Function Documentation

◆ initPointer()

bool Phase2SteppingAction::initPointer ( )
private

Definition at line 236 of file Phase2SteppingAction.cc.

References btl, cmse, deadRegionNames, deadRegions, ekinMins, ekinNames, ekinParticles, ekinPDG, ekinVolumes, mps_fire::i, maxTimeNames, maxTimeRegions, ndeadRegions, numberEkins, numberPart, numberTimes, FSQDQM_cfi::pvs, rname, and tracker.

Referenced by UserSteppingAction().

236  {
237  const G4PhysicalVolumeStore* pvs = G4PhysicalVolumeStore::GetInstance();
238  for (auto const& pvcite : *pvs) {
239  const G4String& pvname = pvcite->GetName();
240  if (pvname == "Tracker" || pvname == "tracker:Tracker_1") {
241  tracker = pvcite;
242  } else if (pvname == "CALO" || pvname == "caloBase:CALO_1") {
243  calo = pvcite;
244  } else if (pvname == "BarrelTimingLayer" || pvname == "btl:BarrelTimingLayer_1") {
245  btl = pvcite;
246  } else if (pvname == "CMSE" || pvname == "cms:CMSE_1") {
247  cmse = pvcite;
248  }
249  if (tracker && calo && btl && cmse)
250  break;
251  }
252  edm::LogVerbatim("SimG4CoreApplication")
253  << "Phase2SteppingAction: pointer for Tracker " << tracker << " and for Calo " << calo << " and for BTL " << btl;
254 
255  const G4LogicalVolumeStore* lvs = G4LogicalVolumeStore::GetInstance();
256  if (numberEkins > 0) {
257  ekinVolumes.resize(numberEkins, nullptr);
258  for (auto const& lvcite : *lvs) {
259  const G4String& lvname = lvcite->GetName();
260  for (unsigned int i = 0; i < numberEkins; ++i) {
261  if (lvname == (G4String)(ekinNames[i])) {
262  ekinVolumes[i] = lvcite;
263  break;
264  }
265  }
266  }
267  for (unsigned int i = 0; i < numberEkins; ++i) {
268  edm::LogVerbatim("SimG4CoreApplication") << ekinVolumes[i]->GetName() << " with pointer " << ekinVolumes[i];
269  }
270  }
271 
272  if (numberPart > 0) {
273  G4ParticleTable* theParticleTable = G4ParticleTable::GetParticleTable();
274  ekinPDG.resize(numberPart, 0);
275  for (unsigned int i = 0; i < numberPart; ++i) {
276  const G4ParticleDefinition* part = theParticleTable->FindParticle(ekinParticles[i]);
277  if (nullptr != part)
278  ekinPDG[i] = part->GetPDGEncoding();
279  edm::LogVerbatim("SimG4CoreApplication") << "Particle " << ekinParticles[i] << " with PDG code " << ekinPDG[i]
280  << " and KE cut off " << ekinMins[i] / MeV << " MeV";
281  }
282  }
283 
284  const G4RegionStore* rs = G4RegionStore::GetInstance();
285  if (numberTimes > 0) {
286  maxTimeRegions.resize(numberTimes, nullptr);
287  for (auto const& rcite : *rs) {
288  const G4String& rname = rcite->GetName();
289  for (unsigned int i = 0; i < numberTimes; ++i) {
290  if (rname == (G4String)(maxTimeNames[i])) {
291  maxTimeRegions[i] = rcite;
292  break;
293  }
294  }
295  }
296  }
297  if (ndeadRegions > 0) {
298  deadRegions.resize(ndeadRegions, nullptr);
299  for (auto const& rcite : *rs) {
300  const G4String& rname = rcite->GetName();
301  for (unsigned int i = 0; i < ndeadRegions; ++i) {
302  if (rname == (G4String)(deadRegionNames[i])) {
303  deadRegions[i] = rcite;
304  break;
305  }
306  }
307  }
308  }
309  return true;
310 }
Log< level::Info, true > LogVerbatim
std::vector< std::string > maxTimeNames
std::vector< std::string > ekinNames
const G4VPhysicalVolume * tracker
std::vector< int > ekinPDG
std::vector< G4LogicalVolume * > ekinVolumes
const G4VPhysicalVolume * btl
std::vector< std::string > ekinParticles
part
Definition: HCALResponse.h:20
std::vector< double > ekinMins
const G4String rname[NREG]
std::vector< std::string > deadRegionNames
std::vector< const G4Region * > maxTimeRegions
std::vector< const G4Region * > deadRegions
Definition: Common.h:9
const G4VPhysicalVolume * cmse

◆ isInsideDeadRegion()

bool Phase2SteppingAction::isInsideDeadRegion ( const G4Region *  reg) const
inlineprivate

Definition at line 69 of file Phase2SteppingAction.h.

References deadRegions, and nano_mu_digi_cff::region.

Referenced by UserSteppingAction().

69  {
70  bool res = false;
71  for (auto& region : deadRegions) {
72  if (reg == region) {
73  res = true;
74  break;
75  }
76  }
77  return res;
78 }
Definition: Electron.h:6
std::vector< const G4Region * > deadRegions

◆ isLowEnergy()

bool Phase2SteppingAction::isLowEnergy ( const G4LogicalVolume *  lv,
const G4Track *  theTrack 
) const
private

Definition at line 219 of file Phase2SteppingAction.cc.

References ekinMins, ekinPDG, ekinVolumes, mps_fire::i, and numberPart.

Referenced by UserSteppingAction().

219  {
220  const double ekin = theTrack->GetKineticEnergy();
221  int pCode = theTrack->GetDefinition()->GetPDGEncoding();
222 
223  for (auto& vol : ekinVolumes) {
224  if (lv == vol) {
225  for (unsigned int i = 0; i < numberPart; ++i) {
226  if (pCode == ekinPDG[i]) {
227  return (ekin <= ekinMins[i]);
228  }
229  }
230  break;
231  }
232  }
233  return false;
234 }
std::vector< int > ekinPDG
std::vector< G4LogicalVolume * > ekinVolumes
std::vector< double > ekinMins

◆ isOutOfTimeWindow()

bool Phase2SteppingAction::isOutOfTimeWindow ( const G4Region *  reg,
const double &  time 
) const
inlineprivate

Definition at line 80 of file Phase2SteppingAction.h.

References mps_fire::i, maxTimeRegions, maxTrackTime, maxTrackTimes, numberTimes, and hcalRecHitTable_cff::time.

Referenced by UserSteppingAction().

80  {
81  double tofM = maxTrackTime;
82  for (unsigned int i = 0; i < numberTimes; ++i) {
83  if (reg == maxTimeRegions[i]) {
84  tofM = maxTrackTimes[i];
85  break;
86  }
87  }
88  return (time > tofM);
89 }
std::vector< const G4Region * > maxTimeRegions
std::vector< double > maxTrackTimes

◆ PrintKilledTrack()

void Phase2SteppingAction::PrintKilledTrack ( const G4Track *  aTrack,
const TrackStatus tst 
) const
private

Definition at line 312 of file Phase2SteppingAction.cc.

References rname, sDeadRegion, sEnergyDepNaN, sLowEnergy, sLowEnergyInVacuum, sNumberOfSteps, sOutOfTime, AlCaHLTBitMon_QueryRunRegistry::string, and sVeryForward.

Referenced by UserSteppingAction().

312  {
313  std::string vname = "";
314  std::string rname = "";
315  std::string typ = " ";
316  switch (tst) {
317  case sDeadRegion:
318  typ = " in dead region ";
319  break;
320  case sOutOfTime:
321  typ = " out of time window ";
322  break;
323  case sLowEnergy:
324  typ = " low energy limit ";
325  break;
326  case sLowEnergyInVacuum:
327  typ = " low energy limit in vacuum ";
328  break;
329  case sEnergyDepNaN:
330  typ = " energy deposition is NaN ";
331  break;
332  case sVeryForward:
333  typ = " very forward track ";
334  break;
335  case sNumberOfSteps:
336  typ = " too many steps ";
337  break;
338  default:
339  break;
340  }
341  G4VPhysicalVolume* pv = aTrack->GetNextVolume();
342  vname = pv->GetLogicalVolume()->GetName();
343  rname = pv->GetLogicalVolume()->GetRegion()->GetName();
344 
345  const double ekin = aTrack->GetKineticEnergy();
346  if (ekin < 2 * CLHEP::MeV) {
347  return;
348  }
349  edm::LogWarning("SimG4CoreApplication")
350  << "Track #" << aTrack->GetTrackID() << " StepN= " << aTrack->GetCurrentStepNumber() << " "
351  << aTrack->GetDefinition()->GetParticleName() << " E(MeV)=" << ekin / CLHEP::MeV
352  << " T(ns)=" << aTrack->GetGlobalTime() / CLHEP::ns << " is killed due to " << typ << "\n LV: " << vname << " ("
353  << rname << ") at " << aTrack->GetPosition() << " step(cm)=" << aTrack->GetStep()->GetStepLength() / CLHEP::cm;
354 }
const G4String rname[NREG]
Log< level::Warning, false > LogWarning

◆ UserSteppingAction()

void Phase2SteppingAction::UserSteppingAction ( const G4Step *  aStep)
final

Definition at line 83 of file Phase2SteppingAction.cc.

References funct::abs(), btl, calo, cmse, TrackInformation::crossedBoundary(), initialized, initPointer(), TrackInformation::isBTLlooper(), TrackInformation::isFromBTLtoT(), TrackInformation::isFromTtoBTL(), isInsideDeadRegion(), TrackInformation::isInTrkFromBackscattering(), isLowEnergy(), isOutOfTimeWindow(), killBeamPipe, LogDebug, m_g4StepSignal, maxNumberOfSteps, maxTrackTimeForward, maxZCentralCMS, TrackInformation::mcTruthID(), CMSSteppingVerbose::nextStep(), numberEkins, nWarnings, PrintKilledTrack(), sAlive, sDeadRegion, TrackInformation::setBTLlooper(), TrackInformation::setCrossedBoundary(), TrackInformation::setFromBTLtoT(), TrackInformation::setFromTtoBTL(), TrackInformation::setInTrkFromBackscattering(), sKilledByProcess, sLowEnergy, sLowEnergyInVacuum, sNumberOfSteps, sOutOfTime, steppingVerbose, sVeryForward, theCriticalDensity, theCriticalEnergyForVacuum, hcalRecHitTable_cff::time, and tracker.

83  {
84  if (!initialized) {
86  }
87 
88  m_g4StepSignal(aStep);
89 
90  G4Track* theTrack = aStep->GetTrack();
91  TrackStatus tstat = (theTrack->GetTrackStatus() == fAlive) ? sAlive : sKilledByProcess;
92 
93  if (theTrack->GetKineticEnergy() < 0.0) {
94  if (nWarnings < 2) {
95  ++nWarnings;
96  edm::LogWarning("SimG4CoreApplication")
97  << "Phase2SteppingAction::UserPhase2SteppingAction: Track #" << theTrack->GetTrackID() << " "
98  << theTrack->GetDefinition()->GetParticleName() << " Ekin(MeV)= " << theTrack->GetKineticEnergy() / MeV;
99  }
100  theTrack->SetKineticEnergy(0.0);
101  }
102 
103  const G4StepPoint* preStep = aStep->GetPreStepPoint();
104  const G4StepPoint* postStep = aStep->GetPostStepPoint();
105 
106  // the track is killed by the process
107  if (tstat == sKilledByProcess) {
108  if (nullptr != steppingVerbose) {
109  steppingVerbose->nextStep(aStep, fpSteppingManager, false);
110  }
111  return;
112  }
113 
114  if (sAlive == tstat && theTrack->GetCurrentStepNumber() > maxNumberOfSteps) {
115  tstat = sNumberOfSteps;
116  if (nWarnings < 5) {
117  ++nWarnings;
118  edm::LogWarning("SimG4CoreApplication")
119  << "Track #" << theTrack->GetTrackID() << " " << theTrack->GetDefinition()->GetParticleName()
120  << " E(MeV)= " << preStep->GetKineticEnergy() / MeV << " Nstep= " << theTrack->GetCurrentStepNumber()
121  << " is killed due to limit on number of steps;/n PV: " << preStep->GetPhysicalVolume()->GetName() << " at "
122  << theTrack->GetPosition() << " StepLen(mm)= " << aStep->GetStepLength();
123  }
124  }
125  const double time = theTrack->GetGlobalTime();
126 
127  // check Z-coordinate
128  if (sAlive == tstat && std::abs(theTrack->GetPosition().z()) >= maxZCentralCMS) {
130  }
131 
132  // check G4Region
133  if (sAlive == tstat) {
134  // next logical volume and next region
135  const G4LogicalVolume* lv = postStep->GetPhysicalVolume()->GetLogicalVolume();
136  const G4Region* theRegion = lv->GetRegion();
137 
138  // kill in dead regions
139  if (isInsideDeadRegion(theRegion))
140  tstat = sDeadRegion;
141 
142  // kill out of time
143  if (sAlive == tstat) {
144  if (isOutOfTimeWindow(theRegion, time))
145  tstat = sOutOfTime;
146  }
147 
148  // kill low-energy in volumes on demand
149  if (sAlive == tstat && numberEkins > 0) {
150  if (isLowEnergy(lv, theTrack))
151  tstat = sLowEnergy;
152  }
153 
154  // kill low-energy in vacuum
155  if (sAlive == tstat && killBeamPipe) {
156  if (theTrack->GetKineticEnergy() < theCriticalEnergyForVacuum &&
157  theTrack->GetDefinition()->GetPDGCharge() != 0.0 && lv->GetMaterial()->GetDensity() <= theCriticalDensity) {
158  tstat = sLowEnergyInVacuum;
159  }
160  }
161  }
162  // check transition tracker/btl and tracker/calo
163  bool isKilled = false;
164  if (sAlive == tstat || sVeryForward == tstat) {
165  // store TrackInformation about transition from one envelope to another
166  if (preStep->GetPhysicalVolume() == tracker && postStep->GetPhysicalVolume() == btl) {
167  // store transition tracker -> BTL only for tracks entering BTL for the first time
168  TrackInformation* trkinfo = static_cast<TrackInformation*>(theTrack->GetUserInformation());
169  if (!trkinfo->isFromTtoBTL() && !trkinfo->isFromBTLtoT()) {
170  trkinfo->setFromTtoBTL();
171 #ifdef DebugLog
172  LogDebug("SimG4CoreApplication") << "Setting flag for Tracker -> BTL " << trkinfo->isFromTtoBTL()
173  << " IdAtBTLentrance = " << trkinfo->mcTruthID();
174 #endif
175  } else {
176  trkinfo->setBTLlooper();
177 #ifdef DebugLog
178  LogDebug("SimG4CoreApplication") << "Setting flag for BTL looper " << trkinfo->isBTLlooper();
179 #endif
180  }
181  } else if (preStep->GetPhysicalVolume() == btl && postStep->GetPhysicalVolume() == tracker) {
182  // store transition BTL -> tracker
183  TrackInformation* trkinfo = static_cast<TrackInformation*>(theTrack->GetUserInformation());
184  if (!trkinfo->isFromBTLtoT()) {
185  trkinfo->setFromBTLtoT();
186 #ifdef DebugLog
187  LogDebug("SimG4CoreApplication") << "Setting flag for BTL -> Tracker " << trkinfo->isFromBTLtoT();
188 #endif
189  }
190  } else if (preStep->GetPhysicalVolume() == tracker && postStep->GetPhysicalVolume() == calo) {
191  // store transition tracker -> calo
192  TrackInformation* trkinfo = static_cast<TrackInformation*>(theTrack->GetUserInformation());
193  if (!trkinfo->crossedBoundary()) {
194  trkinfo->setCrossedBoundary(theTrack);
195  }
196  } else if (preStep->GetPhysicalVolume() == calo && postStep->GetPhysicalVolume() == cmse) {
197  // store transition calo -> cmse to tag backscattering
198  TrackInformation* trkinfo = static_cast<TrackInformation*>(theTrack->GetUserInformation());
199  if (!trkinfo->isInTrkFromBackscattering()) {
200  trkinfo->setInTrkFromBackscattering();
201 #ifdef DebugLog
202  LogDebug("SimG4CoreApplication") << "Setting flag for backscattering from CALO "
203  << trkinfo->isInTrkFromBackscattering();
204 #endif
205  }
206  }
207  } else {
208  theTrack->SetTrackStatus(fStopAndKill);
209  isKilled = true;
210 #ifdef DebugLog
211  PrintKilledTrack(theTrack, tstat);
212 #endif
213  }
214  if (nullptr != steppingVerbose) {
215  steppingVerbose->nextStep(aStep, fpSteppingManager, isKilled);
216  }
217 }
bool crossedBoundary() const
const CMSSteppingVerbose * steppingVerbose
bool isOutOfTimeWindow(const G4Region *reg, const double &time) const
void setInTrkFromBackscattering()
SimActivityRegistry::G4StepSignal m_g4StepSignal
const G4VPhysicalVolume * calo
const G4VPhysicalVolume * tracker
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool isInTrkFromBackscattering() const
const G4VPhysicalVolume * btl
bool isFromBTLtoT() const
int mcTruthID() const
void PrintKilledTrack(const G4Track *, const TrackStatus &) const
bool isBTLlooper() const
bool isLowEnergy(const G4LogicalVolume *, const G4Track *) const
bool isInsideDeadRegion(const G4Region *reg) const
void nextStep(const G4Step *, const G4SteppingManager *ptr, bool isKilled) const
bool isFromTtoBTL() const
Log< level::Warning, false > LogWarning
void setCrossedBoundary(const G4Track *track)
TrackStatus
Definition: Common.h:9
const G4VPhysicalVolume * cmse
#define LogDebug(id)

Member Data Documentation

◆ btl

const G4VPhysicalVolume* Phase2SteppingAction::btl {nullptr}
private

Definition at line 41 of file Phase2SteppingAction.h.

Referenced by initPointer(), and UserSteppingAction().

◆ calo

const G4VPhysicalVolume* Phase2SteppingAction::calo {nullptr}
private

Definition at line 40 of file Phase2SteppingAction.h.

Referenced by UserSteppingAction().

◆ cmse

const G4VPhysicalVolume* Phase2SteppingAction::cmse {nullptr}
private

Definition at line 38 of file Phase2SteppingAction.h.

Referenced by initPointer(), and UserSteppingAction().

◆ deadRegionNames

std::vector<std::string> Phase2SteppingAction::deadRegionNames
private

Definition at line 62 of file Phase2SteppingAction.h.

Referenced by initPointer(), and Phase2SteppingAction().

◆ deadRegions

std::vector<const G4Region*> Phase2SteppingAction::deadRegions
private

Definition at line 64 of file Phase2SteppingAction.h.

Referenced by initPointer(), and isInsideDeadRegion().

◆ ekinMins

std::vector<double> Phase2SteppingAction::ekinMins
private

Definition at line 60 of file Phase2SteppingAction.h.

Referenced by initPointer(), isLowEnergy(), and Phase2SteppingAction().

◆ ekinNames

std::vector<std::string> Phase2SteppingAction::ekinNames
private

Definition at line 61 of file Phase2SteppingAction.h.

Referenced by initPointer(), and Phase2SteppingAction().

◆ ekinParticles

std::vector<std::string> Phase2SteppingAction::ekinParticles
private

Definition at line 61 of file Phase2SteppingAction.h.

Referenced by initPointer(), and Phase2SteppingAction().

◆ ekinPDG

std::vector<int> Phase2SteppingAction::ekinPDG
private

Definition at line 66 of file Phase2SteppingAction.h.

Referenced by initPointer(), and isLowEnergy().

◆ ekinVolumes

std::vector<G4LogicalVolume*> Phase2SteppingAction::ekinVolumes
private

Definition at line 65 of file Phase2SteppingAction.h.

Referenced by initPointer(), and isLowEnergy().

◆ hasWatcher

bool Phase2SteppingAction::hasWatcher
private

Definition at line 58 of file Phase2SteppingAction.h.

◆ initialized

bool Phase2SteppingAction::initialized {false}
private

Definition at line 56 of file Phase2SteppingAction.h.

Referenced by UserSteppingAction().

◆ killBeamPipe

bool Phase2SteppingAction::killBeamPipe {false}
private

Definition at line 57 of file Phase2SteppingAction.h.

Referenced by Phase2SteppingAction(), and UserSteppingAction().

◆ m_g4StepSignal

SimActivityRegistry::G4StepSignal Phase2SteppingAction::m_g4StepSignal

Definition at line 27 of file Phase2SteppingAction.h.

Referenced by RunManagerMTWorker::Connect(), and UserSteppingAction().

◆ maxNumberOfSteps

G4int Phase2SteppingAction::maxNumberOfSteps
private

Definition at line 54 of file Phase2SteppingAction.h.

Referenced by Phase2SteppingAction(), and UserSteppingAction().

◆ maxTimeNames

std::vector<std::string> Phase2SteppingAction::maxTimeNames
private

Definition at line 61 of file Phase2SteppingAction.h.

Referenced by initPointer(), and Phase2SteppingAction().

◆ maxTimeRegions

std::vector<const G4Region*> Phase2SteppingAction::maxTimeRegions
private

Definition at line 63 of file Phase2SteppingAction.h.

Referenced by initPointer(), and isOutOfTimeWindow().

◆ maxTrackTime

double Phase2SteppingAction::maxTrackTime
private

Definition at line 45 of file Phase2SteppingAction.h.

Referenced by isOutOfTimeWindow(), and Phase2SteppingAction().

◆ maxTrackTimeForward

double Phase2SteppingAction::maxTrackTimeForward
private

Definition at line 46 of file Phase2SteppingAction.h.

Referenced by Phase2SteppingAction(), and UserSteppingAction().

◆ maxTrackTimes

std::vector<double> Phase2SteppingAction::maxTrackTimes
private

Definition at line 60 of file Phase2SteppingAction.h.

Referenced by isOutOfTimeWindow(), and Phase2SteppingAction().

◆ maxZCentralCMS

double Phase2SteppingAction::maxZCentralCMS
private

Definition at line 47 of file Phase2SteppingAction.h.

Referenced by Phase2SteppingAction(), and UserSteppingAction().

◆ ndeadRegions

unsigned int Phase2SteppingAction::ndeadRegions
private

Definition at line 52 of file Phase2SteppingAction.h.

Referenced by initPointer(), and Phase2SteppingAction().

◆ numberEkins

unsigned int Phase2SteppingAction::numberEkins
private

Definition at line 50 of file Phase2SteppingAction.h.

Referenced by initPointer(), Phase2SteppingAction(), and UserSteppingAction().

◆ numberPart

unsigned int Phase2SteppingAction::numberPart
private

Definition at line 51 of file Phase2SteppingAction.h.

Referenced by initPointer(), isLowEnergy(), and Phase2SteppingAction().

◆ numberTimes

unsigned int Phase2SteppingAction::numberTimes
private

Definition at line 49 of file Phase2SteppingAction.h.

Referenced by initPointer(), isOutOfTimeWindow(), and Phase2SteppingAction().

◆ nWarnings

unsigned int Phase2SteppingAction::nWarnings {0}
private

Definition at line 53 of file Phase2SteppingAction.h.

Referenced by UserSteppingAction().

◆ steppingVerbose

const CMSSteppingVerbose* Phase2SteppingAction::steppingVerbose
private

Definition at line 42 of file Phase2SteppingAction.h.

Referenced by UserSteppingAction().

◆ theCriticalDensity

double Phase2SteppingAction::theCriticalDensity
private

Definition at line 44 of file Phase2SteppingAction.h.

Referenced by Phase2SteppingAction(), and UserSteppingAction().

◆ theCriticalEnergyForVacuum

double Phase2SteppingAction::theCriticalEnergyForVacuum
private

Definition at line 43 of file Phase2SteppingAction.h.

Referenced by Phase2SteppingAction(), and UserSteppingAction().

◆ tracker

const G4VPhysicalVolume* Phase2SteppingAction::tracker {nullptr}
private

Definition at line 39 of file Phase2SteppingAction.h.

Referenced by initPointer(), and UserSteppingAction().