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

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4tpc/PHG4TpcDisplayAction.h>

+ Inheritance diagram for PHG4TpcDisplayAction:
+ Collaboration diagram for PHG4TpcDisplayAction:

Public Member Functions

 PHG4TpcDisplayAction (const std::string &name)
 
 ~PHG4TpcDisplayAction () override
 
void ApplyDisplayAction (G4VPhysicalVolume *physvol) override
 ApplyDisplayAction method.
 
void AddVolume (G4LogicalVolume *logvol, const std::string &mat)
 
void AddTpcInnerLayer (G4LogicalVolume *logvol)
 
void AddTpcOuterLayer (G4LogicalVolume *logvol)
 
- 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

std::map< G4LogicalVolume
*, std::string > 
m_LogicalVolumeMap
 
std::vector< G4VisAttributes * > m_VisAttVec
 
std::vector< G4LogicalVolume * > m_TpcInnerLayersVec
 
std::vector< G4LogicalVolume * > m_TpcOuterLayersVec
 

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 PHG4TpcDisplayAction.h.

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

Constructor & Destructor Documentation

PHG4TpcDisplayAction::PHG4TpcDisplayAction ( const std::string &  name)

Definition at line 17 of file PHG4TpcDisplayAction.cc.

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

PHG4TpcDisplayAction::~PHG4TpcDisplayAction ( )
override

Definition at line 22 of file PHG4TpcDisplayAction.cc.

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

References it, and m_VisAttVec.

Member Function Documentation

void PHG4TpcDisplayAction::AddTpcInnerLayer ( G4LogicalVolume *  logvol)
inline

Definition at line 25 of file PHG4TpcDisplayAction.h.

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

References m_TpcInnerLayersVec.

Referenced by PHG4TpcDetector::ConstructTpcCageVolume().

+ Here is the caller graph for this function:

void PHG4TpcDisplayAction::AddTpcOuterLayer ( G4LogicalVolume *  logvol)
inline

Definition at line 26 of file PHG4TpcDisplayAction.h.

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

References m_TpcOuterLayersVec.

Referenced by PHG4TpcDetector::ConstructTpcCageVolume().

+ Here is the caller graph for this function:

void PHG4TpcDisplayAction::AddVolume ( G4LogicalVolume *  logvol,
const std::string &  mat 
)
inline

Definition at line 24 of file PHG4TpcDisplayAction.h.

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

References m_LogicalVolumeMap.

Referenced by PHG4TpcDetector::ConstructMe(), PHG4TpcDetector::ConstructTpcExternalSupports(), and PHG4TpcDetector::ConstructTpcGasVolume().

+ Here is the caller graph for this function:

void PHG4TpcDisplayAction::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 PHG4TpcDisplayAction.cc.

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

References color, it, m_LogicalVolumeMap, m_TpcInnerLayersVec, m_TpcOuterLayersVec, m_VisAttVec, PHG4TpcColorDefs::tpc_cu_color, PHG4TpcColorDefs::tpc_gas_color, PHG4TpcColorDefs::tpc_honeycomb_color, PHG4TpcColorDefs::tpc_kapton_color, and PHG4TpcColorDefs::tpc_pcb_color.

Member Data Documentation

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

Definition at line 29 of file PHG4TpcDisplayAction.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4TpcDisplayAction.h

Referenced by AddVolume(), and ApplyDisplayAction().

std::vector<G4LogicalVolume *> PHG4TpcDisplayAction::m_TpcInnerLayersVec
private

Definition at line 31 of file PHG4TpcDisplayAction.h.

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

Referenced by AddTpcInnerLayer(), and ApplyDisplayAction().

std::vector<G4LogicalVolume *> PHG4TpcDisplayAction::m_TpcOuterLayersVec
private

Definition at line 32 of file PHG4TpcDisplayAction.h.

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

Referenced by AddTpcOuterLayer(), and ApplyDisplayAction().

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

Definition at line 30 of file PHG4TpcDisplayAction.h.

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

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


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