8 #include "G4VProcess.hh" 11 : theNoTracks(0), theNoTracksThisEvent(0), theNoTracksNoUL(0), theNoTracksThisEventNoUL(0) {
15 std::cout <<
" PrintTrackNumberAction::bNoUserLimits " << bNoUserLimits << std::endl;
21 const G4Track *aTrack = (*trk)();
32 if (aTrack->GetCurrentStepNumber() == 2) {
33 const G4VProcess *proccur = aTrack->GetStep()->GetPostStepPoint()->GetProcessDefinedStep();
34 if (proccur !=
nullptr) {
35 if (proccur->GetProcessName() ==
"MinEkineCut") {
39 const G4VProcess *procprev = aTrack->GetStep()->GetPreStepPoint()->GetProcessDefinedStep();
40 if (procprev !=
nullptr) {
41 if (procprev->GetProcessName() ==
"MinEkineCut") {
67 const G4Event *g4e = (*e)();
68 std::cout <<
"PTNA: Event simulated= " << g4e->GetEventID() <<
" #tracks= ";
71 <<
" counting killed by UL= " <<
theNoTracks << std::endl;
PrintTrackNumberAction(edm::ParameterSet const &p)
T getUntrackedParameter(std::string const &, T const &) const
~PrintTrackNumberAction() override
void update(const EndOfTrack *trk) override
This routine will be called when the appropriate signal arrives.
int theNoTracksThisEventNoUL