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 #include <vector>
22 
23 // user include files
30 
31 //
32 // class declaration
33 //
34 
36 public:
38  ~SiStripCommissioningBasicPrescaler() override = default;
39 
40 private:
41  bool filter(edm::Event&, const edm::EventSetup&) override;
42 
43  // ----------member data ---------------------------
44  uint32_t factor_;
45 };
46 
47 //
48 // constructors and destructor
49 //
51  //now do what ever initialization is needed
52  factor_ = iConfig.getParameter<uint32_t>("ScaleFactor");
53 }
54 
55 //
56 // member functions
57 //
58 
59 // ------------ method called on each new Event ------------
61  using namespace edm;
62  bool result = ((iEvent.id().event() % factor_) == 0);
63  return result;
64 }
65 
EventNumber_t event() const
Definition: EventID.h:40
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
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
~SiStripCommissioningBasicPrescaler() override=default
bool filter(edm::Event &, const edm::EventSetup &) override