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 #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 
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HLT enums.
~SiStripCommissioningBasicPrescaler() override=default
bool filter(edm::Event &, const edm::EventSetup &) override