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

#include <coresoftware/blob/master/simulation/g4simulation/g4epd/PHG4EPDDetector.h>

+ Inheritance diagram for PHG4EPDDetector:
+ Collaboration diagram for PHG4EPDDetector:

Public Member Functions

 PHG4EPDDetector (PHG4Subsystem *subsys, PHCompositeNode *node, PHParameters *parameters, std::string const &name)
 
void ConstructMe (G4LogicalVolume *world) override
 
int IsInDetector (G4VPhysicalVolume *) const
 
uint32_t module_id_for (int32_t index, int32_t slice, int32_t side)
 
uint32_t module_id_for (G4VPhysicalVolume *volume)
 
void SuperDetector (std::string const &name)
 
const std::string SuperDetector () const
 
PHG4EPDDisplayActionGetDisplayAction ()
 
- Public Member Functions inherited from PHG4Detector
 PHG4Detector ()=delete
 constructor
 
 PHG4Detector (PHG4Subsystem *subsys, PHCompositeNode *Node, const std::string &nam)
 
virtual ~PHG4Detector (void)
 destructor
 
virtual void Construct (G4LogicalVolume *world) final
 construct method
 
virtual void PostConstruction ()
 Optional PostConstruction call after all geometry is constructed.
 
virtual void Verbosity (const int v)
 
virtual int Verbosity () const
 
virtual G4UserSteppingActionGetSteppingAction ()
 
virtual std::string GetName () const
 
virtual void OverlapCheck (const bool chk)
 
virtual bool OverlapCheck () const
 
virtual void Print (const std::string &="ALL") const
 
virtual int DisplayVolume (G4VSolid *volume, G4LogicalVolume *logvol, G4RotationMatrix *rotm=nullptr)
 
virtual int DisplayVolume (G4LogicalVolume *checksolid, G4LogicalVolume *logvol, G4RotationMatrix *rotm=nullptr)
 
virtual PHCompositeNodetopNode ()
 
virtual PHG4SubsystemGetMySubsystem ()
 

Private Member Functions

G4ExtrudedSolidconstruct_block (int32_t index)
 

Private Attributes

PHG4EPDDisplayActionm_DisplayAction = nullptr
 
PHParametersm_Params = nullptr
 
int m_ActiveFlag = 0
 
int m_SupportActiveFlag = 0
 
std::set< G4LogicalVolume * > m_SupportLogVolSet
 
std::set< G4LogicalVolume * > m_ActiveLogVolSet
 
std::map< G4VPhysicalVolume
*, uint32_t > 
m_volumes
 
std::string superdetector
 

Additional Inherited Members

- Static Public Member Functions inherited from PHG4Detector
static G4MaterialGetDetectorMaterial (const std::string &name, const bool quit=true)
 
static G4ElementGetDetectorElement (const std::string &name, const bool quit=true)
 

Detailed Description

Definition at line 23 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 23 of file PHG4EPDDetector.h

Constructor & Destructor Documentation

PHG4EPDDetector::PHG4EPDDetector ( PHG4Subsystem subsys,
PHCompositeNode node,
PHParameters parameters,
std::string const &  name 
)

Definition at line 27 of file PHG4EPDDetector.cc.

View newest version in sPHENIX GitHub at line 27 of file PHG4EPDDetector.cc

Member Function Documentation

G4ExtrudedSolid * PHG4EPDDetector::construct_block ( int32_t  index)
private

Definition at line 147 of file PHG4EPDDetector.cc.

View newest version in sPHENIX GitHub at line 147 of file PHG4EPDDetector.cc

References coordinates, dz, mm, nlohmann::to_string(), x, and y.

Referenced by ConstructMe().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4EPDDetector::ConstructMe ( G4LogicalVolume world)
overridevirtual

Implements PHG4Detector.

Definition at line 39 of file PHG4EPDDetector.cc.

View newest version in sPHENIX GitHub at line 39 of file PHG4EPDDetector.cc

References PHG4EPDDisplayAction::AddVolume(), cm, construct_block(), PHParameters::get_double_param(), PHG4Detector::GetDetectorMaterial(), GetDisplayAction(), G4LogicalVolume::GetName(), k, m_ActiveLogVolSet, m_Params, M_PI, m_volumes, material(), module_id_for(), PHG4Detector::OverlapCheck(), CLHEP::HepRotation::rotateZ(), nlohmann::to_string(), and Acts::Test::volume.

+ Here is the call graph for this function:

PHG4EPDDisplayAction* PHG4EPDDetector::GetDisplayAction ( )
inline

Definition at line 41 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 41 of file PHG4EPDDetector.h

References m_DisplayAction.

Referenced by ConstructMe().

+ Here is the caller graph for this function:

int PHG4EPDDetector::IsInDetector ( G4VPhysicalVolume volume) const

Definition at line 80 of file PHG4EPDDetector.cc.

View newest version in sPHENIX GitHub at line 80 of file PHG4EPDDetector.cc

References G4VPhysicalVolume::GetLogicalVolume(), m_ActiveFlag, m_ActiveLogVolSet, m_SupportActiveFlag, and m_SupportLogVolSet.

Referenced by PHG4EPDSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32_t PHG4EPDDetector::module_id_for ( int32_t  index,
int32_t  slice,
int32_t  side 
)

Definition at line 100 of file PHG4EPDDetector.cc.

View newest version in sPHENIX GitHub at line 100 of file PHG4EPDDetector.cc

Referenced by ConstructMe(), and PHG4EPDSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

uint32_t PHG4EPDDetector::module_id_for ( G4VPhysicalVolume volume)

Definition at line 106 of file PHG4EPDDetector.cc.

View newest version in sPHENIX GitHub at line 106 of file PHG4EPDDetector.cc

References m_volumes, and Acts::Test::volume.

void PHG4EPDDetector::SuperDetector ( std::string const &  name)
inline

Definition at line 38 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 38 of file PHG4EPDDetector.h

References superdetector.

Referenced by PHG4EPDSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

const std::string PHG4EPDDetector::SuperDetector ( ) const
inline

Definition at line 39 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 39 of file PHG4EPDDetector.h

References superdetector.

Member Data Documentation

int PHG4EPDDetector::m_ActiveFlag = 0
private

Definition at line 49 of file PHG4EPDDetector.h.

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

Referenced by IsInDetector().

std::set<G4LogicalVolume*> PHG4EPDDetector::m_ActiveLogVolSet
private

Definition at line 53 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 53 of file PHG4EPDDetector.h

Referenced by ConstructMe(), and IsInDetector().

PHG4EPDDisplayAction* PHG4EPDDetector::m_DisplayAction = nullptr
private

Definition at line 46 of file PHG4EPDDetector.h.

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

Referenced by GetDisplayAction().

PHParameters* PHG4EPDDetector::m_Params = nullptr
private

Definition at line 47 of file PHG4EPDDetector.h.

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

Referenced by ConstructMe().

int PHG4EPDDetector::m_SupportActiveFlag = 0
private

Definition at line 50 of file PHG4EPDDetector.h.

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

Referenced by IsInDetector().

std::set<G4LogicalVolume*> PHG4EPDDetector::m_SupportLogVolSet
private

Definition at line 52 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 52 of file PHG4EPDDetector.h

Referenced by IsInDetector().

std::map<G4VPhysicalVolume*, uint32_t> PHG4EPDDetector::m_volumes
private

Definition at line 55 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 55 of file PHG4EPDDetector.h

Referenced by ConstructMe(), and module_id_for().

std::string PHG4EPDDetector::superdetector
private

Definition at line 57 of file PHG4EPDDetector.h.

View newest version in sPHENIX GitHub at line 57 of file PHG4EPDDetector.h

Referenced by SuperDetector().


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