source: trunk/MagicSoft/Mars/mtrigger/MTriggerBit.h@ 9474

Last change on this file since 9474 was 4971, checked in by stamerra, 20 years ago
*** empty log message ***
File size: 781 bytes
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
12class MTriggerBit : public MParContainer
13{
14 friend class MReportTrigger;
15
16private:
17
18 static const Int_t gsNBits=20; // number of output bits
19
20 TArrayF fBit; // Array with the output bit rates
21
22public:
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.