65 <<
" calorimeter-like SD" <<
G4endl;
85 G4cout <<
"CCalStackingAction::initialize: No SD with name " <<
SDName[i]
86 <<
" in this Setup " <<
G4endl;
94 G4cout <<
"CCalStackingAction::initialize: Could not get SD Manager !" 104 int parentID = aTrack->GetParentID();
106 G4TrackStatus status = aTrack->GetTrackStatus();
107 G4cout <<
"Classifying track " << aTrack->GetTrackID()
108 <<
" with status " << aTrack->GetTrackStatus() <<
G4endl;
113 G4cout <<
"Killing track " << aTrack->GetTrackID()
114 <<
" from previous event. Should not happen" <<
G4endl;
115 G4cout <<
"returning classification= " << classification <<
G4endl;
117 return classification=
fKill;
120 if (aTrack->GetDefinition()->GetParticleName() ==
"gamma" &&
121 aTrack->GetKineticEnergy() < 1.*
eV) {
123 G4cout <<
"Kills particle " << aTrack->GetDefinition()->GetParticleName()
124 <<
" of energy " << aTrack->GetKineticEnergy()/
MeV <<
" MeV" 127 return classification=
fKill;
134 if (parentID == 0 ) {
168 G4cout <<
" returning classification= " << classification
169 <<
" for track "<< aTrack->GetTrackID() <<
G4endl;
171 return classification;
G4String SDName[maxNumberOfSD]
static CCalSDList * getInstance()
CCaloSD * theCaloSD[maxNumberOfSD]
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
G4GLOB_DLL std::ostream G4cout
virtual void PrepareNewEvent()
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
G4int GetNUrgentTrack() const
G4ClassificationOfNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
G4StackManager * stackManager
G4bool trackStartsInCalo(const G4Track *atrack)
void setPrimaryID(G4int id)
static G4SDManager * GetSDMpointerIfExist()