CMS 3D CMS Logo

TtFullLepHypGenMatch.h
Go to the documentation of this file.
1 #ifndef TtFullLepHypGenMatch_h
2 #define TtFullLepHypGenMatch_h
3 
6 
8 public:
10  ~TtFullLepHypGenMatch() override;
11 
12 private:
16  void buildHypo(edm::Event& evt,
17  const edm::Handle<std::vector<pat::Electron> >& elecs,
18  const edm::Handle<std::vector<pat::Muon> >& mus,
19  const edm::Handle<std::vector<pat::Jet> >& jets,
20  const edm::Handle<std::vector<pat::MET> >& mets,
21  std::vector<int>& match,
22  const unsigned int iComb) override;
23 
24  template <typename O>
25  int findMatchingLepton(const reco::GenParticle*, const edm::Handle<std::vector<O> >&);
26  void buildMatchingNeutrinos(edm::Event&, const edm::Handle<std::vector<pat::MET> >&);
27 
28 protected:
30 };
31 
32 #endif
int key_
hypothesis key (to be set by the buildKey function)
void buildHypo(edm::Event &evt, const edm::Handle< std::vector< pat::Electron > > &elecs, const edm::Handle< std::vector< pat::Muon > > &mus, const edm::Handle< std::vector< pat::Jet > > &jets, const edm::Handle< std::vector< pat::MET > > &mets, std::vector< int > &match, const unsigned int iComb) override
build event hypothesis from the reco objects of a semi-leptonic event
TtFullLepHypGenMatch(const edm::ParameterSet &)
void buildMatchingNeutrinos(edm::Event &, const edm::Handle< std::vector< pat::MET > > &)
void buildKey() override
build the event hypothesis key
edm::EDGetTokenT< TtGenEvent > genEvtToken_
int findMatchingLepton(const reco::GenParticle *, const edm::Handle< std::vector< O > > &)
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10