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

#include <coresoftware/blob/master/simulation/g4simulation/g4micromegas/PHG4MicromegasDisplayAction.h>

+ Inheritance diagram for PHG4MicromegasDisplayAction:
+ Collaboration diagram for PHG4MicromegasDisplayAction:

Public Member Functions

 PHG4MicromegasDisplayAction (const std::string &name)
 
 ~PHG4MicromegasDisplayAction () override
 
void ApplyDisplayAction (G4VPhysicalVolume *physvol) override
 ApplyDisplayAction method.
 
void AddVolume (G4LogicalVolume *logvol, const G4Colour &col)
 
- 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
*, G4Color > 
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 18 of file PHG4MicromegasDisplayAction.h.

View newest version in sPHENIX GitHub at line 18 of file PHG4MicromegasDisplayAction.h

Constructor & Destructor Documentation

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

Definition at line 13 of file PHG4MicromegasDisplayAction.cc.

View newest version in sPHENIX GitHub at line 13 of file PHG4MicromegasDisplayAction.cc

PHG4MicromegasDisplayAction::~PHG4MicromegasDisplayAction ( )
override

Definition at line 18 of file PHG4MicromegasDisplayAction.cc.

View newest version in sPHENIX GitHub at line 18 of file PHG4MicromegasDisplayAction.cc

References it, and m_VisAttVec.

Member Function Documentation

void PHG4MicromegasDisplayAction::AddVolume ( G4LogicalVolume *  logvol,
const G4Colour &  col 
)
inline

Definition at line 26 of file PHG4MicromegasDisplayAction.h.

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

References col, and m_LogicalVolumeMap.

Referenced by PHG4MicromegasDetector::construct_fee_board(), and PHG4MicromegasDetector::construct_micromegas_tile().

+ Here is the caller graph for this function:

void PHG4MicromegasDisplayAction::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 27 of file PHG4MicromegasDisplayAction.cc.

View newest version in sPHENIX GitHub at line 27 of file PHG4MicromegasDisplayAction.cc

References it, m_LogicalVolumeMap, and m_VisAttVec.

Member Data Documentation

std::map<G4LogicalVolume *, G4Color> PHG4MicromegasDisplayAction::m_LogicalVolumeMap
private

Definition at line 29 of file PHG4MicromegasDisplayAction.h.

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

Referenced by AddVolume(), and ApplyDisplayAction().

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

Definition at line 30 of file PHG4MicromegasDisplayAction.h.

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

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


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