Line | |
---|
1 | #ifndef MARS_MTriggerBit
|
---|
2 | #define MARS_MTriggerBit
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayF
|
---|
9 | #include <TArrayF.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MTriggerBit : public MParContainer
|
---|
13 | {
|
---|
14 | friend class MReportTrigger;
|
---|
15 |
|
---|
16 | private:
|
---|
17 |
|
---|
18 | static const Int_t gsNBits=20; // number of output bits
|
---|
19 |
|
---|
20 | TArrayF fBit; // Array with the output bit rates
|
---|
21 |
|
---|
22 | public:
|
---|
23 | MTriggerBit() : fBit(gsNBits)
|
---|
24 | {
|
---|
25 | fName = "MTriggerBit";
|
---|
26 | fTitle = "Container for the L2 output bits rates ";
|
---|
27 | }
|
---|
28 |
|
---|
29 | TArrayF GetTriggerBit() const { return fBit; }
|
---|
30 |
|
---|
31 | Double_t operator[](const Int_t idx)
|
---|
32 | {
|
---|
33 | if (idx > gsNBits)
|
---|
34 | return kFALSE;
|
---|
35 |
|
---|
36 | return fBit[idx];
|
---|
37 | }
|
---|
38 |
|
---|
39 | ClassDef(MTriggerBit, 1) // Container for the L2 output bits rates
|
---|
40 | };
|
---|
41 |
|
---|
42 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.