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