CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FilterTrackerOn.cc
Go to the documentation of this file.
2 
7 
8 #include <iostream>
9 #include <algorithm>
10 
12  minModulesWithHVoff_(iConfig.getParameter<int>("MinModulesWithHVoff"))
13 {
14 }
15 
17 {
18 }
19 
21 {
22  using namespace edm;
23 
25  iSetup.get<SiStripDetVOffRcd>().get( detVOff );
26 
27  // std::cout << "detVOff->getHVoffCounts() = " << detVOff->getHVoffCounts() << " < " << minModulesWithHVoff_;
28  if( detVOff->getHVoffCounts() > minModulesWithHVoff_ ) {
29  // std::cout << " skipping event" << std::endl;
30  return false;
31  }
32  // cout << " keeping event" << endl;
33  return true;
34 }
35 
36 // ------------ method called once each job just before starting event loop ------------
38 {
39 }
40 
41 // ------------ method called once each job just after ending the event loop ------------
43 {
44 }
virtual void beginJob()
int iEvent
Definition: GenABIO.cc:243
FilterTrackerOn(const edm::ParameterSet &)
virtual void endJob()
const T & get() const
Definition: EventSetup.h:55
virtual bool filter(edm::Event &, const edm::EventSetup &)