source: trunk/MagicSoft/Mars/mtemp/mpisa/classes/MTriggerCell.h@ 4705

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