File indexing completed on 2025-08-05 08:17:45
0001
0002
0003 #ifndef G4DETECTORS_PHG4CYLINDERDISPLAYACTION_H
0004 #define G4DETECTORS_PHG4CYLINDERDISPLAYACTION_H
0005
0006 #include <g4main/PHG4DisplayAction.h>
0007
0008 #include <string> // for string
0009
0010 class G4Colour;
0011 class G4LogicalVolume;
0012 class G4VisAttributes;
0013 class G4VPhysicalVolume;
0014 class PHParameters;
0015
0016 class PHG4CylinderDisplayAction : public PHG4DisplayAction
0017 {
0018 public:
0019 PHG4CylinderDisplayAction(const std::string &name, PHParameters *parameters);
0020
0021 ~PHG4CylinderDisplayAction() override;
0022
0023 void ApplyDisplayAction(G4VPhysicalVolume *physvol) override;
0024 void SetMyVolume(G4LogicalVolume *vol) { m_MyVolume = vol; }
0025 void SetColor(const double red, const double green, const double blue, const double alpha = 1.);
0026
0027 private:
0028 PHParameters *m_Params;
0029 G4LogicalVolume *m_MyVolume;
0030 G4VisAttributes *m_VisAtt;
0031 G4Colour *m_Colour;
0032 };
0033
0034 #endif