Geant4  10.00.p01
CCaloSD Class Reference

#include <CCaloSD.hh>

+ Inheritance diagram for CCaloSD:
+ Collaboration diagram for CCaloSD:

Public Member Functions

 CCaloSD (G4String aSDname, CCalVOrganization *numberingScheme)
 
virtual ~CCaloSD ()
 
void Initialize (G4HCofThisEvent *HCE)
 
G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 
void EndOfEvent (G4HCofThisEvent *HCE)
 
void clear ()
 
void DrawAll ()
 
void PrintAll ()
 
void SetPrimaryID (int i)
 
int GetPrimaryID ()
 
void SetOrganization (CCalVOrganization *org)
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
const G4VSensitiveDetectoroperator= (const G4VSensitiveDetector &right)
 
G4int operator== (const G4VSensitiveDetector &right) const
 
G4int operator!= (const G4VSensitiveDetector &right) const
 
G4bool Hit (G4Step *aStep)
 
void SetROgeometry (G4VReadOutGeometry *value)
 
void SetFilter (G4VSDFilter *value)
 
G4int GetNumberOfCollections () const
 
G4String GetCollectionName (G4int id) const
 
void SetVerboseLevel (G4int vl)
 
void Activate (G4bool activeFlag)
 
G4bool isActive () const
 
G4String GetName () const
 
G4String GetPathName () const
 
G4String GetFullPathName () const
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Private Member Functions

G4ThreeVector SetToLocal (G4ThreeVector globalPoint)
 
void getStepInfo (G4Step *aStep)
 
G4bool hitExists ()
 
void createNewHit ()
 
void updateHit ()
 
void StoreHit (CCalG4Hit *ahit)
 
void ResetForNewPrimary ()
 
void summarize ()
 
G4double curve_LY (G4StepPoint *stepPoint)
 

Private Attributes

G4ThreeVector EntrancePoint
 
float IncidentEnergy
 
G4int PrimID
 
G4int HCID
 
G4String SDname
 
CCalG4HitCollectiontheHC
 
G4int TSID
 
CCalG4HitCurrentHit
 
G4TracktheTrack
 
G4VPhysicalVolumeCurrentPV
 
G4VPhysicalVolumePreviousPV
 
unsigned int UnitID
 
unsigned int PreviousUnitID
 
G4int PrimaryID
 
G4int TSliceID
 
G4double TSlice
 
G4StepPointPreStepPoint
 
G4StepPointPostStepPoint
 
float EdepositEM
 
float EdepositEHAD
 
G4ThreeVector HitPoint
 
CCalVOrganizationtheDescription
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 59 of file CCaloSD.hh.

Constructor & Destructor Documentation

CCaloSD::CCaloSD ( G4String  aSDname,
CCalVOrganization numberingScheme 
)

Definition at line 42 of file CCaloSD.cc.

References CCalSDList::addCalo(), G4VSensitiveDetector::collectionName, G4cout, G4endl, CCalSDList::getInstance(), and G4CollectionNameVector::insert().

+ Here is the call graph for this function:

CCaloSD::~CCaloSD ( )
virtual

Definition at line 60 of file CCaloSD.cc.

References G4cout, G4endl, SDname, and theDescription.

Member Function Documentation

void CCaloSD::clear ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 290 of file CCaloSD.cc.

void CCaloSD::createNewHit ( )
private

Definition at line 202 of file CCaloSD.cc.

References CurrentHit, CurrentPV, EntrancePoint, G4cout, G4endl, G4Track::GetCreatorProcess(), G4Track::GetDefinition(), G4TouchableHistory::GetHistoryDepth(), G4VPhysicalVolume::GetName(), G4Track::GetParentID(), G4ParticleDefinition::GetParticleName(), G4VProcess::GetProcessName(), G4TouchableHistory::GetReplicaNumber(), G4Track::GetTotalEnergy(), G4Track::GetTouchable(), G4Track::GetTrackID(), IncidentEnergy, PrimaryID, CCalHit::setEntry(), CCalHit::setIncidentEnergy(), CCalHit::setTimeSlice(), CCalHit::setTrackID(), CCalHit::setUnitID(), StoreHit(), theTrack, TSlice, TSliceID, UnitID, and updateHit().

Referenced by ProcessHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double CCaloSD::curve_LY ( G4StepPoint stepPoint)
private

Definition at line 312 of file CCaloSD.cc.

References G4cout, G4endl, G4StepPoint::GetPosition(), and SetToLocal().

Referenced by getStepInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCaloSD::DrawAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 294 of file CCaloSD.cc.

void CCaloSD::EndOfEvent ( G4HCofThisEvent HCE)
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 281 of file CCaloSD.cc.

References summarize().

+ Here is the call graph for this function:

int CCaloSD::GetPrimaryID ( )
inline

Definition at line 79 of file CCaloSD.hh.

References PrimaryID.

void CCaloSD::getStepInfo ( G4Step aStep)
private

Definition at line 98 of file CCaloSD.cc.

References CurrentPV, curve_LY(), EdepositEHAD, EdepositEM, G4Track::GetDefinition(), G4StepPoint::GetGlobalTime(), G4VPhysicalVolume::GetName(), G4ParticleDefinition::GetParticleName(), G4StepPoint::GetPhysicalVolume(), G4StepPoint::GetPosition(), G4Step::GetPostStepPoint(), G4Step::GetPreStepPoint(), G4Step::GetTotalEnergyDeposit(), G4StepPoint::GetTouchable(), G4Step::GetTrack(), CCalVOrganization::GetUnitID(), G4VTouchable::GetVolume(), HitPoint, nanosecond, PostStepPoint, PreStepPoint, theDescription, theTrack, TSlice, TSliceID, and UnitID.

Referenced by ProcessHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool CCaloSD::hitExists ( )
private

Definition at line 139 of file CCaloSD.cc.

References CurrentHit, CurrentPV, G4THitsCollection< T >::entries(), G4cerr, G4endl, CCalHit::getTimeSliceID(), CCalHit::getTrackID(), CCalHit::getUnitID(), PreviousPV, PreviousUnitID, PrimaryID, PrimID, ResetForNewPrimary(), theHC, TSID, TSliceID, UnitID, and updateHit().

Referenced by ProcessHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCaloSD::Initialize ( G4HCofThisEvent HCE)
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 67 of file CCaloSD.cc.

References G4HCofThisEvent::AddHitsCollection(), G4VSensitiveDetector::collectionName, G4cout, G4endl, G4SDManager::GetCollectionID(), G4SDManager::GetSDMpointer(), HCID, PrimID, SDname, theHC, and TSID.

+ Here is the call graph for this function:

void CCaloSD::PrintAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 298 of file CCaloSD.cc.

References G4cout, G4endl, G4VHitsCollection::GetName(), G4THitsCollection< T >::PrintAllHits(), and theHC.

+ Here is the call graph for this function:

G4bool CCaloSD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
virtual

Implements G4VSensitiveDetector.

Definition at line 86 of file CCaloSD.cc.

References createNewHit(), EdepositEHAD, EdepositEM, getStepInfo(), and hitExists().

+ Here is the call graph for this function:

void CCaloSD::ResetForNewPrimary ( )
private

Definition at line 182 of file CCaloSD.cc.

References EntrancePoint, G4StepPoint::GetKineticEnergy(), HitPoint, IncidentEnergy, PreStepPoint, and SetToLocal().

Referenced by hitExists().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCaloSD::SetOrganization ( CCalVOrganization org)

Definition at line 304 of file CCaloSD.cc.

References theDescription.

void CCaloSD::SetPrimaryID ( int  i)
inline

Definition at line 74 of file CCaloSD.hh.

References G4cout, G4endl, and PrimaryID.

Referenced by CCalStackingAction::initialize(), and CCalStackingAction::setPrimaryID().

+ Here is the caller graph for this function:

G4ThreeVector CCaloSD::SetToLocal ( G4ThreeVector  globalPoint)
private

Definition at line 270 of file CCaloSD.cc.

References G4VTouchable::GetHistory(), G4NavigationHistory::GetTopTransform(), G4StepPoint::GetTouchable(), PreStepPoint, and G4AffineTransform::TransformPoint().

Referenced by curve_LY(), and ResetForNewPrimary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCaloSD::StoreHit ( CCalG4Hit ahit)
private

Definition at line 190 of file CCaloSD.cc.

References G4cout, G4endl, G4THitsCollection< T >::insert(), PrimID, and theHC.

Referenced by createNewHit().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCaloSD::summarize ( )
private

Definition at line 286 of file CCaloSD.cc.

Referenced by EndOfEvent().

+ Here is the caller graph for this function:

void CCaloSD::updateHit ( )
private

Definition at line 253 of file CCaloSD.cc.

References CCalG4Hit::addEnergyDeposit(), CurrentHit, CurrentPV, EdepositEHAD, EdepositEM, G4cout, G4endl, MeV, PreviousPV, PreviousUnitID, PrimaryID, PrimID, TSID, TSliceID, and UnitID.

Referenced by createNewHit(), and hitExists().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

CCalG4Hit* CCaloSD::CurrentHit
private

Definition at line 100 of file CCaloSD.hh.

Referenced by createNewHit(), hitExists(), and updateHit().

G4VPhysicalVolume* CCaloSD::CurrentPV
private

Definition at line 102 of file CCaloSD.hh.

Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().

float CCaloSD::EdepositEHAD
private

Definition at line 110 of file CCaloSD.hh.

Referenced by getStepInfo(), ProcessHits(), and updateHit().

float CCaloSD::EdepositEM
private

Definition at line 110 of file CCaloSD.hh.

Referenced by getStepInfo(), ProcessHits(), and updateHit().

G4ThreeVector CCaloSD::EntrancePoint
private

Definition at line 89 of file CCaloSD.hh.

Referenced by createNewHit(), and ResetForNewPrimary().

G4int CCaloSD::HCID
private

Definition at line 95 of file CCaloSD.hh.

Referenced by Initialize().

G4ThreeVector CCaloSD::HitPoint
private

Definition at line 111 of file CCaloSD.hh.

Referenced by getStepInfo(), and ResetForNewPrimary().

float CCaloSD::IncidentEnergy
private

Definition at line 90 of file CCaloSD.hh.

Referenced by createNewHit(), and ResetForNewPrimary().

G4StepPoint* CCaloSD::PostStepPoint
private

Definition at line 109 of file CCaloSD.hh.

Referenced by getStepInfo().

G4StepPoint* CCaloSD::PreStepPoint
private

Definition at line 108 of file CCaloSD.hh.

Referenced by getStepInfo(), ResetForNewPrimary(), and SetToLocal().

G4VPhysicalVolume* CCaloSD::PreviousPV
private

Definition at line 103 of file CCaloSD.hh.

Referenced by hitExists(), and updateHit().

unsigned int CCaloSD::PreviousUnitID
private

Definition at line 104 of file CCaloSD.hh.

Referenced by hitExists(), and updateHit().

G4int CCaloSD::PrimaryID
private

Definition at line 105 of file CCaloSD.hh.

Referenced by createNewHit(), GetPrimaryID(), hitExists(), SetPrimaryID(), and updateHit().

G4int CCaloSD::PrimID
private

Definition at line 91 of file CCaloSD.hh.

Referenced by hitExists(), Initialize(), StoreHit(), and updateHit().

G4String CCaloSD::SDname
private

Definition at line 96 of file CCaloSD.hh.

Referenced by Initialize(), and ~CCaloSD().

CCalVOrganization* CCaloSD::theDescription
private

Definition at line 126 of file CCaloSD.hh.

Referenced by getStepInfo(), SetOrganization(), and ~CCaloSD().

CCalG4HitCollection* CCaloSD::theHC
private

Definition at line 97 of file CCaloSD.hh.

Referenced by hitExists(), Initialize(), PrintAll(), and StoreHit().

G4Track* CCaloSD::theTrack
private

Definition at line 101 of file CCaloSD.hh.

Referenced by createNewHit(), and getStepInfo().

G4int CCaloSD::TSID
private

Definition at line 99 of file CCaloSD.hh.

Referenced by hitExists(), Initialize(), and updateHit().

G4double CCaloSD::TSlice
private

Definition at line 106 of file CCaloSD.hh.

Referenced by createNewHit(), and getStepInfo().

G4int CCaloSD::TSliceID
private

Definition at line 105 of file CCaloSD.hh.

Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().

unsigned int CCaloSD::UnitID
private

Definition at line 104 of file CCaloSD.hh.

Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().


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