Line | |
---|
1 | #ifndef MARS_MTriggerIPR
|
---|
2 | #define MARS_MTriggerIPR
|
---|
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 MTriggerIPR : public MParContainer, public MCamEvent
|
---|
16 | {
|
---|
17 | friend class MReportCamera;
|
---|
18 | private:
|
---|
19 | Byte_t fStatus; // Monitor of the L2T status
|
---|
20 |
|
---|
21 | TArrayL fIPR; // Array of the measured IPR
|
---|
22 |
|
---|
23 | public:
|
---|
24 | MTriggerIPR() : fIPR(397)
|
---|
25 | {
|
---|
26 | fName = "MTriggerIPR";
|
---|
27 | fTitle = "Container for the Individual Pixel Rate (IPR)";
|
---|
28 | }
|
---|
29 |
|
---|
30 | Float_t GetMean() const { return fIPR.GetSum()/fIPR.GetSize(); }
|
---|
31 |
|
---|
32 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
|
---|
33 | {
|
---|
34 | val = fIPR[idx];
|
---|
35 | return val>0;
|
---|
36 | }
|
---|
37 |
|
---|
38 | Double_t operator[](const UInt_t idx) { return fIPR[idx]; }
|
---|
39 |
|
---|
40 | void DrawPixelContent(Int_t num) const
|
---|
41 | {
|
---|
42 | }
|
---|
43 |
|
---|
44 | ClassDef(MTriggerIPR, 1) // Container for the Individual Pixel Rate (IPR)
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.