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 // $Id: SiStripCommissioningBasicPrescaler.cc,v 1.1 2008/10/22 10:44:25 delaer Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
26 
27 //
28 // constructors and destructor
29 //
31 {
32  //now do what ever initialization is needed
33  factor_ = iConfig.getParameter<uint32_t>( "ScaleFactor" ) ;
34 }
35 
36 //
37 // member functions
38 //
39 
40 // ------------ method called on each new Event ------------
41 bool
43 {
44  using namespace edm;
45  bool result = ((iEvent.id().event()%factor_)==0);
46  return result;
47 }
48 
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:44
int iEvent
Definition: GenABIO.cc:243
tuple result
Definition: query.py:137
virtual bool filter(edm::Event &, const edm::EventSetup &)
edm::EventID id() const
Definition: EventBase.h:56