Geant4  10.01.p03
CCalStackingAction Class Reference

#include <CCalStackingAction.hh>

+ Inheritance diagram for CCalStackingAction:
+ Collaboration diagram for CCalStackingAction:

Public Types

enum  stageLevel { firstStage, end }
 
enum  { maxNumberOfSD = 30 }
 

Public Member Functions

 ~CCalStackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
 
virtual void NewStage ()
 
virtual void PrepareNewEvent ()
 
- Public Member Functions inherited from G4UserStackingAction
 G4UserStackingAction ()
 
virtual ~G4UserStackingAction ()
 
void SetStackManager (G4StackManager *value)
 

Private Member Functions

 CCalStackingAction ()
 
void initialize ()
 
G4bool trackStartsInCalo (const G4Track *atrack)
 
void setPrimaryID (G4int id)
 

Private Attributes

stageLevel stage
 
int numberOfSD
 
G4String SDName [maxNumberOfSD]
 
int nurgent
 
int acceptSecondaries
 
CCaloSDtheCaloSD [maxNumberOfSD]
 
G4bool isInitialized
 

Friends

class CCalSensAssign
 

Additional Inherited Members

- Protected Attributes inherited from G4UserStackingAction
G4StackManagerstackManager
 

Detailed Description

Definition at line 40 of file CCalStackingAction.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
maxNumberOfSD 

Definition at line 56 of file CCalStackingAction.hh.

Enumerator
firstStage 
end 

Definition at line 55 of file CCalStackingAction.hh.

Constructor & Destructor Documentation

CCalStackingAction::CCalStackingAction ( )
private

Definition at line 43 of file CCalStackingAction.cc.

CCalStackingAction::~CCalStackingAction ( )

Definition at line 46 of file CCalStackingAction.cc.

Member Function Documentation

G4ClassificationOfNewTrack CCalStackingAction::ClassifyNewTrack ( const G4Track aTrack)
virtual

PRIMARIES ///

SECONDARIES ///

Reimplemented from G4UserStackingAction.

Definition at line 101 of file CCalStackingAction.cc.

References acceptSecondaries, G4UserStackingAction::ClassifyNewTrack(), end, eV, fKill, fUrgent, fWaiting, G4cout, G4endl, G4Track::GetDefinition(), G4Track::GetKineticEnergy(), G4Track::GetParentID(), G4ParticleDefinition::GetParticleName(), G4Track::GetTrackID(), G4Track::GetTrackStatus(), MeV, nurgent, setPrimaryID(), stage, and trackStartsInCalo().

+ Here is the call graph for this function:

void CCalStackingAction::initialize ( )
private

Definition at line 58 of file CCalStackingAction.cc.

References G4SDManager::FindSensitiveDetector(), G4cout, G4endl, CCalSDList::getInstance(), CCalSDList::getNumberOfCaloSD(), G4SDManager::GetSDMpointerIfExist(), isInitialized, numberOfSD, SDName, CCaloSD::SetPrimaryID(), and theCaloSD.

Referenced by PrepareNewEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalStackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 176 of file CCalStackingAction.cc.

References acceptSecondaries, end, G4cout, G4endl, G4StackManager::GetNUrgentTrack(), nurgent, G4StackManager::ReClassify(), setPrimaryID(), G4UserStackingAction::stackManager, and stage.

+ Here is the call graph for this function:

void CCalStackingAction::PrepareNewEvent ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 49 of file CCalStackingAction.cc.

References acceptSecondaries, firstStage, initialize(), isInitialized, nurgent, and stage.

+ Here is the call graph for this function:

void CCalStackingAction::setPrimaryID ( G4int  id)
private

Definition at line 206 of file CCalStackingAction.cc.

References numberOfSD, CCaloSD::SetPrimaryID(), and theCaloSD.

Referenced by ClassifyNewTrack(), and NewStage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

Referenced by ClassifyNewTrack().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class CCalSensAssign
friend

Definition at line 42 of file CCalStackingAction.hh.

Member Data Documentation

int CCalStackingAction::acceptSecondaries
private

Definition at line 63 of file CCalStackingAction.hh.

Referenced by ClassifyNewTrack(), NewStage(), and PrepareNewEvent().

G4bool CCalStackingAction::isInitialized
private

Definition at line 65 of file CCalStackingAction.hh.

Referenced by initialize(), and PrepareNewEvent().

int CCalStackingAction::numberOfSD
private

Definition at line 60 of file CCalStackingAction.hh.

Referenced by initialize(), and setPrimaryID().

int CCalStackingAction::nurgent
private

Definition at line 62 of file CCalStackingAction.hh.

Referenced by ClassifyNewTrack(), NewStage(), and PrepareNewEvent().

G4String CCalStackingAction::SDName[maxNumberOfSD]
private

Definition at line 61 of file CCalStackingAction.hh.

Referenced by initialize().

stageLevel CCalStackingAction::stage
private

Definition at line 59 of file CCalStackingAction.hh.

Referenced by ClassifyNewTrack(), NewStage(), and PrepareNewEvent().

CCaloSD* CCalStackingAction::theCaloSD[maxNumberOfSD]
private

Definition at line 64 of file CCalStackingAction.hh.

Referenced by initialize(), and setPrimaryID().


The documentation for this class was generated from the following files: