source: branches/Corsika7405Compatibility/mtrigger/MTriggerCell.h@ 18558

Last change on this file since 18558 was 4971, checked in by stamerra, 20 years ago
*** empty log message ***
File size: 951 bytes
Line 
1#ifndef MARS_MTriggerCell
2#define MARS_MTriggerCell
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayF
9#include <TArrayF.h>
10#endif
11
12class MTriggerCell : public MParContainer
13{
14 friend class MReportTrigger;
15private:
16 static const Int_t gsNCells=32; //Number of fields with cell rates
17 // 19 cells and 12 dummy
18
19 TArrayF fCellRate; // Array of the measured L1 cell rates
20
21public:
22 MTriggerCell() : fCellRate(gsNCells)
23 {
24 fName = "MTriggerCell";
25 fTitle = "Container for the measured cell rates";
26 }
27
28 Float_t GetMean() const { return fCellRate.GetSum()/fCellRate.GetSize(); }
29
30 TArrayF GetCellRate() const { return fCellRate; }
31
32 Double_t operator[](const Int_t idx)
33 {
34 if (idx > gsNCells)
35 return kFALSE;
36
37 return fCellRate[idx];
38 }
39
40
41 ClassDef(MTriggerCell, 1) // Container for the trigger cell rates
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.