Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4MicromegasDisplayAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4MicromegasDisplayAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MICROMEGAS_PHG4MICROMEGASDISPLAYACTION_H
4 #define G4MICROMEGAS_PHG4MICROMEGASDISPLAYACTION_H
5 
7 
8 #include <Geant4/G4Color.hh>
9 
10 #include <map>
11 #include <string> // for string
12 #include <vector>
13 
14 class G4LogicalVolume;
15 class G4VisAttributes;
16 class G4VPhysicalVolume;
17 
19 {
20  public:
22 
24 
25  void ApplyDisplayAction(G4VPhysicalVolume *physvol) override;
26  void AddVolume(G4LogicalVolume *logvol, const G4Colour &col) { m_LogicalVolumeMap[logvol] = col; }
27 
28  private:
29  std::map<G4LogicalVolume *, G4Color> m_LogicalVolumeMap;
30  std::vector<G4VisAttributes *> m_VisAttVec;
31 };
32 
33 #endif // G4MICROMEGAS_PHG4MICROMEGASDISPLAYACTION_H