source: trunk/Mars/mtrigger/MTriggerLiveTime.h@ 18151

Last change on this file since 18151 was 4971, checked in by stamerra, 20 years ago
*** empty log message ***
File size: 982 bytes
Line 
1#ifndef MARS_MTriggerLiveTime
2#define MARS_MTriggerLiveTime
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayL
9#include <TArrayL.h>
10#endif
11
12class MTriggerLiveTime : public MParContainer
13{
14 friend class MReportTrigger;
15
16private:
17 static const Int_t gsNScalers=5; // number of scalers
18
19 TArrayL fLiveTime; // Array with the livetime
20 TArrayL fDeadTime; // Array with the deadtime
21
22public:
23 MTriggerLiveTime() : fLiveTime(gsNScalers), fDeadTime(gsNScalers)
24 {
25 fName = "MTriggerLiveTime";
26 fTitle = "Container for the Live-deadtime ";
27 }
28
29 TArrayL GetLiveTime() const { return fLiveTime; }
30 TArrayL GetDeadTime() const { return fDeadTime; }
31
32 // !FIX ME! Only live time is returned...
33 Double_t operator[](const Int_t idx)
34 {
35 if (idx > gsNScalers)
36 return -1;
37
38 return fLiveTime[idx];
39 }
40
41 ClassDef(MTriggerLiveTime, 1) // Container for the Live-Deadtime
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.