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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4ttl/PHG4TTLDetector.h>

+ Inheritance diagram for PHG4TTLDetector:
+ Collaboration diagram for PHG4TTLDetector:

Public Member Functions

 PHG4TTLDetector (PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam)
 constructor
 
 ~PHG4TTLDetector (void) override
 destructor
 
void ConstructMe (G4LogicalVolume *world) override
 construct
 
void SuperDetector (const std::string &name)
 
const std::string SuperDetector () const
 
void SetSteppingAction (PHG4TTLSteppingAction *stpact)
 
void OverlapCheck (bool check=true) override
 
volume accessors
bool IsInSectorActive (G4VPhysicalVolume *physvol)
 
- 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 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 ()
 

Public Attributes

std::string name_base
 

Protected Types

typedef std::map< G4String,
G4LogicalVolume * > 
map_log_vol_t
 
typedef std::pair< G4String,
G4int
phy_vol_idx_t
 
typedef std::map
< phy_vol_idx_t, G4PVPlacement * > 
map_phy_vol_t
 

Protected Member Functions

G4LogicalVolumeRegisterLogicalVolume (G4LogicalVolume *)
 
G4VSolidConstruct_Sectors_Plane (const std::string &name, const double start_z, const double thickness, G4VSolid *SecConeBoundary_Det)
 
G4PVPlacementRegisterPhysicalVolume (G4PVPlacement *v, const bool active=false)
 
void BuildForwardTTL (G4LogicalVolume *world)
 
void BuildBarrelTTL (G4LogicalVolume *world)
 

Protected Attributes

bool overlapcheck_sector
 
map_log_vol_t map_log_vol
 
map_phy_vol_t map_phy_vol
 
map_phy_vol_t map_active_phy_vol
 all physics volume
 

Private Attributes

PHG4TTLDisplayActionm_DisplayAction
 
PHG4TTLSteppingActionm_SteppingAction
 
int m_Verbosity
 
std::string superdetector
 
PHParametersm_Params = nullptr
 

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 45 of file PHG4TTLDetector.h.

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

Member Typedef Documentation

Definition at line 105 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 105 of file PHG4TTLDetector.h

Definition at line 115 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 115 of file PHG4TTLDetector.h

typedef std::pair<G4String, G4int> PHG4TTLDetector::phy_vol_idx_t
protected

Definition at line 114 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 114 of file PHG4TTLDetector.h

Constructor & Destructor Documentation

PHG4TTLDetector::PHG4TTLDetector ( PHG4Subsystem subsys,
PHCompositeNode Node,
PHParameters parameters,
const std::string &  dnam 
)

constructor

Definition at line 42 of file PHG4TTLDetector.cc.

View newest version in sPHENIX GitHub at line 42 of file PHG4TTLDetector.cc

PHG4TTLDetector::~PHG4TTLDetector ( void  )
inlineoverride

destructor

Definition at line 52 of file PHG4TTLDetector.h.

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

Member Function Documentation

void PHG4TTLDetector::BuildBarrelTTL ( G4LogicalVolume world)
protected
void PHG4TTLDetector::BuildForwardTTL ( G4LogicalVolume world)
protected

Definition at line 569 of file PHG4TTLDetector.cc.

View newest version in sPHENIX GitHub at line 569 of file PHG4TTLDetector.cc

References a, kdfinder::abs(), G4Material::AddElement(), PHG4TTLDisplayAction::AddVolume(), cm, cm3, Acts::UnitConstants::g, PHParameters::get_double_param(), PHG4Detector::GetDetectorMaterial(), G4Element::GetElement(), int(), kXAxis, m_DisplayAction, m_Params, M_PI, m_SteppingAction, mm, mole, name_base, mySim::nLayers, overlapcheck_sector, pi, RegisterLogicalVolume(), RegisterPhysicalVolume(), CLHEP::HepRotation::rotateX(), CLHEP::HepRotation::rotateZ(), PHG4TTLSteppingAction::SetIsForwardTTL(), PHG4TTLSteppingAction::SetNPhiModules(), PHG4TTLSteppingAction::SetZPositionFwd(), nlohmann::to_string(), z, and ETOF::z_start.

Referenced by ConstructMe().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VSolid* PHG4TTLDetector::Construct_Sectors_Plane ( const std::string &  name,
const double  start_z,
const double  thickness,
G4VSolid SecConeBoundary_Det 
)
protected
void PHG4TTLDetector::ConstructMe ( G4LogicalVolume world)
overridevirtual

construct

Implements PHG4Detector.

Definition at line 69 of file PHG4TTLDetector.cc.

View newest version in sPHENIX GitHub at line 69 of file PHG4TTLDetector.cc

References BuildBarrelTTL(), BuildForwardTTL(), PHParameters::get_int_param(), and m_Params.

+ Here is the call graph for this function:

bool PHG4TTLDetector::IsInSectorActive ( G4VPhysicalVolume physvol)

Definition at line 54 of file PHG4TTLDetector.cc.

View newest version in sPHENIX GitHub at line 54 of file PHG4TTLDetector.cc

References it, and map_active_phy_vol.

Referenced by PHG4TTLSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

void PHG4TTLDetector::OverlapCheck ( bool  check = true)
inlineoverridevirtual

Reimplemented from PHG4Detector.

Definition at line 74 of file PHG4TTLDetector.h.

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

References overlapcheck_sector.

Referenced by PHG4TTLSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

G4LogicalVolume * PHG4TTLDetector::RegisterLogicalVolume ( G4LogicalVolume v)
protected

Definition at line 1086 of file PHG4TTLDetector.cc.

View newest version in sPHENIX GitHub at line 1086 of file PHG4TTLDetector.cc

References G4LogicalVolume::GetName(), map_log_vol, and v.

Referenced by BuildBarrelTTL(), and BuildForwardTTL().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4PVPlacement * PHG4TTLDetector::RegisterPhysicalVolume ( G4PVPlacement v,
const bool  active = false 
)
protected

Definition at line 1106 of file PHG4TTLDetector.cc.

View newest version in sPHENIX GitHub at line 1106 of file PHG4TTLDetector.cc

References G4PVPlacement::GetCopyNo(), G4VPhysicalVolume::GetName(), map_active_phy_vol, map_phy_vol, and v.

Referenced by BuildBarrelTTL(), and BuildForwardTTL().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4TTLDetector::SetSteppingAction ( PHG4TTLSteppingAction stpact)
inline

Definition at line 66 of file PHG4TTLDetector.h.

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

References m_SteppingAction.

Referenced by PHG4TTLSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

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

Definition at line 64 of file PHG4TTLDetector.h.

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

References superdetector.

Referenced by PHG4TTLSubsystem::InitRunSubsystem(), and PHG4TTLSteppingAction::SetInterfacePointers().

+ Here is the caller graph for this function:

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

Definition at line 65 of file PHG4TTLDetector.h.

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

References superdetector.

Member Data Documentation

PHG4TTLDisplayAction* PHG4TTLDetector::m_DisplayAction
private

Definition at line 87 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 87 of file PHG4TTLDetector.h

Referenced by BuildBarrelTTL(), and BuildForwardTTL().

PHParameters* PHG4TTLDetector::m_Params = nullptr
private

Definition at line 91 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 91 of file PHG4TTLDetector.h

Referenced by BuildBarrelTTL(), BuildForwardTTL(), and ConstructMe().

PHG4TTLSteppingAction* PHG4TTLDetector::m_SteppingAction
private

Definition at line 88 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 88 of file PHG4TTLDetector.h

Referenced by BuildBarrelTTL(), BuildForwardTTL(), and SetSteppingAction().

int PHG4TTLDetector::m_Verbosity
private

Definition at line 89 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 89 of file PHG4TTLDetector.h

map_phy_vol_t PHG4TTLDetector::map_active_phy_vol
protected

all physics volume

Definition at line 117 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 117 of file PHG4TTLDetector.h

Referenced by IsInSectorActive(), and RegisterPhysicalVolume().

map_log_vol_t PHG4TTLDetector::map_log_vol
protected

Definition at line 106 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 106 of file PHG4TTLDetector.h

Referenced by RegisterLogicalVolume().

map_phy_vol_t PHG4TTLDetector::map_phy_vol
protected

Definition at line 116 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 116 of file PHG4TTLDetector.h

Referenced by RegisterPhysicalVolume().

std::string PHG4TTLDetector::name_base

Definition at line 84 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 84 of file PHG4TTLDetector.h

Referenced by BuildForwardTTL().

bool PHG4TTLDetector::overlapcheck_sector
protected

Definition at line 96 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 96 of file PHG4TTLDetector.h

Referenced by BuildBarrelTTL(), BuildForwardTTL(), and OverlapCheck().

std::string PHG4TTLDetector::superdetector
private

Definition at line 90 of file PHG4TTLDetector.h.

View newest version in sPHENIX GitHub at line 90 of file PHG4TTLDetector.h

Referenced by SuperDetector().


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