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

#include <coresoftware/blob/master/simulation/g4simulation/g4ohcal/PHG4OHCalDisplayAction.h>

+ Inheritance diagram for PHG4OHCalDisplayAction:
+ Collaboration diagram for PHG4OHCalDisplayAction:

Public Member Functions

 PHG4OHCalDisplayAction (const std::string &name)
 
 ~PHG4OHCalDisplayAction () override
 
void ApplyDisplayAction (G4VPhysicalVolume *physvol) override
 ApplyDisplayAction method.
 
void SetMyTopVolume (G4VPhysicalVolume *vol)
 
void AddScintiVolume (G4LogicalVolume *vol)
 
void AddSteelVolume (G4LogicalVolume *vol)
 
void AddChimSteelVolume (G4LogicalVolume *vol)
 
- 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

G4VPhysicalVolumem_MyTopVolume = nullptr
 
G4LogicalVolume * m_SteelVol = nullptr
 
G4LogicalVolume * m_ChimSteelVol = nullptr
 
std::vector< G4VisAttributes * > m_VisAttVec
 
std::vector< G4VisAttributes * > m_VisAttVec2
 
std::set< G4LogicalVolume * > m_ScintiLogVolSet
 

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 16 of file PHG4OHCalDisplayAction.h.

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

Constructor & Destructor Documentation

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

Definition at line 9 of file PHG4OHCalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 9 of file PHG4OHCalDisplayAction.cc

PHG4OHCalDisplayAction::~PHG4OHCalDisplayAction ( )
override

Definition at line 14 of file PHG4OHCalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 14 of file PHG4OHCalDisplayAction.cc

References it, m_ScintiLogVolSet, and m_VisAttVec.

Member Function Documentation

void PHG4OHCalDisplayAction::AddChimSteelVolume ( G4LogicalVolume *  vol)
inline

Definition at line 27 of file PHG4OHCalDisplayAction.h.

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

References m_ChimSteelVol.

Referenced by PHG4OHCalDetector::ConstructOHCal().

+ Here is the caller graph for this function:

void PHG4OHCalDisplayAction::AddScintiVolume ( G4LogicalVolume *  vol)
inline

Definition at line 25 of file PHG4OHCalDisplayAction.h.

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

References m_ScintiLogVolSet.

Referenced by PHG4OHCalDetector::ConstructOHCal().

+ Here is the caller graph for this function:

void PHG4OHCalDisplayAction::AddSteelVolume ( G4LogicalVolume *  vol)
inline

Definition at line 26 of file PHG4OHCalDisplayAction.h.

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

References m_SteelVol.

Referenced by PHG4OHCalDetector::ConstructOHCal().

+ Here is the caller graph for this function:

void PHG4OHCalDisplayAction::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 24 of file PHG4OHCalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 24 of file PHG4OHCalDisplayAction.cc

References it, m_ChimSteelVol, m_ScintiLogVolSet, m_SteelVol, m_VisAttVec, and m_VisAttVec2.

void PHG4OHCalDisplayAction::SetMyTopVolume ( G4VPhysicalVolume vol)
inline

Definition at line 24 of file PHG4OHCalDisplayAction.h.

View newest version in sPHENIX GitHub at line 24 of file PHG4OHCalDisplayAction.h

References m_MyTopVolume.

Referenced by PHG4OHCalDetector::ConstructMe().

+ Here is the caller graph for this function:

Member Data Documentation

G4LogicalVolume* PHG4OHCalDisplayAction::m_ChimSteelVol = nullptr
private

Definition at line 32 of file PHG4OHCalDisplayAction.h.

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

Referenced by AddChimSteelVolume(), and ApplyDisplayAction().

G4VPhysicalVolume* PHG4OHCalDisplayAction::m_MyTopVolume = nullptr
private

Definition at line 30 of file PHG4OHCalDisplayAction.h.

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

Referenced by SetMyTopVolume().

std::set<G4LogicalVolume *> PHG4OHCalDisplayAction::m_ScintiLogVolSet
private

Definition at line 35 of file PHG4OHCalDisplayAction.h.

View newest version in sPHENIX GitHub at line 35 of file PHG4OHCalDisplayAction.h

Referenced by AddScintiVolume(), ApplyDisplayAction(), and ~PHG4OHCalDisplayAction().

G4LogicalVolume* PHG4OHCalDisplayAction::m_SteelVol = nullptr
private

Definition at line 31 of file PHG4OHCalDisplayAction.h.

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

Referenced by AddSteelVolume(), and ApplyDisplayAction().

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

Definition at line 33 of file PHG4OHCalDisplayAction.h.

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

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

std::vector<G4VisAttributes *> PHG4OHCalDisplayAction::m_VisAttVec2
private

Definition at line 34 of file PHG4OHCalDisplayAction.h.

View newest version in sPHENIX GitHub at line 34 of file PHG4OHCalDisplayAction.h

Referenced by ApplyDisplayAction().


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