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

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

+ Inheritance diagram for PHG4BbcDisplayAction:
+ Collaboration diagram for PHG4BbcDisplayAction:

Public Member Functions

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

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

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

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

Constructor & Destructor Documentation

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

Definition at line 14 of file PHG4BbcDisplayAction.cc.

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

PHG4BbcDisplayAction::~PHG4BbcDisplayAction ( )
virtual

Definition at line 19 of file PHG4BbcDisplayAction.cc.

View newest version in sPHENIX GitHub at line 19 of file PHG4BbcDisplayAction.cc

References it, and m_VisAttVec.

Member Function Documentation

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

Definition at line 24 of file PHG4BbcDisplayAction.h.

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

References m_LogicalVolumeMap.

Referenced by PHG4BbcDetector::ConstructMe(), and PHG4BbcDetector::ConstructSupport().

+ Here is the caller graph for this function:

void PHG4BbcDisplayAction::ApplyDisplayAction ( G4VPhysicalVolume physvol)
virtual

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 28 of file PHG4BbcDisplayAction.cc.

View newest version in sPHENIX GitHub at line 28 of file PHG4BbcDisplayAction.cc

References PHG4DisplayAction::GetName(), it, m_LogicalVolumeMap, and m_VisAttVec.

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 27 of file PHG4BbcDisplayAction.h.

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

Referenced by AddVolume(), and ApplyDisplayAction().

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

Definition at line 28 of file PHG4BbcDisplayAction.h.

View newest version in sPHENIX GitHub at line 28 of file PHG4BbcDisplayAction.h

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


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