source: trunk/MagicSoft/Mars/mtemp/mpisa/classes/MTriggerLiveTime.h@ 6724

Last change on this file since 6724 was 4157, checked in by stamerra, 21 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MTriggerLiveTime
2#define MARS_MTriggerLiveTime
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7#ifndef MARS_MParContainer
8#include "MParContainer.h"
9#endif
10
11#ifndef ROOT_TArrayL
12#include <TArrayL.h>
13#endif
14
15class MTriggerLiveTime : public MParContainer, public MCamEvent
16{
17 friend class MReportTrigger;
18
19private:
20 Byte_t fStatus; // Monitor of the L2T status
21
22 Int_t gsNScalers=5; // number of scalers
23
24 TArrayL fLiveTime; // Array with the livetime
25 TArrayL fDeadTime; // Array with the deadtime
26
27public:
28 MTriggerLiveTime() : fLiveTime(gsNScalers)
29 {
30 fName = "MTriggerLiveTime";
31 fTitle = "Container for the Live-deadtime ";
32 }
33
34 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
35 {
36 if (idx > gsNScalers)
37 return kFALSE;
38
39 val = fLiveTime[idx];
40
41 return val>0;
42 }
43
44 Double_t operator[](const UInt_t idx)
45 {
46 Double_t val=0;
47
48 return GetPixelContent(&val, idx)>0? val: -1;
49 }
50
51 void DrawPixelContent(Int_t num) const
52 {
53 }
54
55 ClassDef(MTriggerLiveTime, 1) // Container for the Live-Deadtime
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.