18#include <G4StackManager.hh>
19#include <G4StackedTrack.hh>
21#include <G4TrackStack.hh>
36 G4cout <<
"### TG4SpecialStackingAction activated" << G4endl;
61 G4int pdgCode = track->GetDefinition()->GetPDGEncoding();
62 if (pdgCode == kNuE || pdgCode == kNuEBar || pdgCode == kNuMu ||
63 pdgCode == kNuMuBar || pdgCode == kNuTau || pdgCode == kNuTauBar) {
80 G4cout <<
"TG4SpecialStackingAction::NewStage " <<
fStage
81 <<
" has been started." << G4endl;
84 if (
fWaitPrimary && stackManager->GetNUrgentTrack() == 0 &&
85 stackManager->GetNPostponedTrack() != 0) {
87 stackManager->TransferOneStackedTrack(fPostpone, fUrgent);
Definition of the TG4Globals class and basic container types.
Definition of the TG4SpecialStackingAction class.
TG4SpecialStackingAction()
G4int fStage
Stage number.
virtual ~TG4SpecialStackingAction()
G4bool fSkipNeutrino
Option to skip tracking of all neutrina.
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *track)
Base class for defining the verbose level and a common messenger.
virtual G4int VerboseLevel() const