CMS 3D CMS Logo

SiStripCommissioningBasicPrescaler.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripCommissioningBasicPrescaler
4 // Class: SiStripCommissioningBasicPrescaler
5 //
13 //
14 // Original Author: Christophe DELAERE
15 // Created: Fri Jan 18 12:17:46 CET 2008
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
25 
26 //
27 // constructors and destructor
28 //
30 {
31  //now do what ever initialization is needed
32  factor_ = iConfig.getParameter<uint32_t>( "ScaleFactor" ) ;
33 }
34 
35 //
36 // member functions
37 //
38 
39 // ------------ method called on each new Event ------------
40 bool
42 {
43  using namespace edm;
44  bool result = ((iEvent.id().event()%factor_)==0);
45  return result;
46 }
47 
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:41
int iEvent
Definition: GenABIO.cc:224
edm::EventID id() const
Definition: EventBase.h:59
HLT enums.
bool filter(edm::Event &, const edm::EventSetup &) override