source: trunk/MagicSoft/Mars/mtemp/mpisa/classes/MTriggerIPR.h@ 4917

Last change on this file since 4917 was 4157, checked in by stamerra, 21 years ago
*** empty log message ***
File size: 1.2 KB
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
15class MTriggerIPR : public MParContainer, public MCamEvent
16{
17 friend class MReportTrigger;
18private:
19 Byte_t fStatus; // Monitor of the L2T status
20
21 TArrayL fIPR; // [Hz] IPR (Individual Pixel Rates)
22
23 Int_t gsNTrigPix=397; // number of trigger pixels
24
25public:
26 MTriggerIPR() : fIPR(gsNTrigPix)
27 {
28 fName = "MTriggerIPR";
29 fTitle = "Container for the Individual Pixel Rate (IPR)";
30 }
31
32 Float_t GetMean() const { return fIPR.GetSum()/fIPR.GetSize(); }
33
34 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
35 {
36 if (idx > gsNTrigPix)
37 return kFALSE;
38
39 val = fIPR[idx];
40 return val>0;
41 }
42
43 Double_t operator[](const UInt_t idx)
44 {
45 if (idx > gsNTrigPix)
46 return kFALSE;
47
48 return fIPR[idx];
49 }
50
51 void DrawPixelContent(Int_t num) const
52 {
53 }
54
55 ClassDef(MTriggerIPR, 1) // Container for the Individual Pixel Rate (IPR)
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.