Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4SpacalDisplayAction Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4SpacalDisplayAction.h>

+ Inheritance diagram for PHG4SpacalDisplayAction:
+ Collaboration diagram for PHG4SpacalDisplayAction:

Public Member Functions

 PHG4SpacalDisplayAction (const std::string &name)
 
 ~PHG4SpacalDisplayAction () override
 
void ApplyDisplayAction (G4VPhysicalVolume *physvol) override
 ApplyDisplayAction method.
 
void AddVolume (G4LogicalVolume *logvol, const std::string &mat)
 
void SetGeom (const PHG4CylinderGeom_Spacalv1 *geo)
 
void AddMaterial (const std::string &name, const std::string &mat)
 
- Public Member Functions inherited from PHG4DisplayAction
 PHG4DisplayAction ()=delete
 constructor
 
 PHG4DisplayAction (const std::string &name)
 
virtual ~PHG4DisplayAction ()
 destructor
 
virtual void SetName (const std::string &name)
 
virtual std::string GetName () const
 
virtual void Print (const std::string &="ALL")
 

Private Attributes

const PHG4CylinderGeom_Spacalv1m_Geom = nullptr
 
std::map< G4LogicalVolume
*, std::string > 
m_LogicalVolumeMap
 
std::vector< G4VisAttributes * > m_VisAttVec
 
std::map< std::string,
std::string > 
m_MaterialMap
 

Additional Inherited Members

- Public Types inherited from PHG4DisplayAction
enum  CheckReturnCodes { ABORT = -1, FAILED = 0, ACCEPT = 1 }
 
- Protected Member Functions inherited from PHG4DisplayAction
int FindVolumes (G4VPhysicalVolume *physvol)
 find FindVolume method
 
virtual int CheckVolume (G4VPhysicalVolume *)
 find CheckVolume method
 
virtual void ApplyVisAttributes (G4VPhysicalVolume *)
 ApplyVisAttributes method.
 

Detailed Description

Definition at line 17 of file PHG4SpacalDisplayAction.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4SpacalDisplayAction.h

Constructor & Destructor Documentation

PHG4SpacalDisplayAction::PHG4SpacalDisplayAction ( const std::string &  name)
explicit

Definition at line 17 of file PHG4SpacalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 17 of file PHG4SpacalDisplayAction.cc

PHG4SpacalDisplayAction::~PHG4SpacalDisplayAction ( )
override

Definition at line 22 of file PHG4SpacalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 22 of file PHG4SpacalDisplayAction.cc

References it, and m_VisAttVec.

Member Function Documentation

void PHG4SpacalDisplayAction::AddMaterial ( const std::string &  name,
const std::string &  mat 
)
inline

Definition at line 27 of file PHG4SpacalDisplayAction.h.

View newest version in sPHENIX GitHub at line 27 of file PHG4SpacalDisplayAction.h

References m_MaterialMap, and perf_headwind::name.

Referenced by PHG4FullProjTiltedSpacalDetector::Construct_LightGuide().

+ Here is the caller graph for this function:

void PHG4SpacalDisplayAction::AddVolume ( G4LogicalVolume *  logvol,
const std::string &  mat 
)
inline
void PHG4SpacalDisplayAction::ApplyDisplayAction ( G4VPhysicalVolume physvol)
overridevirtual

ApplyDisplayAction method.

pure virtual - has to be implemented by derived class creates and set VisAttributes for volumes

Parameters
[in]physvolstarting volume in hierarchy (typically world volume)

Implements PHG4DisplayAction.

Definition at line 31 of file PHG4SpacalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 31 of file PHG4SpacalDisplayAction.cc

References PHG4CylinderGeom_Spacalv1::is_azimuthal_seg_visible(), PHG4CylinderGeom_Spacalv1::is_virualize_fiber(), it, m_Geom, m_LogicalVolumeMap, m_MaterialMap, m_VisAttVec, and PHG4Utils::SetColour().

+ Here is the call graph for this function:

void PHG4SpacalDisplayAction::SetGeom ( const PHG4CylinderGeom_Spacalv1 geo)
inline

Definition at line 26 of file PHG4SpacalDisplayAction.h.

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

References m_Geom.

Referenced by PHG4SpacalSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

Member Data Documentation

const PHG4CylinderGeom_Spacalv1* PHG4SpacalDisplayAction::m_Geom = nullptr
private

Definition at line 30 of file PHG4SpacalDisplayAction.h.

View newest version in sPHENIX GitHub at line 30 of file PHG4SpacalDisplayAction.h

Referenced by ApplyDisplayAction(), and SetGeom().

std::map<G4LogicalVolume *, std::string> PHG4SpacalDisplayAction::m_LogicalVolumeMap
private

Definition at line 31 of file PHG4SpacalDisplayAction.h.

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

Referenced by AddVolume(), and ApplyDisplayAction().

std::map<std::string, std::string> PHG4SpacalDisplayAction::m_MaterialMap
private

Definition at line 33 of file PHG4SpacalDisplayAction.h.

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

Referenced by AddMaterial(), and ApplyDisplayAction().

std::vector<G4VisAttributes *> PHG4SpacalDisplayAction::m_VisAttVec
private

Definition at line 32 of file PHG4SpacalDisplayAction.h.

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

Referenced by ApplyDisplayAction(), and ~PHG4SpacalDisplayAction().


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