Class derived from the TtEvent for the full leptonic decay channel. More...
#include "AnalysisDataFormats/TopObjects/interface/TtFullLeptonicEvent.h"
Public Member Functions | |
const reco::Candidate * | b (const std::string &key, const unsigned &cmb=0) const |
get b of the given hypothesis More... | |
const reco::Candidate * | b (const HypoClassKey &key, const unsigned &cmb=0) const |
get b of the given hypothesis More... | |
const reco::Candidate * | bBar (const std::string &key, const unsigned &cmb=0) const |
get anti-b of the given hypothesis More... | |
const reco::Candidate * | bBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get anti-b of the given hypothesis More... | |
const reco::GenParticle * | genB () const |
get b of the TtGenEvent More... | |
const reco::GenParticle * | genBBar () const |
get anti-b of the TtGenEvent More... | |
const reco::GenParticle * | genLepton () const |
get lepton of the TtGenEvent More... | |
const reco::GenParticle * | genLeptonBar () const |
get anti-lepton of the TtGenEvent More... | |
const reco::GenParticle * | genNeutrino () const |
get neutrino of the TtGenEvent More... | |
const reco::GenParticle * | genNeutrinoBar () const |
get anti-neutrino of the TtGenEvent More... | |
const reco::GenParticle * | genTop () const |
get top of the TtGenEvent More... | |
const reco::GenParticle * | genTopBar () const |
get anti-top of the TtGenEvent More... | |
const reco::GenParticle * | genWMinus () const |
get Wminus of the TtGenEvent More... | |
const reco::GenParticle * | genWPlus () const |
get Wplus of the TtGenEvent More... | |
bool | isWrongCharge () const |
return if the kinematic solution of hypothesis 'cmb' is right or wrong charge if available; -1 else More... | |
const reco::Candidate * | lepton (const std::string &key, const unsigned &cmb=0) const |
get lepton of the given hypothesis More... | |
const reco::Candidate * | lepton (const HypoClassKey &key, const unsigned &cmb=0) const |
get lepton of the given hypothesis More... | |
const reco::Candidate * | leptonBar (const std::string &key, const unsigned &cmb=0) const |
get anti-lepton of the given hypothesis More... | |
const reco::Candidate * | leptonBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get anti-lepton of the given hypothesis More... | |
const reco::Candidate * | neutrino (const std::string &key, const unsigned &cmb=0) const |
get neutrino of the given hypothesis More... | |
const reco::Candidate * | neutrino (const HypoClassKey &key, const unsigned &cmb=0) const |
get neutrino of the given hypothesis More... | |
const reco::Candidate * | neutrinoBar (const std::string &key, const unsigned &cmb=0) const |
get anti-neutrino of the given hypothesis More... | |
const reco::Candidate * | neutrinoBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get anti-neutrino of the given hypothesis More... | |
void | print (const int verbosity=1) const |
void | setSolWeight (const std::vector< double > &val) |
set weight of kKinSolution hypothesis More... | |
void | setWrongCharge (const bool &val) |
set right or wrong charge combination of kKinSolution hypothesis More... | |
double | solWeight (const unsigned &cmb=0) const |
return the weight of the kinematic solution of hypothesis 'cmb' if available; -1 else More... | |
const reco::Candidate * | top (const std::string &key, const unsigned &cmb=0) const |
get top of the given hypothesis More... | |
const reco::Candidate * | top (const HypoClassKey &key, const unsigned &cmb=0) const |
get top of the given hypothesis More... | |
const reco::Candidate * | topBar (const std::string &key, const unsigned &cmb=0) const |
get anti-top of the given hypothesis More... | |
const reco::Candidate * | topBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get anti-top of the given hypothesis More... | |
TtFullLeptonicEvent () | |
empty constructor More... | |
const reco::Candidate * | wMinus (const std::string &key, const unsigned &cmb=0) const |
get Wminus of the given hypothesis More... | |
const reco::Candidate * | wMinus (const HypoClassKey &key, const unsigned &cmb=0) const |
get Wminus of the given hypothesis More... | |
const reco::Candidate * | wPlus (const std::string &key, const unsigned &cmb=0) const |
get Wplus of the given hypothesis More... | |
const reco::Candidate * | wPlus (const HypoClassKey &key, const unsigned &cmb=0) const |
get Wplus of the given hypothesis More... | |
virtual | ~TtFullLeptonicEvent () |
default destructor More... | |
Public Member Functions inherited from TtEvent | |
void | addEventHypo (const HypoClassKey &key, const HypoCombPair &hyp) |
add new hypotheses More... | |
int | correspondingHypo (const std::string &key1, const unsigned &hyp1, const std::string &key2) const |
return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesis class 'key1' More... | |
int | correspondingHypo (const HypoClassKey &key1, const unsigned &hyp1, const HypoClassKey &key2) const |
return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesis class 'key1' More... | |
const reco::CompositeCandidate & | eventHypo (const HypoClassKey &key, const unsigned &cmb=0) const |
double | fitChi2 (const unsigned &cmb=0) const |
return the chi2 of the kinematic fit of hypothesis 'cmb' if available; -1 else More... | |
double | fitProb (const unsigned &cmb=0) const |
return the fit probability of hypothesis 'cmb' if available; -1 else More... | |
const edm::RefProd< TtGenEvent > & | genEvent () const |
get TtGenEvent More... | |
double | genMatchSumDR (const unsigned &cmb=0) const |
return the sum dr of the generator match if available; -1 else More... | |
double | genMatchSumPt (const unsigned &cmb=0) const |
return the sum pt of the generator match if available; -1 else More... | |
double | hitFitChi2 (const unsigned &cmb=0) const |
return the hitfit chi2 of hypothesis 'cmb' if available; -1 else More... | |
double | hitFitMT (const unsigned &cmb=0) const |
return the hitfit top mass of hypothesis 'cmb' if available; -1 else More... | |
double | hitFitProb (const unsigned &cmb=0) const |
return the hitfit probability of hypothesis 'cmb' if available; -1 else More... | |
double | hitFitSigMT (const unsigned &cmb=0) const |
return the hitfit top mass uncertainty of hypothesis 'cmb' if available; -1 else More... | |
bool | isHypoAvailable (const std::string &key, const unsigned &cmb=0) const |
bool | isHypoAvailable (const HypoClassKey &key, const unsigned &cmb=0) const |
check if hypothesis 'cmb' is available within the hypothesis class More... | |
bool | isHypoClassAvailable (const std::string &key) const |
check if hypothesis class 'key' was added to the event structure More... | |
bool | isHypoClassAvailable (const HypoClassKey &key) const |
check if hypothesis class 'key' was added to the event structure More... | |
bool | isHypoValid (const std::string &key, const unsigned &cmb=0) const |
check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty CompositeCandidate More... | |
bool | isHypoValid (const HypoClassKey &key, const unsigned &cmb=0) const |
check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty CompositeCandidate More... | |
std::vector< int > | jetLeptonCombination (const std::string &key, const unsigned &cmb=0) const |
return the vector of jet lepton combinatorics for a given hypothesis and class More... | |
std::vector< int > | jetLeptonCombination (const HypoClassKey &key, const unsigned &cmb=0) const |
return the vector of jet lepton combinatorics for a given hypothesis and class More... | |
std::pair< WDecay::LeptonType, WDecay::LeptonType > | lepDecays () const |
get leptonic decay channels More... | |
double | mvaDisc (const unsigned &cmb=0) const |
return the mva discriminant value of hypothesis 'cmb' if available; -1 else More... | |
std::string | mvaMethod () const |
return the label of the mva method in use for the jet parton association (if kMVADisc is not available the string is empty) More... | |
unsigned int | numberOfAvailableHypoClasses () const |
return number of available hypothesis classes More... | |
unsigned int | numberOfAvailableHypos (const std::string &key) const |
return number of available hypotheses within a given hypothesis class More... | |
unsigned int | numberOfAvailableHypos (const HypoClassKey &key) const |
return number of available hypotheses within a given hypothesis class More... | |
int | numberOfConsideredJets (const std::string &key) const |
return number of jets that were considered when building a given hypothesis More... | |
int | numberOfConsideredJets (const HypoClassKey &key) const |
return number of jets that were considered when building a given hypothesis More... | |
void | printParticle (edm::LogInfo &log, const char *name, const reco::Candidate *cand) const |
print pt, eta, phi, mass of a given candidate into an existing LogInfo More... | |
void | setFitChi2 (const std::vector< double > &val) |
set chi2 of kKinFit hypothesis More... | |
void | setFitProb (const std::vector< double > &val) |
set fit probability of kKinFit hypothesis More... | |
void | setGenEvent (const edm::Handle< TtGenEvent > &evt) |
set TtGenEvent More... | |
void | setGenMatchSumDR (const std::vector< double > &val) |
set sum dr of kGenMatch hypothesis More... | |
void | setGenMatchSumPt (const std::vector< double > &val) |
set sum pt of kGenMatch hypothesis More... | |
void | setHitFitChi2 (const std::vector< double > &val) |
set chi2 of kHitFit hypothesis More... | |
void | setHitFitMT (const std::vector< double > &val) |
set fitted top mass of kHitFit hypothesis More... | |
void | setHitFitProb (const std::vector< double > &val) |
set fit probability of kHitFit hypothesis More... | |
void | setHitFitSigMT (const std::vector< double > &val) |
set fitted top mass uncertainty of kHitFit hypothesis More... | |
void | setLepDecays (const WDecay::LeptonType &lepDecTop1, const WDecay::LeptonType &lepDecTop2) |
set leptonic decay channels More... | |
void | setMvaDiscriminators (const std::vector< double > &val) |
set mva discriminant values of kMVADisc hypothesis More... | |
void | setMvaMethod (const std::string &name) |
set label of mva method for kMVADisc hypothesis More... | |
void | setNumberOfConsideredJets (const HypoClassKey &key, const unsigned int nJets) |
set number of jets considered when building a given hypothesis More... | |
const reco::Candidate * | topPair (const std::string &key, const unsigned &cmb=0) const |
get combined 4-vector of top and topBar of the given hypothesis More... | |
const reco::Candidate * | topPair (const HypoClassKey &key, const unsigned &cmb=0) const |
get combined 4-vector of top and topBar of the given hypothesis More... | |
const math::XYZTLorentzVector * | topPair () const |
get combined 4-vector of top and topBar from the TtGenEvent More... | |
TtEvent () | |
empty constructor More... | |
virtual | ~TtEvent () |
default destructor More... | |
Protected Attributes | |
std::vector< double > | solWeight_ |
result of kinematic solution More... | |
bool | wrongCharge_ |
right/wrong charge booleans More... | |
Protected Attributes inherited from TtEvent | |
std::map< HypoClassKey, std::vector< HypoCombPair > > | evtHyp_ |
std::vector< double > | fitChi2_ |
result of kinematic fit More... | |
std::vector< double > | fitProb_ |
result of kinematic fit More... | |
edm::RefProd< TtGenEvent > | genEvt_ |
reference to TtGenEvent (has to be kept in the event!) More... | |
std::vector< double > | genMatchSumDR_ |
result of gen match More... | |
std::vector< double > | genMatchSumPt_ |
result of gen match More... | |
std::vector< double > | hitFitChi2_ |
std::vector< double > | hitFitMT_ |
result of hitfit More... | |
std::vector< double > | hitFitProb_ |
std::vector< double > | hitFitSigMT_ |
std::pair< WDecay::LeptonType, WDecay::LeptonType > | lepDecays_ |
leptonic decay channels More... | |
std::vector< double > | mvaDisc_ |
MVA discriminants. More... | |
std::string | mvaMethod_ |
label of the MVA method More... | |
std::map< HypoClassKey, int > | nJetsConsidered_ |
number of jets considered when building the hypotheses More... | |
Additional Inherited Members | |
Public Types inherited from TtEvent | |
enum | HypoClassKey { kGeom, kWMassMaxSumPt, kMaxSumPtWMass, kGenMatch, kMVADisc, kKinFit, kKinSolution, kWMassDeltaTopMass, kHitFit } |
supported classes of event hypotheses More... | |
typedef std::pair< reco::CompositeCandidate, std::vector< int > > | HypoCombPair |
pair of hypothesis and lepton jet combinatorics for a given hypothesis More... | |
Protected Member Functions inherited from TtEvent | |
HypoClassKey | hypoClassKeyFromString (const std::string &label) const |
return the corresponding enum value from a string More... | |
Class derived from the TtEvent for the full leptonic decay channel.
The structure holds information on the leptonic decay channels, all event hypotheses of different classes (user defined during production) and a reference to the TtGenEvent (if available). It provides access and administration.
Definition at line 24 of file TtFullLeptonicEvent.h.
|
inline |
|
inlinevirtual |
|
inline |
get b of the given hypothesis
Definition at line 37 of file TtFullLeptonicEvent.h.
References b().
Referenced by b(), and print().
|
inline |
get b of the given hypothesis
Definition at line 39 of file TtFullLeptonicEvent.h.
References TtFullLepDaughter::B, and reco::Candidate::daughter().
|
inline |
get anti-b of the given hypothesis
Definition at line 57 of file TtFullLeptonicEvent.h.
References bBar().
Referenced by bBar(), and print().
|
inline |
get anti-b of the given hypothesis
Definition at line 59 of file TtFullLeptonicEvent.h.
References TtFullLepDaughter::BBar, and reco::Candidate::daughter().
|
inline |
get b of the TtGenEvent
Definition at line 76 of file TtFullLeptonicEvent.h.
References b, and MCTruth::genEvent.
|
inline |
get anti-b of the TtGenEvent
Definition at line 86 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get lepton of the TtGenEvent
Definition at line 90 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get anti-lepton of the TtGenEvent
Definition at line 80 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get neutrino of the TtGenEvent
Definition at line 82 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get anti-neutrino of the TtGenEvent
Definition at line 92 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get top of the TtGenEvent
Definition at line 74 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get anti-top of the TtGenEvent
Definition at line 84 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get Wminus of the TtGenEvent
Definition at line 88 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
get Wplus of the TtGenEvent
Definition at line 78 of file TtFullLeptonicEvent.h.
References MCTruth::genEvent.
|
inline |
return if the kinematic solution of hypothesis 'cmb' is right or wrong charge if available; -1 else
Definition at line 97 of file TtFullLeptonicEvent.h.
Referenced by print().
|
inline |
get lepton of the given hypothesis
Definition at line 65 of file TtFullLeptonicEvent.h.
References lepton().
Referenced by lepton(), and print().
|
inline |
get lepton of the given hypothesis
Definition at line 67 of file TtFullLeptonicEvent.h.
References reco::Candidate::daughter(), and TtFullLepDaughter::Lep.
|
inline |
get anti-lepton of the given hypothesis
Definition at line 45 of file TtFullLeptonicEvent.h.
References leptonBar().
Referenced by leptonBar(), and print().
|
inline |
get anti-lepton of the given hypothesis
Definition at line 47 of file TtFullLeptonicEvent.h.
References reco::Candidate::daughter(), and TtFullLepDaughter::LepBar.
|
inline |
get neutrino of the given hypothesis
Definition at line 49 of file TtFullLeptonicEvent.h.
References neutrino().
Referenced by neutrino(), and print().
|
inline |
get neutrino of the given hypothesis
Definition at line 51 of file TtFullLeptonicEvent.h.
References reco::Candidate::daughter(), and TtFullLepDaughter::Nu.
|
inline |
get anti-neutrino of the given hypothesis
Definition at line 69 of file TtFullLeptonicEvent.h.
References neutrinoBar().
Referenced by neutrinoBar(), and print().
|
inline |
get anti-neutrino of the given hypothesis
Definition at line 71 of file TtFullLeptonicEvent.h.
References reco::Candidate::daughter(), and TtFullLepDaughter::NuBar.
void TtFullLeptonicEvent::print | ( | const int | verbosity = 1 | ) | const |
print full content of the structure as formated LogInfo to the MessageLogger output for debugging
Definition at line 7 of file TtFullLeptonicEvent.cc.
References b(), bBar(), TtEvent::evtHyp_, plotBeamSpotDB::first, TtEvent::genEvent(), TtEvent::genMatchSumDR(), TtEvent::genMatchSumPt(), TtEvent::isHypoValid(), isWrongCharge(), TtEvent::jetLeptonCombination(), fwrapper::jets, WDecay::kElec, TtEvent::kGenMatch, TtEvent::kGeom, TtEvent::kHitFit, TtEvent::kKinFit, TtEvent::kKinSolution, TtEvent::kMaxSumPtWMass, WDecay::kMuon, TtEvent::kMVADisc, WDecay::kTau, TtEvent::kWMassDeltaTopMass, TtEvent::kWMassMaxSumPt, lepton(), leptonBar(), cmsBatch::log, neutrino(), neutrinoBar(), TtEvent::numberOfAvailableHypoClasses(), TtEvent::numberOfAvailableHypos(), TtEvent::printParticle(), edm::second(), solWeight(), top(), topBar(), TtEvent::topPair(), wMinus(), and wPlus().
|
inline |
set weight of kKinSolution hypothesis
Definition at line 100 of file TtFullLeptonicEvent.h.
References heppy_batch::val.
Referenced by TtEvtBuilder< C >::fillSpecific().
|
inline |
set right or wrong charge combination of kKinSolution hypothesis
Definition at line 102 of file TtFullLeptonicEvent.h.
References reco::print(), heppy_batch::val, and HIPAlignmentAlgorithm_cfi::verbosity.
Referenced by TtEvtBuilder< C >::fillSpecific().
|
inline |
return the weight of the kinematic solution of hypothesis 'cmb' if available; -1 else
Definition at line 95 of file TtFullLeptonicEvent.h.
Referenced by print().
|
inline |
get top of the given hypothesis
Definition at line 33 of file TtFullLeptonicEvent.h.
References top().
Referenced by print(), and top().
|
inline |
get top of the given hypothesis
Definition at line 35 of file TtFullLeptonicEvent.h.
References TtFullLepDaughter::Top.
|
inline |
get anti-top of the given hypothesis
Definition at line 53 of file TtFullLeptonicEvent.h.
References topBar().
Referenced by print(), and topBar().
|
inline |
get anti-top of the given hypothesis
Definition at line 55 of file TtFullLeptonicEvent.h.
References TtFullLepDaughter::TopBar.
|
inline |
get Wminus of the given hypothesis
Definition at line 61 of file TtFullLeptonicEvent.h.
References wMinus().
Referenced by print(), and wMinus().
|
inline |
get Wminus of the given hypothesis
Definition at line 63 of file TtFullLeptonicEvent.h.
References reco::Candidate::daughter(), and TtFullLepDaughter::WMinus.
|
inline |
get Wplus of the given hypothesis
Definition at line 41 of file TtFullLeptonicEvent.h.
References wPlus().
Referenced by print(), and wPlus().
|
inline |
get Wplus of the given hypothesis
Definition at line 43 of file TtFullLeptonicEvent.h.
References reco::Candidate::daughter(), and TtFullLepDaughter::WPlus.
|
protected |
result of kinematic solution
Definition at line 111 of file TtFullLeptonicEvent.h.
|
protected |
right/wrong charge booleans
Definition at line 113 of file TtFullLeptonicEvent.h.