source: trunk/MagicSoft/Mars/mreport/MReportTrigger.h@ 4651

Last change on this file since 4651 was 4575, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MReportTrigger
2#define MARS_MReportTrigger
3
4#ifndef MARS_MReport
5#include "MReport.h"
6#endif
7#ifndef MARS_MCamEvent
8#include "MCamEvent.h"
9#endif
10
11#ifndef ROOT_TArrayF
12#include <TArrayF.h>
13#endif
14
15class MReportTrigger : public MReport, public MCamEvent
16{
17private:
18 Float_t fL2BeforePrescaler; // L2 trigger rate before prescaler
19 Float_t fL2AfterPrescaler; // L2 trigger rate after prescaler
20
21 TArrayF fPrescalerRates; //[Hz] L2 prescaler rates
22 //TArrayF fRates; //[Hz] currently undefined
23
24 Int_t InterpreteBody(TString &str, Int_t ver);
25
26public:
27 MReportTrigger();
28
29 Float_t GetL2BeforePrescaler() const { return fL2BeforePrescaler; }
30 Float_t GetL2AfterPrescaler() const { return fL2AfterPrescaler; }
31
32 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
33 {
34 if(idx>18)
35 return kFALSE;
36
37 val = fPrescalerRates[idx];
38 return kTRUE;
39 }
40
41 void DrawPixelContent(Int_t num) const
42 {
43 }
44
45 ClassDef(MReportTrigger, 1) // Class for TRIGGER-REPORT information
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.