6 statusToken_ (consumes<std::vector<int> >(cfg.getParameter<edm::InputTag>(
"status" ))),
7 partonsHadPToken_(consumes<std::vector<pat::
Particle> >(cfg.getParameter<edm::InputTag>(
"partonsHadP"))),
8 partonsHadQToken_(consumes<std::vector<pat::
Particle> >(cfg.getParameter<edm::InputTag>(
"partonsHadQ"))),
9 partonsHadBToken_(consumes<std::vector<pat::
Particle> >(cfg.getParameter<edm::InputTag>(
"partonsHadB"))),
10 partonsLepBToken_(consumes<std::vector<pat::
Particle> >(cfg.getParameter<edm::InputTag>(
"partonsLepB"))),
11 leptonsToken_ (consumes<std::vector<pat::
Particle> >(cfg.getParameter<edm::InputTag>(
"leptons" ))),
12 neutrinosToken_ (consumes<std::vector<pat::
Particle> >(cfg.getParameter<edm::InputTag>(
"neutrinos" )))
23 std::vector<int>&
match,
const unsigned int iComb)
27 if( (*status)[iComb] != 0 ){
49 if( !( partonsHadP->empty() || partonsHadQ->empty() ||
50 partonsHadB->empty() || partonsLepB->empty() ) ) {
60 if( !leptons->empty() ){
68 if( !neutrinos->empty() ){
virtual void buildHypo(edm::Event &, const edm::Handle< edm::View< reco::RecoCandidate > > &, const edm::Handle< std::vector< pat::MET > > &, const edm::Handle< std::vector< pat::Jet > > &, std::vector< int > &, const unsigned int iComb)
build event hypothesis from the reco objects of a semi-leptonic event
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< std::vector< pat::Particle > > partonsHadPToken_
edm::EDGetTokenT< std::vector< int > > statusToken_
edm::EDGetTokenT< std::vector< pat::Particle > > leptonsToken_
reco::ShallowClonePtrCandidate * lepton_
reco::ShallowClonePtrCandidate * lightQBar_
TtSemiLepHypHitFit(const edm::ParameterSet &)
reco::ShallowClonePtrCandidate * neutrino_
edm::EDGetTokenT< std::vector< pat::Particle > > partonsHadQToken_
reco::ShallowClonePtrCandidate * hadronicB_
edm::EDGetTokenT< std::vector< pat::Particle > > partonsLepBToken_
edm::EDGetTokenT< std::vector< pat::Particle > > partonsHadBToken_
edm::EDGetTokenT< std::vector< pat::Particle > > neutrinosToken_
void setCandidate(const edm::Handle< C > &handle, const int &idx, reco::ShallowClonePtrCandidate *&clone)
use one object in a collection to set a ShallowClonePtrCandidate
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
reco::ShallowClonePtrCandidate * lightQ_
reco::ShallowClonePtrCandidate * leptonicB_