CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 // system include files
20 #include <memory>
21 
22 // user include files
24 
25 //
26 // constructors and destructor
27 //
29  //now do what ever initialization is needed
30  factor_ = iConfig.getParameter<uint32_t>("ScaleFactor");
31 }
32 
33 //
34 // member functions
35 //
36 
37 // ------------ method called on each new Event ------------
39  using namespace edm;
40  bool result = ((iEvent.id().event() % factor_) == 0);
41  return result;
42 }
EventNumber_t event() const
Definition: EventID.h:40
tuple result
Definition: mps_fire.py:311
int iEvent
Definition: GenABIO.cc:224
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EventID id() const
Definition: EventBase.h:59
bool filter(edm::Event &, const edm::EventSetup &) override