13 #include <unordered_map>
15 #include "TEveGeoNode.h"
16 #include "TEveManager.h"
17 #include "TEveTrack.h"
19 #include "TGFileDialog.h"
20 #include "TGLAnnotation.h"
22 #include "TGNumberEntry.h"
23 #include "TGProgressBar.h"
25 #include "TGTextEntry.h"
27 #include "application/event/GGSFileManager.h"
28 #include "application/gui/DetectorHit.h"
29 #include "application/gui/VPalette.h"
31 #ifndef _EDMAINWINDOW_
32 #define _EDMAINWINDOW_
34 typedef std::unordered_map<std::string, TEveGeoShape *>::iterator UOMIterator;
39 MainWindow(UInt_t w = _defWidth, UInt_t h = _defHeight);
42 void GenerateHashTable(TEveGeoNode *list);
43 void MakeTransparentScene(
int transp);
46 void SetEventNumber(UInt_t evt);
47 void UpdateFileEntries();
48 void SetFileName(TString filename);
49 void SpawnFileDialog();
51 void SetDisplayDetector(TString det, Bool_t s);
52 void SetDetectorHitType(TString det, DetectorHit::hitType type);
53 void SetDetectorHitThreshold(TString det, Float_t thr);
54 void SetDetectorHitColor(TString det, Color_t col);
55 void SetDisplayPartHits(Bool_t s);
57 DetectorHit::hitType GetDetectorHitType(TString det) {
return _DetectorHitMap[det.Data()]->GetType(); };
58 float GetDetectorHitThreshold(TString det) {
return _DetectorHitMap[det.Data()]->GetThreshold(); };
59 Color_t GetDetectorHitColor(TString det) {
return _DetectorHitMap[det.Data()]->GetColor(); };
62 void AddHitControls();
72 static const int _defWidth;
73 static const int _defHeight;
74 static const Option_t *_defOpt;
76 TEvePointSet *_PSDPointSet;
77 TEvePointSet *_DEBUGPointSet;
78 TEveElementList *_MCTruthList;
79 TEveElementList *_MCPartHitList;
80 TGLAnnotation *_MCTruthShortInfo;
82 std::unordered_map<std::string, TEveGeoNode *> _TEveGeoNodeMap;
83 std::unordered_map<std::string, TEveGeoShape *> _TEveGeoShapeMap_World;
85 std::unordered_map<std::string, DetectorHit *> _DetectorHitMap;
87 TGMainFrame *_frmMain;
88 TGVerticalFrame *_frmMainVertical;
89 TGHorizontalFrame *_evNumbersFrame;
90 TGNumberEntryField *_evField;
92 TGTextEntry *_fileField;
93 TGHProgressBar *_progressBar;
Class for reading output of GGSHitsAction.
Class for reading output of GGSMCTruthAction.