BmnRoot
Loading...
Searching...
No Matches
MpdEventManagerEditor.h
Go to the documentation of this file.
1// Specialization of TGedEditor for proper update propagation to TEveManager
2
3#ifndef MPDEVENTMANAGEREDITOR_H
4#define MPDEVENTMANAGEREDITOR_H
5
6#include "MpdEventManager.h"
7
8#include "TGedFrame.h"
9#include "TGNumberEntry.h"
10#include "TGLabel.h"
11#include "TEveGValuators.h"
12
13#include "string"
14
17{
20 FairRootManager* fRootManager;
21 int iCurrentEvent;
22 bool isStreamSource;
23 bool isZDCRedraw;
24};
25
26// multithread functions
27void* RunOnlineDisplay(void* ptr);
28
29class MpdEventManagerEditor : public TGedFrame
30{
31 public:
32 MpdEventManagerEditor(const TGWindow* p = 0, Int_t width = 170, Int_t height = 30,
33 UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
35
36 virtual void Init();
37 void SetModel(TObject* obj) { fObject = obj; }
38
39 virtual void SelectEvent();
40 virtual void UpdateEvent();
41 virtual void SelectPDG();
42 void DoVizPri();
43 virtual void SetMinEnergyCut();
44 virtual void SetMaxEnergyCut();
45 virtual void SwitchBackground(Bool_t is_on);
46 virtual void SwitchTransparency(Bool_t is_on);
47 virtual void ShowGeometry(Bool_t is_show);
48 virtual void ShowMagnet(Bool_t is_show);
49 virtual void ShowMCPoints(Bool_t is_show);
50 virtual void ShowMCTracks(Bool_t is_show);
51 virtual void ShowRecoPoints(Bool_t is_show);
52 virtual void ShowRecoTracks(Bool_t is_show);
53
54 bool RedrawZDC(bool isFull = false, bool isRedraw = true);
56
57 int iThreadState;
58 void BlockUI();
59 void UnblockUI();
60
61 // event count
62 int iEventCount;
63 // true - using event data from DAQ stream; false - using event data from file
64 bool isStreamSource;
65
66 TGPictureButton* fSave;
67 // save screenshot of the EVE display
68 virtual void SaveImage();
69
70 // 'Update' button
71 TGTextButton* fUpdate;
72 // 'Current Event Number' textbox with spin buttons
73 TGNumberEntry* fCurrentEvent;
74 // 'Show Geometry' checkbox
75 TGCheckButton* fGeometry;
77
78 protected:
79 TObject* fObject;
81
82 TGLabel* fEventTime;
83 TGTextEntry* fCurrentPDGTextEntry;
84 string fCurrentPDGString;
85 TGCheckButton* fVizPri;
86 TEveGValuator* sliderMinEnergy, *sliderMaxEnergy;
87 TGHorizontalFrame* fGeometryFrame;
88 TGCheckButton* ShowMagnetButton;
89 // whether magnet volume was found to use the special checkbov for visibility
90 bool isMagnetFound;
91
92 private:
94 MpdEventManagerEditor& operator=(const MpdEventManagerEditor&) = delete;
95
96 ClassDef(MpdEventManagerEditor, 0);
97};
98
99#endif
virtual void ShowGeometry(Bool_t is_show)
MpdEventManager * fEventManager
virtual void ShowMagnet(Bool_t is_show)
virtual void ShowRecoTracks(Bool_t is_show)
void SetModel(TObject *obj)
virtual void SaveImage()
virtual void SelectPDG()
virtual void SwitchBackground(Bool_t is_on)
virtual void SwitchTransparency(Bool_t is_on)
virtual void UpdateEvent()
virtual void SelectEvent()
virtual void ShowRecoPoints(Bool_t is_show)
virtual void ShowMCPoints(Bool_t is_show)
bool RedrawZDC(bool isFull=false, bool isRedraw=true)
MpdEventManagerEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual void SetMaxEnergyCut()
virtual void SetMinEnergyCut()
virtual void Init()
virtual void ShowMCTracks(Bool_t is_show)
TGHorizontalFrame * fGeometryFrame
void * RunOnlineDisplay(void *ptr)
MpdEventManagerEditor * fManagerEditor