source: trunk/MagicSoft/Mars/mtemp/mpisa/classes/MTriggerBit.h@ 4671

Last change on this file since 4671 was 4157, checked in by stamerra, 21 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MTriggerBit
2#define MARS_MTriggerBit
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 MTriggerBit : public MParContainer, public MCamEvent
16{
17 friend class MReportTrigger;
18
19private:
20 Byte_t fStatus; // Monitor of the L2T status
21
22 Int_t gsNBits=16; // number of output bits
23
24 TArrayL fBit; // Array with the prescaling factors
25
26public:
27 MTriggerBit() : fBit(gsNBits)
28 {
29 fName = "MTriggerBit";
30 fTitle = "Container for the L2 output bits rates ";
31 }
32
33 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
34 {
35 if (idx > gsNBits)
36 return kFALSE;
37
38 val = fBit[idx];
39
40 return val>0;
41 }
42
43 Double_t operator[](const UInt_t idx)
44 {
45 if (idx > gsNBits)
46 return kFALSE;
47
48 return fBit[idx];
49 }
50
51 void DrawPixelContent(Int_t num) const
52 {
53 }
54
55 ClassDef(MTriggerBit, 1) // Container for the L2 output bits rates
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.