source: trunk/MagicSoft/Mars/mtemp/mifae/library/MLiveTimeCalc.h@ 5138

Last change on this file since 5138 was 4405, checked in by jlopez, 20 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MLiveTimeCalc
2#define MARS_MLiveTimeCalc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MTime
9#include "MTime.h"
10#endif
11
12class MRawRunHeader;
13class MRawEvtHeader;
14class MLiveTime;
15
16class MLiveTimeCalc : public MTask
17{
18 public:
19
20 const Double_t kSecTomSec;
21 const Double_t kDayToSec;
22
23 private:
24
25 MRawRunHeader* fRunHeader;
26 MRawEvtHeader* fEvtHeader;
27
28 MTime* fPresentEventTime;
29 MTime fLastEventTime;
30 MTime fPreaviusLastEventTime;
31
32 MLiveTime* fLiveTime;
33
34
35 UInt_t fNumberLostEvents[10];
36
37 Double_t fFirstEventMjd;
38 Double_t fPresentEventMjd;
39 Double_t fLastEventMjd;
40 Double_t fPreaviusLastEventMjd;
41
42 Int_t fPresentEventNumber;
43 Int_t fLastEventNumber;
44 Double_t fPreaviusLastEventNumber;
45
46 Int_t fPresentEventRunNumber;
47 Int_t fLastEventRunNumber;
48 Double_t fPreaviusLastEventRunNumber;
49
50 Double_t fRealTimeBinSize;
51
52 Bool_t fPrintNextEvent;
53
54 public:
55
56 MLiveTimeCalc(const char *name=NULL, const char *title=NULL);
57 //~MLiveTimeCalc;
58
59 Int_t PreProcess(MParList *pList);
60 Int_t Process();
61 Int_t PostProcess();
62
63 void SetRealTimeBinSize(Double_t time) { fRealTimeBinSize=time; }
64
65 Bool_t isTimeStampOk();
66 void Print(const Option_t *o) const;
67
68 ClassDef(MLiveTimeCalc, 0) // Task to compute the live time from real data
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.