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

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4BeamlineMagnetDetector.h>

+ Inheritance diagram for PHG4BeamlineMagnetDetector:
+ Collaboration diagram for PHG4BeamlineMagnetDetector:

Public Member Functions

 PHG4BeamlineMagnetDetector (PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam, const int layer=0)
 constructor
 
 ~PHG4BeamlineMagnetDetector (void) override
 destructor
 
void ConstructMe (G4LogicalVolume *world) override
 construct
 
bool IsInBeamlineMagnet (const G4VPhysicalVolume *) const
 
void SuperDetector (const std::string &name)
 
const std::string SuperDetector () const
 
int get_Layer () 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 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 Attributes

PHParametersparams
 
G4VPhysicalVolume * magnet_physi
 
G4VPhysicalVolume * cylinder_physi
 
int layer
 
std::string 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 16 of file PHG4BeamlineMagnetDetector.h.

View newest version in sPHENIX GitHub at line 16 of file PHG4BeamlineMagnetDetector.h

Constructor & Destructor Documentation

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

constructor

Definition at line 42 of file PHG4BeamlineMagnetDetector.cc.

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

PHG4BeamlineMagnetDetector::~PHG4BeamlineMagnetDetector ( void  )
inlineoverride

destructor

Definition at line 23 of file PHG4BeamlineMagnetDetector.h.

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

Member Function Documentation

void PHG4BeamlineMagnetDetector::ConstructMe ( G4LogicalVolume *  world)
overridevirtual

construct

Implements PHG4Detector.

Definition at line 62 of file PHG4BeamlineMagnetDetector.cc.

View newest version in sPHENIX GitHub at line 62 of file PHG4BeamlineMagnetDetector.cc

References Acts::UnitConstants::cm, cylinder_physi, exit(), PHParameters::get_double_param(), PHParameters::get_int_param(), PHParameters::get_string_param(), PHG4Detector::GetDetectorMaterial(), PHG4Detector::GetName(), magnet_physi, Acts::UnitConstants::mm, Acts::Test::origin(), PHG4Detector::OverlapCheck(), params, PHWHERE, G4BECAL::radius, PHG4Utils::SetColour(), thickness, twopi, and PHG4Detector::Verbosity().

+ Here is the call graph for this function:

int PHG4BeamlineMagnetDetector::get_Layer ( ) const
inline

Definition at line 33 of file PHG4BeamlineMagnetDetector.h.

View newest version in sPHENIX GitHub at line 33 of file PHG4BeamlineMagnetDetector.h

References layer.

bool PHG4BeamlineMagnetDetector::IsInBeamlineMagnet ( const G4VPhysicalVolume *  volume) const

Definition at line 52 of file PHG4BeamlineMagnetDetector.cc.

View newest version in sPHENIX GitHub at line 52 of file PHG4BeamlineMagnetDetector.cc

References magnet_physi.

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

Definition at line 31 of file PHG4BeamlineMagnetDetector.h.

View newest version in sPHENIX GitHub at line 31 of file PHG4BeamlineMagnetDetector.h

References name, and superdetector.

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

Definition at line 32 of file PHG4BeamlineMagnetDetector.h.

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

References superdetector.

Member Data Documentation

G4VPhysicalVolume* PHG4BeamlineMagnetDetector::cylinder_physi
private

Definition at line 39 of file PHG4BeamlineMagnetDetector.h.

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

Referenced by ConstructMe().

int PHG4BeamlineMagnetDetector::layer
private

Definition at line 41 of file PHG4BeamlineMagnetDetector.h.

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

Referenced by get_Layer().

G4VPhysicalVolume* PHG4BeamlineMagnetDetector::magnet_physi
private

Definition at line 38 of file PHG4BeamlineMagnetDetector.h.

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

Referenced by ConstructMe(), and IsInBeamlineMagnet().

PHParameters* PHG4BeamlineMagnetDetector::params
private

Definition at line 36 of file PHG4BeamlineMagnetDetector.h.

View newest version in sPHENIX GitHub at line 36 of file PHG4BeamlineMagnetDetector.h

Referenced by ConstructMe().

std::string PHG4BeamlineMagnetDetector::superdetector
private

Definition at line 42 of file PHG4BeamlineMagnetDetector.h.

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

Referenced by SuperDetector().


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