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

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4BlockDisplayAction.h>

+ Inheritance diagram for PHG4BlockDisplayAction:
+ Collaboration diagram for PHG4BlockDisplayAction:

Public Member Functions

 PHG4BlockDisplayAction (const std::string &name, PHParameters *parameters)
 
 ~PHG4BlockDisplayAction () override
 
void ApplyDisplayAction (G4VPhysicalVolume *physvol) override
 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
 
G4LogicalVolume * m_MyVolume
 
G4VisAttributes * m_VisAtt
 
G4Colour * m_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 16 of file PHG4BlockDisplayAction.h.

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

Constructor & Destructor Documentation

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

Definition at line 14 of file PHG4BlockDisplayAction.cc.

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

PHG4BlockDisplayAction::~PHG4BlockDisplayAction ( )
override

Definition at line 23 of file PHG4BlockDisplayAction.cc.

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

References m_Colour, and m_VisAtt.

Member Function Documentation

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

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

References PHParameters::get_int_param(), PHParameters::get_string_param(), m_Colour, m_MyVolume, m_Params, m_VisAtt, and PHG4Utils::SetColour().

+ Here is the call graph for this function:

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

Definition at line 62 of file PHG4BlockDisplayAction.cc.

View newest version in sPHENIX GitHub at line 62 of file PHG4BlockDisplayAction.cc

References m_Colour.

Referenced by PHG4BlockSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

void PHG4BlockDisplayAction::SetMyVolume ( G4LogicalVolume *  vol)
inline

Definition at line 24 of file PHG4BlockDisplayAction.h.

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

References m_MyVolume.

Referenced by PHG4BlockDetector::ConstructMe().

+ Here is the caller graph for this function:

Member Data Documentation

G4Colour* PHG4BlockDisplayAction::m_Colour
private

Definition at line 31 of file PHG4BlockDisplayAction.h.

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

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

G4LogicalVolume* PHG4BlockDisplayAction::m_MyVolume
private

Definition at line 29 of file PHG4BlockDisplayAction.h.

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

Referenced by ApplyDisplayAction(), and SetMyVolume().

PHParameters* PHG4BlockDisplayAction::m_Params
private

Definition at line 28 of file PHG4BlockDisplayAction.h.

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

Referenced by ApplyDisplayAction().

G4VisAttributes* PHG4BlockDisplayAction::m_VisAtt
private

Definition at line 30 of file PHG4BlockDisplayAction.h.

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

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


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