8 #include "G4VProcess.hh"
11 : theNoTracks(0), theNoTracksThisEvent(0),
12 theNoTracksNoUL(0), theNoTracksThisEventNoUL(0)
17 std::cout <<
" PrintTrackNumberAction::bNoUserLimits " << bNoUserLimits << std::endl;
24 const G4Track * aTrack = (*trk)();
36 if (aTrack->GetCurrentStepNumber() == 2)
38 const G4VProcess* proccur =
39 aTrack->GetStep()->GetPostStepPoint()->GetProcessDefinedStep();
42 if (proccur->GetProcessName() ==
"MinEkineCut")
49 const G4VProcess* procprev =
50 aTrack->GetStep()->GetPreStepPoint()->GetProcessDefinedStep();
53 if (procprev->GetProcessName() ==
"MinEkineCut")
69 std::cout <<
"PTNA: Simulating Track Number = "
81 std::cout <<
"PTNA: Simulating Track Number = "
91 const G4Event * g4e = (*e)();
92 std::cout <<
"PTNA: Event simulated= " << g4e->GetEventID() <<
" #tracks= ";
PrintTrackNumberAction(edm::ParameterSet const &p)
T getUntrackedParameter(std::string const &, T const &) const
void update(const EndOfTrack *trk)
This routine will be called when the appropriate signal arrives.
int theNoTracksThisEventNoUL
~PrintTrackNumberAction()