Geant4  10.02.p03
CCalVOrganization Class Referenceabstract

#include <CCalVOrganization.hh>

Inheritance diagram for CCalVOrganization:
Collaboration diagram for CCalVOrganization:

Public Member Functions

 CCalVOrganization ()
 
virtual ~CCalVOrganization ()
 
virtual unsigned int GetUnitID (const G4Step *aStep) const =0
 
virtual int Levels (const G4Step *) const
 
virtual void DetectorLevel (const G4Step *, int &, int *, G4String *) const
 

Protected Attributes

CCaloOrganization theOrg
 

Detailed Description

Definition at line 36 of file CCalVOrganization.hh.

Constructor & Destructor Documentation

◆ CCalVOrganization()

CCalVOrganization::CCalVOrganization ( )
inline

Definition at line 39 of file CCalVOrganization.hh.

39 {};

◆ ~CCalVOrganization()

virtual CCalVOrganization::~CCalVOrganization ( )
inlinevirtual

Definition at line 40 of file CCalVOrganization.hh.

40 {};
Here is the call graph for this function:

Member Function Documentation

◆ DetectorLevel()

void CCalVOrganization::DetectorLevel ( const G4Step *  aStep,
int &  level,
int *  copyno,
G4String name 
) const
virtual

Definition at line 43 of file CCalVOrganization.cc.

44  {
45 
46  //Get name and copy numbers
47  G4TouchableHistory* theTouchable =
48  (G4TouchableHistory*)( aStep->GetPreStepPoint()->GetTouchable() );
49  for ( int ii = 0; ii < level; ii++ ) {
50  name[ level - ii - 1 ] = theTouchable->GetVolume(ii)->GetName();
51  copyno[ level - ii - 1 ] = theTouchable->GetReplicaNumber(ii);
52  }
53 
54 }
G4int GetReplicaNumber(G4int depth=0) const
const G4String & GetName() const
G4VPhysicalVolume * GetVolume(G4int depth=0) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUnitID()

virtual unsigned int CCalVOrganization::GetUnitID ( const G4Step *  aStep) const
pure virtual

Implemented in CCalEcalOrganization, and CCalHcalOrganization.

Here is the caller graph for this function:

◆ Levels()

int CCalVOrganization::Levels ( const G4Step *  aStep) const
virtual

Definition at line 34 of file CCalVOrganization.cc.

34  {
35 
36  //Find number of levels
37  G4TouchableHistory* theTouchable =
38  (G4TouchableHistory*)( aStep->GetPreStepPoint()->GetTouchable() );
39  return ((theTouchable->GetHistoryDepth()) + 1);
40 }
G4int GetHistoryDepth() const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ theOrg

CCaloOrganization CCalVOrganization::theOrg
protected

Definition at line 47 of file CCalVOrganization.hh.


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