Line | |
---|
1 | #ifndef MARS_MTriggerPrescFact
|
---|
2 | #define MARS_MTriggerPrescFact
|
---|
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 |
|
---|
15 | class MTriggerPrescFact : public MParContainer, public MCamEvent
|
---|
16 | {
|
---|
17 | friend class MReportTrigger;
|
---|
18 |
|
---|
19 | private:
|
---|
20 | Byte_t fStatus; // Monitor of the L2T status
|
---|
21 |
|
---|
22 | Int_t gsNPrescFacts=8; // number of factors
|
---|
23 |
|
---|
24 | TArrayL fPrescFact; // Array with the prescaling factors
|
---|
25 |
|
---|
26 | public:
|
---|
27 | MTriggerPrescFact() : fPrescFact(gsNPrescFacts)
|
---|
28 | {
|
---|
29 | fName = "MTriggerPrescFact";
|
---|
30 | fTitle = "Container for the L2 Prescaling Factors ";
|
---|
31 | }
|
---|
32 |
|
---|
33 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
|
---|
34 | {
|
---|
35 | if (idx > gsNPrescFacts)
|
---|
36 | return kFALSE;
|
---|
37 |
|
---|
38 | val = fPrescFact[idx];
|
---|
39 |
|
---|
40 | return val>0;
|
---|
41 | }
|
---|
42 |
|
---|
43 | Double_t operator[](const UInt_t idx)
|
---|
44 | {
|
---|
45 | if (idx > gsNPrescFacts)
|
---|
46 | return kFALSE;
|
---|
47 |
|
---|
48 | return fPrescFact[idx];
|
---|
49 | }
|
---|
50 |
|
---|
51 | void DrawPixelContent(Int_t num) const
|
---|
52 | {
|
---|
53 | }
|
---|
54 |
|
---|
55 | ClassDef(MTriggerPrescFact, 1) // Container for the L2 Prescaling Factors
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.