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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4eicdirc/G4EicDircDisplayAction.h>

+ Inheritance diagram for G4EicDircDisplayAction:
+ Collaboration diagram for G4EicDircDisplayAction:

Public Member Functions

 G4EicDircDisplayAction (const std::string &name, PHParameters *parameters)
 
virtual ~G4EicDircDisplayAction ()
 
void ApplyDisplayAction (G4VPhysicalVolume *physvol)
 ApplyDisplayAction method.
 
void SetMyVolume (G4LogicalVolume *vol)
 
void SetColor (const double red, const double green, const double blue, const double alpha=1.)
 
- 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

PHParametersm_Params
 
G4LogicalVolumem_MyVolume
 
std::map< G4LogicalVolume
*, std::string > 
m_LogicalVolumeMap
 
G4VisAttributesm_VisAtt
 
G4Colourm_Colour
 

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 17 of file G4EicDircDisplayAction.h.

View newest version in sPHENIX GitHub at line 17 of file G4EicDircDisplayAction.h

Constructor & Destructor Documentation

G4EicDircDisplayAction::G4EicDircDisplayAction ( const std::string &  name,
PHParameters parameters 
)

Definition at line 14 of file G4EicDircDisplayAction.cc.

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

G4EicDircDisplayAction::~G4EicDircDisplayAction ( )
virtual

Definition at line 23 of file G4EicDircDisplayAction.cc.

View newest version in sPHENIX GitHub at line 23 of file G4EicDircDisplayAction.cc

References m_Colour, and m_VisAtt.

Member Function Documentation

void G4EicDircDisplayAction::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 29 of file G4EicDircDisplayAction.cc.

View newest version in sPHENIX GitHub at line 29 of file G4EicDircDisplayAction.cc

References PHParameters::get_int_param(), PHParameters::get_string_param(), G4Colour::GetAlpha(), G4Colour::GetBlue(), G4Colour::GetGreen(), G4Colour::GetRed(), G4LogicalVolume::GetVisAttributes(), it, m_Colour, m_LogicalVolumeMap, m_MyVolume, m_Params, m_VisAtt, PHG4Utils::SetColour(), G4VisAttributes::SetColour(), G4VisAttributes::SetForceSolid(), G4LogicalVolume::SetVisAttributes(), and G4VisAttributes::SetVisibility().

+ Here is the call graph for this function:

void G4EicDircDisplayAction::SetColor ( const double  red,
const double  green,
const double  blue,
const double  alpha = 1. 
)

Definition at line 66 of file G4EicDircDisplayAction.cc.

View newest version in sPHENIX GitHub at line 66 of file G4EicDircDisplayAction.cc

References isfinite, and m_Colour.

void G4EicDircDisplayAction::SetMyVolume ( G4LogicalVolume vol)
inline

Definition at line 25 of file G4EicDircDisplayAction.h.

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

References m_MyVolume.

Member Data Documentation

G4Colour* G4EicDircDisplayAction::m_Colour
private

Definition at line 33 of file G4EicDircDisplayAction.h.

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

Referenced by ApplyDisplayAction(), SetColor(), and ~G4EicDircDisplayAction().

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

Definition at line 31 of file G4EicDircDisplayAction.h.

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

Referenced by ApplyDisplayAction().

G4LogicalVolume* G4EicDircDisplayAction::m_MyVolume
private

Definition at line 30 of file G4EicDircDisplayAction.h.

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

Referenced by ApplyDisplayAction(), and SetMyVolume().

PHParameters* G4EicDircDisplayAction::m_Params
private

Definition at line 29 of file G4EicDircDisplayAction.h.

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

Referenced by ApplyDisplayAction().

G4VisAttributes* G4EicDircDisplayAction::m_VisAtt
private

Definition at line 32 of file G4EicDircDisplayAction.h.

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

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


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