EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PhenixDetector Class Reference

this is the main detector construction class, passed to geant to construct the entire phenix detector More...

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4main/PHG4PhenixDetector.h>

+ Inheritance diagram for PHG4PhenixDetector:
+ Collaboration diagram for PHG4PhenixDetector:

Public Member Functions

 PHG4PhenixDetector (PHG4Reco *subsys)
 constructor
 
 ~PHG4PhenixDetector () override
 destructor
 
void Verbosity (const int verb)
 
int Verbosity () const
 
void AddDetector (PHG4Detector *detector)
 register a detector. This is called in PHG4Reco::Init based on which detectors are found on the tree
 
G4VPhysicalVolume * Construct () override
 this is called by geant to actually construct all detectors
 
G4double GetWorldSizeX () const
 
G4double GetWorldSizeY () const
 
G4double GetWorldSizeZ () const
 
void SetWorldSizeX (const G4double sx)
 
void SetWorldSizeY (const G4double sy)
 
void SetWorldSizeZ (const G4double sz)
 
void SetWorldShape (const std::string &s)
 
void SetWorldMaterial (const std::string &s)
 
G4VPhysicalVolume * GetPhysicalVolume (void)
 

Private Attributes

PHG4PhenixDisplayActionm_DisplayAction
 
int m_Verbosity
 
std::list< PHG4Detector * > m_DetectorList
 list of detectors to be constructed
 
G4LogicalVolume * logicWorld
 
G4VPhysicalVolume * physiWorld
 
G4double WorldSizeX
 
G4double WorldSizeY
 
G4double WorldSizeZ
 
std::string worldshape
 
std::string worldmaterial
 

Detailed Description

this is the main detector construction class, passed to geant to construct the entire phenix detector

Definition at line 19 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 19 of file PHG4PhenixDetector.h

Constructor & Destructor Documentation

PHG4PhenixDetector::PHG4PhenixDetector ( PHG4Reco subsys)

constructor

Definition at line 37 of file PHG4PhenixDetector.cc.

View newest version in sPHENIX GitHub at line 37 of file PHG4PhenixDetector.cc

PHG4PhenixDetector::~PHG4PhenixDetector ( )
override

destructor

Definition at line 50 of file PHG4PhenixDetector.cc.

View newest version in sPHENIX GitHub at line 50 of file PHG4PhenixDetector.cc

References m_DetectorList.

Member Function Documentation

void PHG4PhenixDetector::AddDetector ( PHG4Detector detector)
inline

register a detector. This is called in PHG4Reco::Init based on which detectors are found on the tree

Definition at line 32 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 32 of file PHG4PhenixDetector.h

References m_DetectorList.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

G4VPhysicalVolume * PHG4PhenixDetector::Construct ( void  )
override

this is called by geant to actually construct all detectors

Definition at line 60 of file PHG4PhenixDetector.cc.

View newest version in sPHENIX GitHub at line 60 of file PHG4PhenixDetector.cc

References PHG4PhenixDisplayAction::AddVolume(), G4PhysicalVolumeStore::Clean(), G4SolidStore::Clean(), G4LogicalVolumeStore::Clean(), PHG4Detector::Construct(), exit(), G4PhysicalVolumeStore::GetInstance(), G4SolidStore::GetInstance(), G4LogicalVolumeStore::GetInstance(), info, recoConsts::instance(), logicWorld, m_DetectorList, m_DisplayAction, M_PI, m_Verbosity, physiWorld, PHG4Detector::PostConstruction(), PHFlag::set_CharFlag(), PHG4RegionInformation::SetWorld(), worldmaterial, worldshape, WorldSizeX, WorldSizeY, and WorldSizeZ.

+ Here is the call graph for this function:

G4VPhysicalVolume* PHG4PhenixDetector::GetPhysicalVolume ( void  )
inline

Definition at line 51 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 51 of file PHG4PhenixDetector.h

References physiWorld.

Referenced by PHG4Reco::ApplyDisplayAction(), PHG4Reco::Dump_G4_GDML(), and PHG4Reco::Dump_GDML().

+ Here is the caller graph for this function:

G4double PHG4PhenixDetector::GetWorldSizeX ( ) const
inline

Definition at line 40 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 40 of file PHG4PhenixDetector.h

References WorldSizeX.

G4double PHG4PhenixDetector::GetWorldSizeY ( ) const
inline

Definition at line 42 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 42 of file PHG4PhenixDetector.h

References WorldSizeY.

G4double PHG4PhenixDetector::GetWorldSizeZ ( ) const
inline

Definition at line 43 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 43 of file PHG4PhenixDetector.h

References WorldSizeZ.

void PHG4PhenixDetector::SetWorldMaterial ( const std::string &  s)
inline

Definition at line 50 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 50 of file PHG4PhenixDetector.h

References Acts::UnitConstants::s, and worldmaterial.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

void PHG4PhenixDetector::SetWorldShape ( const std::string &  s)
inline

Definition at line 49 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 49 of file PHG4PhenixDetector.h

References Acts::UnitConstants::s, and worldshape.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

void PHG4PhenixDetector::SetWorldSizeX ( const G4double  sx)
inline

Definition at line 45 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4PhenixDetector.h

References WorldSizeX.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

void PHG4PhenixDetector::SetWorldSizeY ( const G4double  sy)
inline

Definition at line 46 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 46 of file PHG4PhenixDetector.h

References WorldSizeY.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

void PHG4PhenixDetector::SetWorldSizeZ ( const G4double  sz)
inline

Definition at line 47 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 47 of file PHG4PhenixDetector.h

References WorldSizeZ.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

void PHG4PhenixDetector::Verbosity ( const int  verb)
inline

Definition at line 28 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 28 of file PHG4PhenixDetector.h

References m_Verbosity.

Referenced by PHG4Reco::InitRun().

+ Here is the caller graph for this function:

int PHG4PhenixDetector::Verbosity ( ) const
inline

Definition at line 29 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4PhenixDetector.h

References m_Verbosity.

Member Data Documentation

G4LogicalVolume* PHG4PhenixDetector::logicWorld
private

Definition at line 62 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 62 of file PHG4PhenixDetector.h

Referenced by Construct().

std::list<PHG4Detector*> PHG4PhenixDetector::m_DetectorList
private

list of detectors to be constructed

Definition at line 60 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 60 of file PHG4PhenixDetector.h

Referenced by AddDetector(), Construct(), and ~PHG4PhenixDetector().

PHG4PhenixDisplayAction* PHG4PhenixDetector::m_DisplayAction
private

Definition at line 54 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 54 of file PHG4PhenixDetector.h

Referenced by Construct().

int PHG4PhenixDetector::m_Verbosity
private

Definition at line 56 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 56 of file PHG4PhenixDetector.h

Referenced by Construct(), and Verbosity().

G4VPhysicalVolume* PHG4PhenixDetector::physiWorld
private

Definition at line 63 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 63 of file PHG4PhenixDetector.h

Referenced by Construct(), and GetPhysicalVolume().

std::string PHG4PhenixDetector::worldmaterial
private

Definition at line 68 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 68 of file PHG4PhenixDetector.h

Referenced by Construct(), and SetWorldMaterial().

std::string PHG4PhenixDetector::worldshape
private

Definition at line 67 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 67 of file PHG4PhenixDetector.h

Referenced by Construct(), and SetWorldShape().

G4double PHG4PhenixDetector::WorldSizeX
private

Definition at line 64 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 64 of file PHG4PhenixDetector.h

Referenced by Construct(), GetWorldSizeX(), and SetWorldSizeX().

G4double PHG4PhenixDetector::WorldSizeY
private

Definition at line 65 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 65 of file PHG4PhenixDetector.h

Referenced by Construct(), GetWorldSizeY(), and SetWorldSizeY().

G4double PHG4PhenixDetector::WorldSizeZ
private

Definition at line 66 of file PHG4PhenixDetector.h.

View newest version in sPHENIX GitHub at line 66 of file PHG4PhenixDetector.h

Referenced by Construct(), GetWorldSizeZ(), and SetWorldSizeZ().


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