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 // 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 }
edm
HLT enums.
Definition: AlignableModifier.h:19
SiStripCommissioningBasicPrescaler::factor_
uint32_t factor_
Definition: SiStripCommissioningBasicPrescaler.h:32
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
SiStripCommissioningBasicPrescaler(const edm::ParameterSet &)
Definition: SiStripCommissioningBasicPrescaler.cc:28
edm::ParameterSet
Definition: ParameterSet.h:36
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
SiStripCommissioningBasicPrescaler::filter
bool filter(edm::Event &, const edm::EventSetup &) override
Definition: SiStripCommissioningBasicPrescaler.cc:38
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SiStripCommissioningBasicPrescaler.h
mps_fire.result
result
Definition: mps_fire.py:303
edm::Event
Definition: Event.h:73