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

#include <g4exampledetector/blob/master/color/source/G4Example03Detector.h>

+ Inheritance diagram for G4Example03Detector:
+ Collaboration diagram for G4Example03Detector:

Public Member Functions

 G4Example03Detector (PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam)
 constructor
 
virtual ~G4Example03Detector ()
 destructor
 
virtual void ConstructMe (G4LogicalVolume *world)
 construct
 
virtual void Print (const std::string &what="ALL") const
 
void SuperDetector (const std::string &name)
 
const std::string SuperDetector () const
 
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 G4UserSteppingAction * GetSteppingAction ()
 
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 Attributes

PHParametersm_Params
 
G4Example03DisplayActionm_DisplayAction
 
std::set< G4VPhysicalVolume * > m_PhysicalVolumesSet
 
std::string m_SuperDetector
 

Additional Inherited Members

- Static Public Member Functions inherited from PHG4Detector
static G4Material * GetDetectorMaterial (const std::string &name, const bool quit=true)
 
static G4Element * GetDetectorElement (const std::string &name, const bool quit=true)
 

Detailed Description

Definition at line 18 of file G4Example03Detector.h.

View newest version in sPHENIX GitHub at line 18 of file G4Example03Detector.h

Constructor & Destructor Documentation

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

constructor

Definition at line 29 of file G4Example03Detector.cc.

View newest version in sPHENIX GitHub at line 29 of file G4Example03Detector.cc

virtual G4Example03Detector::~G4Example03Detector ( )
inlinevirtual

destructor

Definition at line 25 of file G4Example03Detector.h.

View newest version in sPHENIX GitHub at line 25 of file G4Example03Detector.h

Member Function Documentation

void G4Example03Detector::ConstructMe ( G4LogicalVolume *  world)
virtual

construct

Implements PHG4Detector.

Definition at line 53 of file G4Example03Detector.cc.

View newest version in sPHENIX GitHub at line 53 of file G4Example03Detector.cc

References Acts::UnitConstants::cm, PHParameters::get_double_param(), m_DisplayAction, m_Params, m_PhysicalVolumesSet, M_PI, PHG4Detector::OverlapCheck(), Acts::UnitConstants::rad, and G4Example03DisplayAction::SetMyVolume().

+ Here is the call graph for this function:

int G4Example03Detector::IsInDetector ( G4VPhysicalVolume *  volume) const

Definition at line 41 of file G4Example03Detector.cc.

View newest version in sPHENIX GitHub at line 41 of file G4Example03Detector.cc

References m_PhysicalVolumesSet.

Referenced by G4Example03SteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

void G4Example03Detector::Print ( const std::string &  what = "ALL") const
virtual

Reimplemented from PHG4Detector.

Definition at line 82 of file G4Example03Detector.cc.

View newest version in sPHENIX GitHub at line 82 of file G4Example03Detector.cc

References m_Params, and PHParameters::Print().

Referenced by G4Example03Subsystem::Print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 37 of file G4Example03Detector.h.

View newest version in sPHENIX GitHub at line 37 of file G4Example03Detector.h

References m_SuperDetector, and name.

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

Definition at line 38 of file G4Example03Detector.h.

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

References m_SuperDetector.

Member Data Documentation

G4Example03DisplayAction* G4Example03Detector::m_DisplayAction
protected

Definition at line 43 of file G4Example03Detector.h.

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

Referenced by ConstructMe().

PHParameters* G4Example03Detector::m_Params
protected

Definition at line 41 of file G4Example03Detector.h.

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

Referenced by ConstructMe(), and Print().

std::set<G4VPhysicalVolume *> G4Example03Detector::m_PhysicalVolumesSet
protected

Definition at line 46 of file G4Example03Detector.h.

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

Referenced by ConstructMe(), and IsInDetector().

std::string G4Example03Detector::m_SuperDetector
protected

Definition at line 48 of file G4Example03Detector.h.

View newest version in sPHENIX GitHub at line 48 of file G4Example03Detector.h

Referenced by SuperDetector().


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