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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4b0ecal/EICG4B0ECALDetector.h>

+ Inheritance diagram for EICG4B0ECALDetector:
+ Collaboration diagram for EICG4B0ECALDetector:

Classes

struct  towerposition
 

Public Member Functions

 EICG4B0ECALDetector (PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam, const int layer=0)
 constructor
 
virtual ~EICG4B0ECALDetector () override
 destructor
 
virtual void ConstructMe (G4LogicalVolume *world) override
 construct
 
void Print (const std::string &what="ALL") const override
 
int GetDetId (G4VPhysicalVolume *) const
 
void SuperDetector (const std::string &name)
 
const std::string SuperDetector () const
 
int get_Layer () const
 
PHParametersgetParams ()
 
void SetTowerMappingFile (const std::string &filename)
 
volume accessors
int IsInDetector (G4VPhysicalVolume *) const
 
- 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 int DisplayVolume (G4VSolid *volume, G4LogicalVolume *logvol, G4RotationMatrix *rotm=nullptr)
 
virtual int DisplayVolume (G4LogicalVolume *checksolid, G4LogicalVolume *logvol, G4RotationMatrix *rotm=nullptr)
 
virtual PHCompositeNodetopNode ()
 
virtual PHG4SubsystemGetMySubsystem ()
 

Protected Member Functions

void LogicalVolSetInsert (G4LogicalVolume *logvol)
 

Private Member Functions

G4LogicalVolumeConstructTower ()
 
int PlaceTower (G4LogicalVolume *envelope, G4LogicalVolume *tower)
 
int ParseParametersFromTable ()
 

Private Attributes

std::map< std::string,
towerposition
m_TowerPositionMap
 
PHParametersm_Params
 
std::set< G4VPhysicalVolume * > m_PhysicalVolumesSet
 
std::map< G4VPhysicalVolume
*, int
m_PhysicalVolumesDet
 
std::set< G4LogicalVolume * > m_LogicalVolSet
 
int m_Layer
 
std::string m_SuperDetector
 
std::string _mapping_tower_file
 
std::string m_TowerLogicNamePrefix
 

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 19 of file EICG4B0ECALDetector.h.

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

Constructor & Destructor Documentation

EICG4B0ECALDetector::EICG4B0ECALDetector ( PHG4Subsystem subsys,
PHCompositeNode Node,
PHParameters parameters,
const std::string &  dnam,
const int  layer = 0 
)

constructor

Definition at line 63 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 63 of file EICG4B0ECALDetector.cc

virtual EICG4B0ECALDetector::~EICG4B0ECALDetector ( )
inlineoverridevirtual

destructor

Definition at line 26 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 26 of file EICG4B0ECALDetector.h

Member Function Documentation

void EICG4B0ECALDetector::ConstructMe ( G4LogicalVolume world)
overridevirtual
G4LogicalVolume * EICG4B0ECALDetector::ConstructTower ( )
private

Definition at line 190 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 190 of file EICG4B0ECALDetector.cc

References cm, PHParameters::get_double_param(), PHParameters::get_string_param(), PHG4Detector::GetDetectorMaterial(), m_LogicalVolSet, m_Params, G4VisAttributes::SetForceSolid(), G4LogicalVolume::SetVisAttributes(), and PHG4Detector::Verbosity().

Referenced by ConstructMe().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EICG4B0ECALDetector::get_Layer ( ) const
inline

Definition at line 42 of file EICG4B0ECALDetector.h.

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

References m_Layer.

Referenced by EICG4B0ECALSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

int EICG4B0ECALDetector::GetDetId ( G4VPhysicalVolume volume) const

Definition at line 86 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 86 of file EICG4B0ECALDetector.cc

References IsInDetector().

+ Here is the call graph for this function:

PHParameters * EICG4B0ECALDetector::getParams ( )

Definition at line 357 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 357 of file EICG4B0ECALDetector.cc

References m_Params.

int EICG4B0ECALDetector::IsInDetector ( G4VPhysicalVolume volume) const

Definition at line 76 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 76 of file EICG4B0ECALDetector.cc

References G4VPhysicalVolume::GetLogicalVolume(), and m_LogicalVolSet.

Referenced by GetDetId(), and EICG4B0ECALSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EICG4B0ECALDetector::LogicalVolSetInsert ( G4LogicalVolume logvol)
inlineprotected

Definition at line 80 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 80 of file EICG4B0ECALDetector.h

References m_LogicalVolSet.

int EICG4B0ECALDetector::ParseParametersFromTable ( )
private

Definition at line 248 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 248 of file EICG4B0ECALDetector.cc

References _mapping_tower_file, cm, PHParameters::get_double_param(), EICG4B0ECALDetector::towerposition::idx_j, EICG4B0ECALDetector::towerposition::idx_k, m_Params, m_TowerLogicNamePrefix, m_TowerPositionMap, G4HCALOUT::size_z, PHG4Detector::Verbosity(), EICG4B0ECALDetector::towerposition::x, EICG4B0ECALDetector::towerposition::y, and EICG4B0ECALDetector::towerposition::z.

Referenced by ConstructMe().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EICG4B0ECALDetector::PlaceTower ( G4LogicalVolume envelope,
G4LogicalVolume tower 
)
private

Definition at line 224 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 224 of file EICG4B0ECALDetector.cc

References cm, m_TowerPositionMap, PHG4Detector::OverlapCheck(), and PHG4Detector::Verbosity().

Referenced by ConstructMe().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EICG4B0ECALDetector::Print ( const std::string &  what = "ALL") const
overridevirtual

Reimplemented from PHG4Detector.

Definition at line 345 of file EICG4B0ECALDetector.cc.

View newest version in sPHENIX GitHub at line 345 of file EICG4B0ECALDetector.cc

References m_Params, and PHParameters::Print().

Referenced by EICG4B0ECALSubsystem::Print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EICG4B0ECALDetector::SetTowerMappingFile ( const std::string &  filename)
inline

Definition at line 44 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 44 of file EICG4B0ECALDetector.h

References _mapping_tower_file, and INPUTHEPMC::filename.

Referenced by EICG4B0ECALSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

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

Definition at line 40 of file EICG4B0ECALDetector.h.

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

References m_SuperDetector.

Referenced by EICG4B0ECALSubsystem::InitRunSubsystem(), and EICG4B0ECALSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

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

Definition at line 41 of file EICG4B0ECALDetector.h.

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

References m_SuperDetector.

Member Data Documentation

std::string EICG4B0ECALDetector::_mapping_tower_file
private

Definition at line 76 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 76 of file EICG4B0ECALDetector.h

Referenced by ConstructMe(), ParseParametersFromTable(), and SetTowerMappingFile().

int EICG4B0ECALDetector::m_Layer
private

Definition at line 74 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 74 of file EICG4B0ECALDetector.h

Referenced by get_Layer().

std::set<G4LogicalVolume *> EICG4B0ECALDetector::m_LogicalVolSet
private

Definition at line 72 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 72 of file EICG4B0ECALDetector.h

Referenced by ConstructTower(), IsInDetector(), and LogicalVolSetInsert().

PHParameters* EICG4B0ECALDetector::m_Params
private

Definition at line 67 of file EICG4B0ECALDetector.h.

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

Referenced by ConstructMe(), ConstructTower(), getParams(), ParseParametersFromTable(), and Print().

std::map<G4VPhysicalVolume *, int> EICG4B0ECALDetector::m_PhysicalVolumesDet
private

Definition at line 71 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 71 of file EICG4B0ECALDetector.h

Referenced by ConstructMe().

std::set<G4VPhysicalVolume *> EICG4B0ECALDetector::m_PhysicalVolumesSet
private

Definition at line 69 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 69 of file EICG4B0ECALDetector.h

Referenced by ConstructMe().

std::string EICG4B0ECALDetector::m_SuperDetector
private

Definition at line 75 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 75 of file EICG4B0ECALDetector.h

Referenced by SuperDetector().

std::string EICG4B0ECALDetector::m_TowerLogicNamePrefix
private

Definition at line 77 of file EICG4B0ECALDetector.h.

View newest version in sPHENIX GitHub at line 77 of file EICG4B0ECALDetector.h

Referenced by ConstructMe(), and ParseParametersFromTable().

std::map<std::string, towerposition> EICG4B0ECALDetector::m_TowerPositionMap
private

Definition at line 64 of file EICG4B0ECALDetector.h.

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

Referenced by ParseParametersFromTable(), and PlaceTower().


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