-
Notifications
You must be signed in to change notification settings - Fork 0
/
TigMidasHandler.h
58 lines (47 loc) · 1.27 KB
/
TigMidasHandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// part of TigSortGUI
// author: Ulrike Hager
#ifndef TIGMIDASHANDLER_H
#define TIGMIDASHANDLER_H
class TigMidasHandler;
#include <TMidasEvent.h>
#include <TMidasFile.h>
#include <XmlOdb.h>
/* #ifdef OLD_SERVER */
/* #include <midasServer.h> */
/* #endif */
/* #ifdef HAVE_LIBNETDIRECTORY */
/* #include <libNetDirectory/netDirectoryServer.h> */
/* #endif */
#include <TSystem.h>
#include <TROOT.h>
#include <TTimer.h>
class TigManager;
class TigMidasHandler
{
// RQ_OBJECT("TigMidasHandler")
public:
TigMidasHandler(TigManager *pParent);
virtual ~TigMidasHandler() {
CloseMidasFile();
}
void CloseMidasFile();
void EventHandler(const void *pheader,const void *pdata,int size);
int OpenMidasFile(const char*fname);
int ProcessMidasFile(const char*fname, int eventCutoff);
int RunNumber() {return mRunNumber;}
void SetGuiInterval(int time){mGuiInterval = time;}
void SetHistoUpdateInterval(int time){mHistoUpdateInterval = time;}
void Update();
protected:
VirtualOdb *mOdb;
TigManager *mParent;
void HandleMidasEvent(TMidasEvent& pEvent);
TMidasFile *mFile;
int mRunNumber;
int mGuiInterval;
int mHistoUpdateInterval;
private:
TigMidasHandler( const TigMidasHandler& );
TigMidasHandler& operator=( const TigMidasHandler& );
};
#endif