CMS 3D CMS Logo

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 
15 
17  using namespace edm;
18 
20  iSetup.get<SiStripDetVOffRcd>().get(detVOff);
21 
22  // std::cout << "detVOff->getHVoffCounts() = " << detVOff->getHVoffCounts() << " < " << minModulesWithHVoff_;
23  if (detVOff->getHVoffCounts() > minModulesWithHVoff_) {
24  // std::cout << " skipping event" << std::endl;
25  return false;
26  }
27  // cout << " keeping event" << endl;
28  return true;
29 }
30 
31 // ------------ method called once each job just before starting event loop ------------
33 
34 // ------------ method called once each job just after ending the event loop ------------
int iEvent
Definition: GenABIO.cc:224
~FilterTrackerOn() override
bool filter(edm::Event &, const edm::EventSetup &) override
int getHVoffCounts() const
Returns the total number of modules with HV off.
FilterTrackerOn(const edm::ParameterSet &)
HLT enums.
T get() const
Definition: EventSetup.h:71
void endJob() override
void beginJob() override