CMS 3D CMS Logo

HLTTauRelvalQTester.cc
Go to the documentation of this file.
2 //#include "DataFormats/Math/interface/LorentzVector.h"
3 
5  refMothers_ = consumes<std::vector<int>>(ps.getParameter<edm::InputTag>("refMothers"));
6  mothers_ = ps.getParameter<std::vector<int>>("mothers");
7  runQTests = false;
8 }
9 
11 
13  edm::Handle<std::vector<int>> refMothers;
14  if (e.getByToken(refMothers_, refMothers))
15  for (unsigned int i = 0; i < refMothers->size(); ++i) {
16  int mother = (*refMothers)[i];
17  for (unsigned int j = 0; j < mothers_.size(); ++j) {
18  if (mothers_[j] == mother)
19  runQTests = true;
20  }
21 
22  if (runQTests) {
24  }
25  }
26 }
27 
30 }
31 
33 
T getParameter(std::string const &) const
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
perform the actual quality tests
std::vector< int > mothers_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
perform the actual quality tests
edm::EDGetTokenT< std::vector< int > > refMothers_
void endJob() override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void endRun(const edm::Run &r, const edm::EventSetup &c) override
HLTTauRelvalQTester(const edm::ParameterSet &ps)
void endRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: Run.h:45