CMS 3D CMS Logo

HLTTauRelvalQTester.cc
Go to the documentation of this file.
2 //#include "DataFormats/Math/interface/LorentzVector.h"
3 
4 
5 
6 
9 {
10  refMothers_ = consumes<std::vector<int> >(ps.getParameter<edm::InputTag >("refMothers"));
11  mothers_ = ps.getParameter<std::vector<int> >("mothers");
12  runQTests = false;
13 }
14 
16 {
17 
18 }
19 
20 
21 
22 void
24 {
25  edm::Handle<std::vector<int> > refMothers;
26  if(e.getByToken(refMothers_,refMothers))
27  for(unsigned int i=0;i<refMothers->size();++i)
28  {
29  int mother = (*refMothers)[i];
30  for(unsigned int j=0;j<mothers_.size();++j)
31  {
32  if(mothers_[j]==mother)
33  runQTests = true;
34  }
35 
36  if(runQTests)
37  {
39  }
40  }
41 }
42 
43 void
45 {
47 
48 }
49 
50 
51 void
53 {
55 
56 }
57 
58 
59 void
61 {
63 
64 }
65 
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:579
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:44