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_TArrayF
|
---|
12 | #include <TArrayF.h>
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | class MTriggerBit : public MParContainer, public MCamEvent
|
---|
16 | {
|
---|
17 | friend class MReportTrigger;
|
---|
18 |
|
---|
19 | private:
|
---|
20 |
|
---|
21 | static const Int_t gsNBits=20; // number of output bits
|
---|
22 |
|
---|
23 | TArrayF fBit; // Array with the output bit rates
|
---|
24 |
|
---|
25 | public:
|
---|
26 | MTriggerBit() : fBit(gsNBits)
|
---|
27 | {
|
---|
28 | fName = "MTriggerBit";
|
---|
29 | fTitle = "Container for the L2 output bits rates ";
|
---|
30 | }
|
---|
31 |
|
---|
32 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
|
---|
33 | {
|
---|
34 | if (idx > gsNBits)
|
---|
35 | return kFALSE;
|
---|
36 |
|
---|
37 | val = fBit[idx];
|
---|
38 |
|
---|
39 | return val>0;
|
---|
40 | }
|
---|
41 |
|
---|
42 | Double_t operator[](const Int_t idx)
|
---|
43 | {
|
---|
44 | if (idx > gsNBits)
|
---|
45 | return kFALSE;
|
---|
46 |
|
---|
47 | return fBit[idx];
|
---|
48 | }
|
---|
49 |
|
---|
50 | void DrawPixelContent(Int_t num) const
|
---|
51 | {
|
---|
52 | }
|
---|
53 |
|
---|
54 | ClassDef(MTriggerBit, 1) // Container for the L2 output bits rates
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.