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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4eiccalos/PHG4ForwardEcalDisplayAction.h>

+ Inheritance diagram for PHG4ForwardEcalDisplayAction:
+ Collaboration diagram for PHG4ForwardEcalDisplayAction:

Public Member Functions

 PHG4ForwardEcalDisplayAction (const std::string &name)
 
 PHG4ForwardEcalDisplayAction (const std::string &name, bool detailed)
 
virtual ~PHG4ForwardEcalDisplayAction ()
 
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
 
bool showdetails = false
 

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

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

Constructor & Destructor Documentation

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

Definition at line 14 of file PHG4ForwardEcalDisplayAction.cc.

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

PHG4ForwardEcalDisplayAction::PHG4ForwardEcalDisplayAction ( const std::string &  name,
bool  detailed 
)
explicit

Definition at line 19 of file PHG4ForwardEcalDisplayAction.cc.

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

References showdetails.

PHG4ForwardEcalDisplayAction::~PHG4ForwardEcalDisplayAction ( )
virtual

Definition at line 26 of file PHG4ForwardEcalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 26 of file PHG4ForwardEcalDisplayAction.cc

References it, and m_VisAttVec.

Member Function Documentation

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

Definition at line 25 of file PHG4ForwardEcalDisplayAction.h.

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

References m_LogicalVolumeMap, and mat.

Referenced by PHG4EICForwardEcalDetector::ConstructMe(), PHG4ForwardEcalDetector::ConstructMe(), PHG4EICForwardEcalDetector::ConstructTower(), and PHG4ForwardEcalDetector::ConstructTower().

+ Here is the caller graph for this function:

void PHG4ForwardEcalDisplayAction::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 35 of file PHG4ForwardEcalDisplayAction.cc.

View newest version in sPHENIX GitHub at line 35 of file PHG4ForwardEcalDisplayAction.cc

References G4Colour::Black(), G4LogicalVolume::GetVisAttributes(), G4Colour::Gray(), it, m_LogicalVolumeMap, m_VisAttVec, G4Colour::Magenta(), G4Colour::Red(), G4VisAttributes::SetColour(), G4VisAttributes::SetForceSolid(), G4VisAttributes::SetForceWireframe(), G4LogicalVolume::SetVisAttributes(), G4VisAttributes::SetVisibility(), and showdetails.

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 28 of file PHG4ForwardEcalDisplayAction.h.

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

Referenced by AddVolume(), and ApplyDisplayAction().

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

Definition at line 29 of file PHG4ForwardEcalDisplayAction.h.

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

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

bool PHG4ForwardEcalDisplayAction::showdetails = false
private

Definition at line 30 of file PHG4ForwardEcalDisplayAction.h.

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

Referenced by ApplyDisplayAction(), and PHG4ForwardEcalDisplayAction().


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