source: releases/Mars.2014.05.26/mtrigger/MTriggerPrescFact.h@ 18621

Last change on this file since 18621 was 4971, checked in by stamerra, 20 years ago
*** empty log message ***
File size: 865 bytes
Line 
1#ifndef MARS_MTriggerPrescFact
2#define MARS_MTriggerPrescFact
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayL
9#include <TArrayL.h>
10#endif
11
12class MTriggerPrescFact : public MParContainer
13{
14 friend class MReportTrigger;
15
16private:
17
18 static const Int_t gsNPrescFacts=8; // number of factors
19
20 TArrayL fPrescFact; // Array with the prescaling factors
21
22public:
23 MTriggerPrescFact() : fPrescFact(gsNPrescFacts)
24 {
25 fName = "MTriggerPrescFact";
26 fTitle = "Container for the L2 Prescaling Factors ";
27 }
28
29 TArrayL GetPrescFactors() const { return fPrescFact; }
30
31 Double_t operator[](const Int_t idx)
32 {
33 if (idx > gsNPrescFacts)
34 return kFALSE;
35
36 return fPrescFact[idx];
37 }
38
39 ClassDef(MTriggerPrescFact, 1) // Container for the L2 Prescaling Factors
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.