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

Last change on this file since 5138 was 4196, checked in by stamerra, 21 years ago
*** empty log message ***
File size: 1.1 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 TArrayL fIPR; // [Hz] IPR (Individual Pixel Rates)
20
21 static const Int_t gsNTrigPix=397; // number of trigger pixels
22
23public:
24 MTriggerIPR() : fIPR(gsNTrigPix)
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 if (idx > gsNTrigPix)
35 return kFALSE;
36
37 val = fIPR[idx];
38 return val>0;
39 }
40
41 Double_t operator[](const Int_t idx)
42 {
43 if (idx > gsNTrigPix)
44 return kFALSE;
45
46 return fIPR[idx];
47 }
48
49 void DrawPixelContent(Int_t num) const
50 {
51 }
52
53 ClassDef(MTriggerIPR, 1) // Container for the Individual Pixel Rate (IPR)
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.