source: trunk/MagicSoft/Mars/mtrigger/MTriggerPrescFact.h@ 4692

Last change on this file since 4692 was 4264, checked in by stamerra, 20 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MTriggerPrescFact
2#define MARS_MTriggerPrescFact
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 MTriggerPrescFact : public MParContainer, public MCamEvent
16{
17 friend class MReportTrigger;
18
19private:
20
21 static const Int_t gsNPrescFacts=8; // number of factors
22
23 TArrayL fPrescFact; // Array with the prescaling factors
24
25public:
26 MTriggerPrescFact() : fPrescFact(gsNPrescFacts)
27 {
28 fName = "MTriggerPrescFact";
29 fTitle = "Container for the L2 Prescaling Factors ";
30 }
31
32 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
33 {
34 if (idx > gsNPrescFacts)
35 return kFALSE;
36
37 val = fPrescFact[idx];
38
39 return val>0;
40 }
41
42 Double_t operator[](const Int_t idx)
43 {
44 if (idx > gsNPrescFacts)
45 return kFALSE;
46
47 return fPrescFact[idx];
48 }
49
50 void DrawPixelContent(Int_t num) const
51 {
52 }
53
54 ClassDef(MTriggerPrescFact, 1) // Container for the L2 Prescaling Factors
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.