GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
DetectorHit.cpp
1 #include <unordered_map>
2 
3 #include "application/gui/DetectorHit.h"
4 #include "utils/GGSSmartLog.h"
5 
6 std::string DetectorHit::hitTypeNames[DetectorHit::kHitTypeN] = {"Full", "Transparent", "Color coded",
7  "Color coded and scaled", "Point"};
8 
9 DetectorHit::DetectorHit(std::string name) : _name(name), _threshold(0), _type(kOpacityHit), _color(kRed) {
10 
11  std::string fullname = name;
12  name += " shapes";
13 
14  _EEList = new TEveElementList(fullname.c_str());
15  _Palette = new VPalette();
16 }
17 
18 DetectorHit::~DetectorHit() { _EGSMap.clear(); }