#include <CCalStackingAction.hh>
Definition at line 40 of file CCalStackingAction.hh.
◆ anonymous enum
◆ stageLevel
◆ CCalStackingAction()
CCalStackingAction::CCalStackingAction |
( |
| ) |
|
|
private |
◆ ~CCalStackingAction()
CCalStackingAction::~CCalStackingAction |
( |
| ) |
|
◆ ClassifyNewTrack()
PRIMARIES ///
SECONDARIES ///
Reimplemented from G4UserStackingAction.
Definition at line 101 of file CCalStackingAction.cc.
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;
G4GLOB_DLL std::ostream G4cout
G4ClassificationOfNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
G4bool trackStartsInCalo(const G4Track *atrack)
void setPrimaryID(G4int id)
◆ initialize()
void CCalStackingAction::initialize |
( |
| ) |
|
|
private |
Definition at line 58 of file CCalStackingAction.cc.
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 !" G4String SDName[maxNumberOfSD]
static CCalSDList * getInstance()
CCaloSD * theCaloSD[maxNumberOfSD]
G4GLOB_DLL std::ostream G4cout
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
static G4SDManager * GetSDMpointerIfExist()
◆ NewStage()
void CCalStackingAction::NewStage |
( |
| ) |
|
|
virtual |
◆ PrepareNewEvent()
void CCalStackingAction::PrepareNewEvent |
( |
| ) |
|
|
virtual |
◆ setPrimaryID()
void CCalStackingAction::setPrimaryID |
( |
G4int |
id | ) |
|
|
private |
◆ trackStartsInCalo()
G4bool CCalStackingAction::trackStartsInCalo |
( |
const G4Track * |
atrack | ) |
|
|
private |
This method should check that the secondary particle was produced inside the detector calorimeter and really is part of the shower. If it has been produced before the calorimeter for ex. Bremsstrahlung, it should be treated as a new particle producing a new shower.
Definition at line 194 of file CCalStackingAction.cc.
◆ CCalSensAssign
◆ acceptSecondaries
int CCalStackingAction::acceptSecondaries |
|
private |
◆ isInitialized
G4bool CCalStackingAction::isInitialized |
|
private |
◆ numberOfSD
int CCalStackingAction::numberOfSD |
|
private |
◆ nurgent
int CCalStackingAction::nurgent |
|
private |
◆ SDName
◆ stage
◆ theCaloSD
The documentation for this class was generated from the following files: