Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EventDispUI.h
Go to the documentation of this file.
1 #ifndef _EVENT_DISP_UI__H_
2 #define _EVENT_DISP_UI__H_
3 #include <vector>
4 class TGMainFrame;
5 class TGCompositeFrame;
6 class TGHorizontalFrame;
7 class TGTextButton;
8 class TGRadioButton;
9 class TGLabel;
10 class TGNumberEntry;
11 
12 class EventDispUI {
13  static const int RUN_MIN = 1000; //< Min of search range
14  static const int RUN_MAX = 4000; //< Max of search range
15  typedef std::vector<int> RunList_t;
16  RunList_t m_list_run;
17 
18  int m_run;
19  int m_n_evt;
20  int m_i_evt;
21 
22  TGMainFrame* m_fr_main;
23  TGCompositeFrame* m_fr_menu;
24  TGCompositeFrame* m_fr_evt_mode;
25  TGCompositeFrame* m_fr_evt_sel;
26  TGCompositeFrame* m_fr_evt_next;
27  TGCompositeFrame* m_fr_evt_prev;
28 
29  TGLabel* m_lbl_mode;
30  TGLabel* m_lbl_run;
31  TGLabel* m_lbl_n_evt;
32  TGNumberEntry *m_ne_evt_id;
33  TGNumberEntry *m_ne_trig;
34 
35  bool m_online_mode;
36  bool m_auto_mode;
37  pthread_t m_tid1;
38 
39  public:
40  EventDispUI();
42 
43  std::string GetDstPath(const int run);
44  bool FindNewRuns();
45 
46  int FetchNumEvents(const int run);
47  int OpenRunFile(const int run);
48  void NextEvent();
49  void PrevEvent();
50  void MoveEvent(const int i_evt);
51  void ReqEvtID();
52  void ReqTrig();
53  void ViewTop ();
54  void ViewSide();
55  void View3D ();
56  void UpdateLabels();
57  void SetAutoMode(bool value);
58  void Init(const bool online_mode);
59  void Run();
60 
61  protected:
62  void BuildInterface();
63  void UpdateInterface();
64 
65  static void* FuncNewEventCheck(void* arg);
66  void ExecNewEventCheck();
67 };
68 
69 #endif /* _EVENT_DISP_UI__H_ */
void SetAutoMode(bool value)
void ReqEvtID()
void NextEvent()
Definition: EventDispUI.cxx:83
void UpdateLabels()
void UpdateInterface()
int run(const int nEvents=1)
Definition: run.C:10
void BuildInterface()
void ExecNewEventCheck()
bool FindNewRuns()
Definition: EventDispUI.cxx:47
std::string GetDstPath(const int run)
Definition: EventDispUI.cxx:42
void ViewTop()
int FetchNumEvents(const int run)
Definition: EventDispUI.cxx:60
static void * FuncNewEventCheck(void *arg)
void Init(const bool online_mode)
int OpenRunFile(const int run)
Definition: EventDispUI.cxx:72
void PrevEvent()
void ReqTrig()
void ViewSide()
void MoveEvent(const int i_evt)