]>
Commit | Line | Data |
---|---|---|
164d3d29 | 1 | // Author: Mihai Niculesu 2013 |
2 | ||
3 | /************************************************************************** | |
4 | * Copyright(c) 1998-2013, ALICE Experiment at CERN, all rights reserved. * | |
5 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
6 | * full copyright notice. * | |
7 | **************************************************************************/ | |
8 | ||
9 | #ifndef AliEventServerWindow_H | |
10 | #define AliEventServerWindow_H | |
11 | ||
12 | #include <TObject.h> | |
13 | #include <TString.h> | |
14 | #include <TGFrame.h> | |
15 | #include <TGLabel.h> | |
16 | ||
17 | class TGTextButton; | |
18 | class TGCheckButton; | |
19 | class TGListBox; | |
20 | ||
21 | class AliEventServerReconstruction; | |
22 | class AliDimIntNotifier; | |
23 | ||
24 | //______________________________________________________________________________ | |
25 | // Short description of AliEventServerWindow | |
26 | // | |
27 | ||
28 | class AliEventServerWindow : public TGMainFrame | |
29 | { | |
30 | public: | |
31 | enum TOOLBUTTON{ | |
32 | TOOLBUTTON_START=1, | |
33 | TOOLBUTTON_STOP, | |
34 | TOOLBUTTON_PREFERENCES, | |
82de8691 | 35 | TOOLBUTTON_EXIT, |
36 | TOOLBUTTON_FAKE | |
164d3d29 | 37 | }; |
38 | ||
39 | AliEventServerWindow(); | |
40 | virtual ~AliEventServerWindow(); | |
41 | ||
42 | //------------------------------------------------------- | |
43 | // Handlers of DIM signals. | |
44 | //------------------------------------------------------- | |
45 | ||
46 | void StartOfRun(Int_t run); | |
47 | void EndOfRun(Int_t run); | |
48 | ||
49 | //------------------------------------------------------- | |
50 | // Handlers of button signals. | |
51 | //------------------------------------------------------- | |
52 | void onStartServer(); | |
53 | void onStopServer(); | |
54 | void onExit(); | |
82de8691 | 55 | void onFake(); |
164d3d29 | 56 | |
57 | void HandleToolBarAction(Int_t id=-1); | |
58 | ||
59 | private: | |
60 | ||
61 | void InitDIMListeners(); | |
62 | void FillRunsFromDatabase(); | |
63 | void SetupToolbar(); | |
64 | ||
65 | void LaunchRecoServer(); | |
66 | void StartReco(Int_t run); | |
67 | bool StopRecoServer(); | |
68 | ||
69 | // GUI components. | |
70 | TGListBox *fRunList; // List-box for listing current runs. | |
71 | TGTextButton *fStartServButt; // Start server for selected run. | |
72 | TGTextButton *fStopServButt; // Close server for selected run. | |
73 | TGTextButton *fExitButt; // Close server and do Exit. | |
74 | ||
75 | // DIM interface. Could do without members and just leak them ... | |
76 | AliDimIntNotifier *fDimSORListener[5]; // DIM listeners for SOR. | |
77 | AliDimIntNotifier *fDimEORListener[5]; // DIM listeners for EOR. | |
78 | ||
79 | // server state & process management | |
80 | Int_t fRunRunning; // Run which is executed. | |
81 | AliEventServerReconstruction* fRecoServer; | |
82 | ||
83 | ||
84 | AliEventServerWindow(const AliEventServerWindow&); | |
85 | AliEventServerWindow& operator=(const AliEventServerWindow&); | |
86 | ClassDef(AliEventServerWindow, 0); | |
87 | }; | |
88 | ||
89 | #endif |