Go to the documentation of this file. 1 #ifndef TtSemiLepHypothesis_h
2 #define TtSemiLepHypothesis_h
64 std::vector<int>& jetPartonAssociation);
85 const edm::Handle<std::vector<pat::MET> >& neutrino,
87 std::vector<int>& jetPartonAssociation,
88 const unsigned int iComb) = 0;
122 template <
typename C>
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
input label for all necessary collections
reco::CompositeCandidate hypo()
return event hypothesis
int key_
hypothesis key (to be set by the buildKey function)
int neutrinoSolutionType_
algorithm used to calculate neutrino solutions (see cfi for further details)
virtual void buildKey()=0
build the event hypothesis key
void setNeutrino(const edm::Handle< std::vector< pat::MET > > &met, const edm::Handle< edm::View< reco::RecoCandidate > > &leps, const int &idx, const int &type)
set neutrino, using mW = 80.4 to calculate the neutrino pz
void setCandidate(const edm::Handle< C > &handle, const int &idx, reco::ShallowClonePtrCandidate *&clone)
use one object in a collection to set a ShallowClonePtrCandidate
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
reco::ShallowClonePtrCandidate * leptonicB_
edm::EDGetTokenT< edm::View< reco::RecoCandidate > > lepsToken_
reco::ShallowClonePtrCandidate * lightQBar_
edm::EDGetTokenT< std::vector< std::vector< int > > > matchToken_
void produce(edm::Event &, const edm::EventSetup &) override
produce the event hypothesis as CompositeCandidate and Key
reco::ShallowClonePtrCandidate * lightQ_
~TtSemiLepHypothesis() override
default destructor
std::string jetCorrectionLevel(const std::string &quarkType)
helper function to construct the proper correction level string for corresponding quarkType
Container::value_type value_type
std::string jetCorrectionLevel_
reco::ShallowClonePtrCandidate * hadronicB_
edm::EDGetTokenT< std::vector< pat::MET > > metsToken_
reco::ShallowClonePtrCandidate * lepton_
edm::EDGetTokenT< int > nJetsConsideredToken_
TtSemiLepHypothesis(const edm::ParameterSet &)
default constructor
reco::ShallowClonePtrCandidate * neutrino_
int numberOfRealNeutrinoSolutions_
void buildHypo(const edm::Handle< edm::View< reco::RecoCandidate > > &leps, const edm::Handle< std::vector< pat::MET > > &mets, const edm::Handle< std::vector< pat::Jet > > &jets, std::vector< int > &jetPartonAssociation)
minimalistic build function for simple hypotheses
void resetCandidates()
reset candidate pointers before hypo build process
WDecay::LeptonType leptonType(const reco::RecoCandidate *cand)
determine lepton type of reco candidate and return a corresponding WDecay::LeptonType; the type is kN...
bool isValid(const int &idx, const edm::Handle< std::vector< pat::Jet > > &jets)
check if index is in valid range of selected jets