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