CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
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
tuple result
Definition: mps_fire.py:95
int iEvent
Definition: GenABIO.cc:230
edm::EventID id() const
Definition: EventBase.h:59
virtual bool filter(edm::Event &, const edm::EventSetup &) override