GGS(GenericGEANT4Simulation)Software  2.99.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Macros
DetectorHit.h
1 #include "TEveGeoNode.h"
2 #include "TEveGeoShape.h"
3 #include "TEveManager.h"
4 
5 #include "display/application/gui/VPalette.h"
6 
7 #ifndef _DETECTORHIT_
8 #define _DETECTORHIT_
9 
10 class DetectorHit {
11 public:
12  enum hitType { kFullHit, kOpacityHit, kColorCodedHit, kColorCodedScaleHit, kClusterHit, kHitTypeN };
13  static std::string hitTypeNames[DetectorHit::kHitTypeN]; // = { "kFullHit", "kOpacityHit", "kColorCodedHit",
14  // "kColorCodedScaleHit", "kClusterHit" };
15 
16  DetectorHit(std::string name);
17  virtual ~DetectorHit();
18 
19  TEveElementList *GetTEveElementList() { return _EEList; };
20  std::unordered_map<std::string, TEveGeoShape *> *GetTEveGeoShapeMap() { return &_EGSMap; };
21 
22  void SetDisplayType(hitType type) { _type = type; };
23  void SetThreshold(float threshold) { _threshold = threshold; };
24  void SetColor(Color_t color) { _color = color; };
25 
26  hitType GetType() { return _type; };
27  float GetThreshold() { return _threshold; };
28  Color_t GetColor() { return _color; };
29  VPalette *GetPalette() { return _Palette; };
30 
31 private:
32  std::string _name;
33  float _threshold;
34  hitType _type;
35  Color_t _color;
36 
37  TEveElementList *_EEList;
38  std::unordered_map<std::string, TEveGeoShape *> _EGSMap;
39  VPalette *_Palette;
40 };
41 
42 #endif