CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTPrescaler.h
Go to the documentation of this file.
1 #ifndef HLTPrescaler_H
2 #define HLTPrescaler_H
3 
19 
20 
21 class HLTPrescaler : public HLTFilter
22 {
23 public:
24  //
25  // construction/destruction
26  //
27  explicit HLTPrescaler(edm::ParameterSet const& iConfig);
28  virtual ~HLTPrescaler();
29 
30 
31  //
32  // member functions
33  //
35  edm::EventSetup const& iSetup);
36  virtual bool filter(edm::Event& iEvent,edm::EventSetup const& iSetup);
37  virtual void endJob();
38 
39 
40 private:
41  //
42  //member data
43  //
44 
46  unsigned int prescaleFactor_;
47 
49  unsigned int eventCount_;
50 
52  unsigned int acceptCount_;
53 
55  unsigned int offsetCount_;
56  unsigned int offsetPhase_;
57 
60 
62  bool newLumi_;
63 
66 
68  static const
69  unsigned int prescaleSeed_;
70 
71 };
72 
73 #endif
virtual ~HLTPrescaler()
Definition: HLTPrescaler.cc:46
edm::InputTag gtDigi_
GT payload, to extract the prescale column index.
Definition: HLTPrescaler.h:65
edm::service::PrescaleService * prescaleService_
prescale service
Definition: HLTPrescaler.h:59
virtual void endJob()
static const unsigned int prescaleSeed_
"seed" used to initialize the prescale counter
Definition: HLTPrescaler.h:69
unsigned int acceptCount_
accept counter
Definition: HLTPrescaler.h:52
int iEvent
Definition: GenABIO.cc:243
virtual bool beginLuminosityBlock(edm::LuminosityBlock &lb, edm::EventSetup const &iSetup)
Definition: HLTPrescaler.cc:57
unsigned int eventCount_
event counter
Definition: HLTPrescaler.h:49
bool newLumi_
check for (re)initialization of the prescale
Definition: HLTPrescaler.h:62
unsigned int offsetPhase_
Definition: HLTPrescaler.h:56
HLTPrescaler(edm::ParameterSet const &iConfig)
Definition: HLTPrescaler.cc:29
unsigned int offsetCount_
initial offset
Definition: HLTPrescaler.h:55
virtual bool filter(edm::Event &iEvent, edm::EventSetup const &iSetup)
Definition: HLTPrescaler.cc:67
unsigned int prescaleFactor_
accept one in prescaleFactor_; 0 means never to accept an event
Definition: HLTPrescaler.h:46