9 #include "G4VProcess.hh" 12 : theNoTracks(0), theNoTracksThisEvent(0), theNoTracksNoUL(0), theNoTracksThisEventNoUL(0) {
15 bNoUserLimits =
p.getUntrackedParameter<
bool>(
"NoUserLimits",
true);
22 const G4Track *aTrack = (*trk)();
33 if (aTrack->GetCurrentStepNumber() == 2) {
34 const G4VProcess *proccur = aTrack->GetStep()->GetPostStepPoint()->GetProcessDefinedStep();
35 if (proccur !=
nullptr) {
36 if (proccur->GetProcessName() ==
"MinEkineCut") {
40 const G4VProcess *procprev = aTrack->GetStep()->GetPreStepPoint()->GetProcessDefinedStep();
41 if (procprev !=
nullptr) {
42 if (procprev->GetProcessName() ==
"MinEkineCut") {
68 const G4Event *g4e = (*e)();
69 G4cout <<
"PTNA: Event simulated= " << g4e->GetEventID() <<
" #tracks= ";
72 <<
" counting killed by UL= " <<
theNoTracks << G4endl;
PrintTrackNumberAction(edm::ParameterSet const &p)
~PrintTrackNumberAction() override
void update(const EndOfTrack *trk) override
This routine will be called when the appropriate signal arrives.
int theNoTracksThisEventNoUL