Class derived from the TtEvent for the full hadronic decay channel. More...
#include "AnalysisDataFormats/TopObjects/interface/TtFullHadronicEvent.h"
Public Member Functions | |
const reco::GenParticle * | b () const |
get b of the TtGenEvent More... | |
const reco::Candidate * | b (const HypoClassKey &key, const unsigned &cmb=0) const |
get b of the given hypothesis More... | |
const reco::Candidate * | b (const std::string &key, const unsigned &cmb=0) const |
get b of the given hypothesis More... | |
const reco::GenParticle * | bBar () const |
get anti-b of the TtGenEvent More... | |
const reco::Candidate * | bBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get anti-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::GenParticle * | lightP () const |
get light P of the TtGenEvent More... | |
const reco::Candidate * | lightP (const HypoClassKey &key, const unsigned &cmb=0) const |
get light P of the given hypothesis More... | |
const reco::Candidate * | lightP (const std::string &key, const unsigned &cmb=0) const |
get light P of the given hypothesis More... | |
const reco::GenParticle * | lightPBar () const |
get light P bar of the TtGenEvent More... | |
const reco::Candidate * | lightPBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get light P bar of the given hypothesis More... | |
const reco::Candidate * | lightPBar (const std::string &key, const unsigned &cmb=0) const |
get light P bar of the given hypothesis More... | |
const reco::GenParticle * | lightQ () const |
get light Q of the TtGenEvent More... | |
const reco::Candidate * | lightQ (const HypoClassKey &key, const unsigned &cmb=0) const |
get light Q of the given hypothesis More... | |
const reco::Candidate * | lightQ (const std::string &key, const unsigned &cmb=0) const |
get light Q of the given hypothesis More... | |
const reco::GenParticle * | lightQBar () const |
get light Q bar of the TtGenEvent More... | |
const reco::Candidate * | lightQBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get light Q bar of the given hypothesis More... | |
const reco::Candidate * | lightQBar (const std::string &key, const unsigned &cmb=0) const |
get light Q bar of the given hypothesis More... | |
void | print (const int verbosity=1) const |
const reco::GenParticle * | top () const |
get top of the TtGenEvent More... | |
const reco::Candidate * | top (const HypoClassKey &key, const unsigned &cmb=0) const |
get top of the given hypothesis More... | |
const reco::Candidate * | top (const std::string &key, const unsigned &cmb=0) const |
get top of the given hypothesis More... | |
const reco::GenParticle * | topBar () const |
get anti-top of the TtGenEvent More... | |
const reco::Candidate * | topBar (const HypoClassKey &key, const unsigned &cmb=0) const |
get anti-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... | |
TtFullHadronicEvent () | |
empty constructor More... | |
const reco::GenParticle * | wMinus () const |
get Wminus of the TtGenEvent More... | |
const reco::Candidate * | wMinus (const HypoClassKey &key, const unsigned &cmb=0) const |
get Wminus of the given hypothesis More... | |
const reco::Candidate * | wMinus (const std::string &key, const unsigned &cmb=0) const |
get Wminus of the given hypothesis More... | |
const reco::GenParticle * | wPlus () const |
get Wplus of the TtGenEvent More... | |
const reco::Candidate * | wPlus (const HypoClassKey &key, const unsigned &cmb=0) const |
get Wplus 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... | |
~TtFullHadronicEvent () override | |
default destructor More... | |
Public Member Functions inherited from TtEvent | |
void | addEventHypo (const HypoClassKey &key, const HypoCombPair &hyp) |
add new hypotheses 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... | |
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... | |
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 HypoClassKey &key, const unsigned &cmb=0) const |
check if hypothesis 'cmb' is available within the hypothesis class More... | |
bool | isHypoAvailable (const std::string &key, const unsigned &cmb=0) const |
bool | isHypoClassAvailable (const HypoClassKey &key) const |
check if hypothesis class 'key' was added to the event structure More... | |
bool | isHypoClassAvailable (const std::string &key) const |
check if hypothesis class 'key' was added to the event structure 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... | |
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... | |
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::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::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 HypoClassKey &key) const |
return number of available hypotheses within a given hypothesis class More... | |
unsigned int | numberOfAvailableHypos (const std::string &key) const |
return number of available hypotheses within a given hypothesis class More... | |
int | numberOfConsideredJets (const HypoClassKey &key) const |
return number of jets that were considered when building a given hypothesis More... | |
int | numberOfConsideredJets (const std::string &key) const |
return number of jets that were considered when building a given hypothesis 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 math::XYZTLorentzVector * | topPair () const |
get combined 4-vector of top and topBar from the TtGenEvent 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 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... | |
TtEvent () | |
empty constructor More... | |
virtual | ~TtEvent () |
default destructor 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... | |
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... | |
Class derived from the TtEvent for the full hadronic decay channel.
The structure holds information on the hadronic 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 25 of file TtFullHadronicEvent.h.
|
inline |
|
inlineoverride |
|
inline |
get b of the TtGenEvent
Definition at line 123 of file TtFullHadronicEvent.h.
References b(), TtEvent::genEvent(), and TtEvent::genEvt_.
|
inline |
get b of the given hypothesis
Definition at line 45 of file TtFullHadronicEvent.h.
References TtFullHadDaughter::B, reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, and top().
|
inline |
get b of the given hypothesis
Definition at line 41 of file TtFullHadronicEvent.h.
References b(), TtEvent::hypoClassKeyFromString(), and crabWrapper::key.
|
inline |
get anti-b of the TtGenEvent
Definition at line 136 of file TtFullHadronicEvent.h.
References bBar(), TtEvent::genEvent(), and TtEvent::genEvt_.
|
inline |
get anti-b of the given hypothesis
Definition at line 89 of file TtFullHadronicEvent.h.
References TtFullHadDaughter::BBar, reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, and topBar().
|
inline |
get anti-b of the given hypothesis
Definition at line 85 of file TtFullHadronicEvent.h.
References bBar(), TtEvent::hypoClassKeyFromString(), and crabWrapper::key.
|
inline |
get light P of the TtGenEvent
Definition at line 128 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), and TtEvent::genEvt_.
|
inline |
get light P of the given hypothesis
Definition at line 63 of file TtFullHadronicEvent.h.
References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, TtFullHadDaughter::LightP, and wMinus().
|
inline |
get light P of the given hypothesis
Definition at line 59 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and lightP().
|
inline |
get light P bar of the TtGenEvent
Definition at line 143 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), and TtEvent::genEvt_.
Referenced by lightPBar(), and print().
|
inline |
get light P bar of the given hypothesis
Definition at line 107 of file TtFullHadronicEvent.h.
References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, TtFullHadDaughter::LightPBar, and wMinus().
|
inline |
get light P bar of the given hypothesis
Definition at line 103 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and lightPBar().
|
inline |
get light Q of the TtGenEvent
Definition at line 126 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), and TtEvent::genEvt_.
|
inline |
get light Q of the given hypothesis
Definition at line 54 of file TtFullHadronicEvent.h.
References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, TtFullHadDaughter::LightQ, and wPlus().
|
inline |
get light Q of the given hypothesis
Definition at line 50 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and lightQ().
|
inline |
get light Q bar of the TtGenEvent
Definition at line 139 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), and TtEvent::genEvt_.
Referenced by lightQBar(), and print().
|
inline |
get light Q bar of the given hypothesis
Definition at line 98 of file TtFullHadronicEvent.h.
References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, TtFullHadDaughter::LightQBar, and wPlus().
|
inline |
get light Q bar of the given hypothesis
Definition at line 94 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and lightQBar().
void TtFullHadronicEvent::print | ( | const int | verbosity = 1 | ) | const |
print full content of the structure as formated LogInfo to the MessageLogger output for debugging
Definition at line 9 of file TtFullHadronicEvent.cc.
References TtFullHadEvtPartons::B, b(), TtFullHadEvtPartons::BBar, bBar(), TtEvent::evtHyp_, TtEvent::fitChi2(), TtEvent::fitProb(), TtEvent::genEvent(), TtEvent::genEvt_, TtEvent::genMatchSumDR(), TtEvent::genMatchSumPt(), heavyIonCSV_trainingSettings::idx, TtEvent::isHypoValid(), TtEvent::jetLeptonCombination(), singleTopDQM_cfi::jets, TtEvent::kGenMatch, TtEvent::kGeom, TtEvent::kHitFit, TtEvent::kKinFit, TtEvent::kKinSolution, TtEvent::kMaxSumPtWMass, TtEvent::kMVADisc, TtEvent::kWMassDeltaTopMass, TtEvent::kWMassMaxSumPt, TtFullHadEvtPartons::LightP, lightP(), TtFullHadEvtPartons::LightPBar, lightPBar(), TtFullHadEvtPartons::LightQ, lightQ(), TtFullHadEvtPartons::LightQBar, lightQBar(), dqm-mbProfile::log, TtEvent::numberOfAvailableHypoClasses(), TtEvent::numberOfAvailableHypos(), ttevent::printParticle(), top(), topBar(), TtEvent::topPair(), HIPAlignmentAlgorithm_cfi::verbosity, wMinus(), and wPlus().
|
inline |
get top of the TtGenEvent
Definition at line 121 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), TtEvent::genEvt_, and top().
|
inline |
get top of the given hypothesis
Definition at line 37 of file TtFullHadronicEvent.h.
References reco::CompositeCandidate::daughter(), TtEvent::eventHypo(), TtEvent::isHypoValid(), crabWrapper::key, and TtFullHadDaughter::Top.
|
inline |
get top of the given hypothesis
Definition at line 33 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and top().
|
inline |
get anti-top of the TtGenEvent
Definition at line 134 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), TtEvent::genEvt_, and topBar().
|
inline |
get anti-top of the given hypothesis
Definition at line 81 of file TtFullHadronicEvent.h.
References reco::CompositeCandidate::daughter(), TtEvent::eventHypo(), TtEvent::isHypoValid(), crabWrapper::key, and TtFullHadDaughter::TopBar.
|
inline |
get anti-top of the given hypothesis
Definition at line 77 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and topBar().
|
inline |
get Wminus of the TtGenEvent
Definition at line 148 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), TtEvent::genEvt_, and wMinus().
Referenced by lightP(), lightPBar(), print(), and wMinus().
|
inline |
get Wminus of the given hypothesis
Definition at line 116 of file TtFullHadronicEvent.h.
References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, topBar(), and TtFullHadDaughter::WMinus.
|
inline |
get Wminus of the given hypothesis
Definition at line 112 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and wMinus().
|
inline |
get Wplus of the TtGenEvent
Definition at line 131 of file TtFullHadronicEvent.h.
References TtEvent::genEvent(), TtEvent::genEvt_, and wPlus().
Referenced by lightQ(), lightQBar(), print(), and wPlus().
|
inline |
get Wplus of the given hypothesis
Definition at line 72 of file TtFullHadronicEvent.h.
References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), crabWrapper::key, top(), and TtFullHadDaughter::WPlus.
|
inline |
get Wplus of the given hypothesis
Definition at line 68 of file TtFullHadronicEvent.h.
References TtEvent::hypoClassKeyFromString(), crabWrapper::key, and wPlus().