Common calculator class to keep multivariate analysis variables for jet combinations in semi-leptonic ttbar decays. More...
#include "TopQuarkAnalysis/TopJetCombination/interface/TtSemiLepJetComb.h"
Public Member Functions | |
double | addUserVar (std::string key, double value) |
add an arbitary user defined variable with given key and value More... | |
double | bOverLightQPt () const |
double | bQuarkVar (JetComb::DecayType decay, JetComb::VarType var) const |
b quark candidate variable More... | |
double | bTag (JetComb::DecayType decay, JetComb::BTagAlgo algo) const |
b-tag value of a b candidate More... | |
double | combinedBTags (JetComb::BTagAlgo algo, JetComb::Operator op) const |
combined b-tag values of the two b candidates More... | |
double | combinedBTagsForLightQuarks (JetComb::BTagAlgo algo, JetComb::Operator op) const |
combined b-tag values of the two light quark candidates More... | |
double | compareBLepton (JetComb::DecayType decay, JetComb::CompType comp) const |
comparison between the b and the lepton candidate More... | |
double | compareBNeutrino (JetComb::DecayType decay, JetComb::CompType comp) const |
comparison between the b and the neutrino candidate More... | |
double | compareHadBLepB (JetComb::CompType comp) const |
comparison between the two b candidates More... | |
double | compareHadTopLepTop (JetComb::CompType comp) const |
comparison between the two top candidates More... | |
double | compareHadWLepW (JetComb::CompType comp) const |
comparison between the two W candidates More... | |
double | compareLeptonNeutrino (JetComb::CompType comp) const |
comparison between the lepton and the neutrino candidate More... | |
double | compareLightQuarks (JetComb::CompType comp) const |
comparison between the lightQ and the lightQBar candidate More... | |
double | compareTopB (JetComb::DecayType dec1, JetComb::DecayType dec2, JetComb::CompType comp) const |
comparison between the top and the b candidate More... | |
double | compareTopLepton (JetComb::DecayType decay, JetComb::CompType comp) const |
comparison between the top and the lepton candidate More... | |
double | compareTopNeutrino (JetComb::DecayType decay, JetComb::CompType comp) const |
comparison between the top and the neutrino candidate More... | |
double | compareTopW (JetComb::DecayType dec1, JetComb::DecayType dec2, JetComb::CompType comp) const |
comparison between the top and the W candidate More... | |
double | compareWB (JetComb::DecayType dec1, JetComb::DecayType dec2, JetComb::CompType comp) const |
comparison between the W and the b candidate More... | |
double | compareWLepton (JetComb::DecayType decay, JetComb::CompType comp) const |
comparison between the W and the lepton candidate More... | |
double | compareWNeutrino (JetComb::DecayType decay, JetComb::CompType comp) const |
comparison between the W and the neutrino candidate More... | |
double | leptonVar (JetComb::VarType var) const |
lepton candidate variable More... | |
double | lightQVar (bool qbar, JetComb::VarType var) const |
light quark candidate variable More... | |
double | neutrinoVar (JetComb::VarType var) const |
neutrino candidate variable More... | |
double | relativePtHadronicTop () const |
double | topVar (JetComb::DecayType decay, JetComb::VarType var) const |
top quark candidate variable More... | |
TtSemiLepJetComb () | |
emtpy constructor More... | |
TtSemiLepJetComb (const std::vector< pat::Jet > &, const std::vector< int > &, const math::XYZTLorentzVector &, const pat::MET &) | |
default constructor More... | |
double | userVar (const std::string &key) const |
receive user defined variable value with given key More... | |
double | wBosonVar (JetComb::DecayType decay, JetComb::VarType var) const |
W boson candidate variable. More... | |
~TtSemiLepJetComb () | |
default destructor More... | |
Private Member Functions | |
const pat::Jet & | bQuark (JetComb::DecayType decay) const |
return leptonic or hadronic b candidate depending on argument More... | |
double | bTag (const pat::Jet &jet, JetComb::BTagAlgo algo) const |
b-tag value of one of the 4 jets More... | |
void | deduceMothers () |
reconstruct mother candidates from final state candidates More... | |
const pat::Jet & | lightQ (bool qbar=false) const |
return lightQ or lightQBar candidate depending on argument More... | |
double | lightQVar (JetComb::VarType var) const |
light quark candidate variable with default on q and not qbar More... | |
const math::XYZTLorentzVector & | top (JetComb::DecayType decay) const |
return leptonic or hadronic top candidate depending on argument More... | |
const math::XYZTLorentzVector & | wBoson (JetComb::DecayType decay) const |
return leptonic or hadronic W candidate depending on argument More... | |
Private Attributes | |
pat::Jet | hadBJet_ |
hadronic b jet More... | |
pat::Jet | hadQBarJet_ |
lightQBar jet More... | |
pat::Jet | hadQJet_ |
lightQ jet More... | |
math::XYZTLorentzVector | hadTop_ |
hadronic top 4-vector More... | |
math::XYZTLorentzVector | hadW_ |
hadronic W 4-vector More... | |
pat::Jet | lepBJet_ |
leptonic b jet More... | |
math::XYZTLorentzVector | lepton_ |
lepton 4-vector More... | |
math::XYZTLorentzVector | lepTop_ |
leptonic top 4-vector More... | |
math::XYZTLorentzVector | lepW_ |
leptonic W 4-vector More... | |
pat::MET | neutrino_ |
neutrino candidate More... | |
std::map< std::string, double > | userVariables_ |
map for user defined variables More... | |
Common calculator class to keep multivariate analysis variables for jet combinations in semi-leptonic ttbar decays.
This class is currently used by TtSemiLepJetCombEval.h, which is included in both the TtSemiLepJetCombMVAComputer and the TtSemiLepJetCombMVATrainer.
Definition at line 37 of file TtSemiLepJetComb.h.
TtSemiLepJetComb::TtSemiLepJetComb | ( | ) |
TtSemiLepJetComb::TtSemiLepJetComb | ( | const std::vector< pat::Jet > & | jets, |
const std::vector< int > & | combination, | ||
const math::XYZTLorentzVector & | lepton, | ||
const pat::MET & | neutrino | ||
) |
default constructor
Definition at line 10 of file TtSemiLepJetComb.cc.
References deduceMothers(), TtSemiLepEvtPartons::HadB, hadBJet_, hadQBarJet_, hadQJet_, TtSemiLepEvtPartons::LepB, lepBJet_, lepton_, TtSemiLepEvtPartons::LightQ, TtSemiLepEvtPartons::LightQBar, and neutrino_.
TtSemiLepJetComb::~TtSemiLepJetComb | ( | ) |
|
inline |
add an arbitary user defined variable with given key and value
Definition at line 106 of file TtSemiLepJetComb.h.
References combine::key, userVariables_, and relativeConstraints::value.
double TtSemiLepJetComb::bOverLightQPt | ( | ) | const |
scalar sum of the pt of the b candidates relative to scalar sum of the pt of the light quark candidates
Definition at line 265 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kHad, JetComb::kLep, lightQ(), p4, reco::LeafCandidate::p4(), and RecoTauCleanerPlugins::pt.
Referenced by evaluateTtSemiLepJetComb().
|
inlineprivate |
return leptonic or hadronic b candidate depending on argument
Definition at line 122 of file TtSemiLepJetComb.h.
References hadBJet_, JetComb::kHad, and lepBJet_.
Referenced by bOverLightQPt(), bQuarkVar(), bTag(), compareBLepton(), compareBNeutrino(), compareHadBLepB(), compareTopB(), compareWB(), and relativePtHadronicTop().
double TtSemiLepJetComb::bQuarkVar | ( | JetComb::DecayType | decay, |
JetComb::VarType | var | ||
) | const |
b quark candidate variable
Definition at line 54 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and reco::LeafCandidate::p4().
Referenced by evaluateTtSemiLepJetComb().
|
inline |
b-tag value of a b candidate
Definition at line 99 of file TtSemiLepJetComb.h.
References bQuark(), and bTag().
Referenced by bTag(), combinedBTags(), combinedBTagsForLightQuarks(), and evaluateTtSemiLepJetComb().
|
private |
b-tag value of one of the 4 jets
Definition at line 301 of file TtSemiLepJetComb.cc.
References pat::Jet::bDiscriminator(), JetComb::kBProbability, JetComb::kCombSecondVtx, JetComb::kCombSecondVtxMVA, JetComb::kProbability, JetComb::kSimpleSecondVtx, JetComb::kSofMuonByIP3d, JetComb::kSoftElec, JetComb::kSoftMuon, JetComb::kSoftMuonByPt, JetComb::kTrackCountHighEff, and JetComb::kTrackCountHighPur.
double TtSemiLepJetComb::combinedBTags | ( | JetComb::BTagAlgo | algo, |
JetComb::Operator | op | ||
) | const |
combined b-tag values of the two b candidates
Definition at line 270 of file TtSemiLepJetComb.cc.
References bTag(), JetComb::kAdd, JetComb::kHad, JetComb::kLep, and JetComb::kMult.
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::combinedBTagsForLightQuarks | ( | JetComb::BTagAlgo | algo, |
JetComb::Operator | op | ||
) | const |
combined b-tag values of the two light quark candidates
Definition at line 279 of file TtSemiLepJetComb.cc.
References bTag(), JetComb::kAdd, JetComb::kMult, and lightQ().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareBLepton | ( | JetComb::DecayType | decay, |
JetComb::CompType | comp | ||
) | const |
comparison between the b and the lepton candidate
Definition at line 234 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and p4.
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareBNeutrino | ( | JetComb::DecayType | decay, |
JetComb::CompType | comp | ||
) | const |
comparison between the b and the neutrino candidate
Definition at line 245 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, neutrino_, p4, and reco::LeafCandidate::p4().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareHadBLepB | ( | JetComb::CompType | comp | ) | const |
comparison between the two b candidates
Definition at line 124 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, JetComb::kHad, JetComb::kLep, and p4.
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareHadTopLepTop | ( | JetComb::CompType | comp | ) | const |
comparison between the two top candidates
Definition at line 102 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, JetComb::kHad, JetComb::kLep, and top().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareHadWLepW | ( | JetComb::CompType | comp | ) | const |
comparison between the two W candidates
Definition at line 113 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, JetComb::kHad, JetComb::kLep, and wBoson().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareLeptonNeutrino | ( | JetComb::CompType | comp | ) | const |
comparison between the lepton and the neutrino candidate
Definition at line 146 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, neutrino_, and reco::LeafCandidate::p4().
double TtSemiLepJetComb::compareLightQuarks | ( | JetComb::CompType | comp | ) | const |
comparison between the lightQ and the lightQBar candidate
Definition at line 135 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lightQ(), and p4.
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareTopB | ( | JetComb::DecayType | dec1, |
JetComb::DecayType | dec2, | ||
JetComb::CompType | comp | ||
) | const |
comparison between the top and the b candidate
Definition at line 168 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, p4, and top().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareTopLepton | ( | JetComb::DecayType | decay, |
JetComb::CompType | comp | ||
) | const |
comparison between the top and the lepton candidate
Definition at line 190 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and top().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareTopNeutrino | ( | JetComb::DecayType | decay, |
JetComb::CompType | comp | ||
) | const |
comparison between the top and the neutrino candidate
Definition at line 201 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, neutrino_, reco::LeafCandidate::p4(), and top().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareTopW | ( | JetComb::DecayType | dec1, |
JetComb::DecayType | dec2, | ||
JetComb::CompType | comp | ||
) | const |
comparison between the top and the W candidate
Definition at line 157 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, top(), and wBoson().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareWB | ( | JetComb::DecayType | dec1, |
JetComb::DecayType | dec2, | ||
JetComb::CompType | comp | ||
) | const |
comparison between the W and the b candidate
Definition at line 179 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, p4, and wBoson().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareWLepton | ( | JetComb::DecayType | decay, |
JetComb::CompType | comp | ||
) | const |
comparison between the W and the lepton candidate
Definition at line 212 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and wBoson().
Referenced by evaluateTtSemiLepJetComb().
double TtSemiLepJetComb::compareWNeutrino | ( | JetComb::DecayType | decay, |
JetComb::CompType | comp | ||
) | const |
comparison between the W and the neutrino candidate
Definition at line 223 of file TtSemiLepJetComb.cc.
References JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, neutrino_, reco::LeafCandidate::p4(), and wBoson().
Referenced by evaluateTtSemiLepJetComb().
|
private |
reconstruct mother candidates from final state candidates
Definition at line 293 of file TtSemiLepJetComb.cc.
References hadBJet_, hadQBarJet_, hadQJet_, hadTop_, hadW_, lepBJet_, lepton_, lepTop_, lepW_, neutrino_, and reco::LeafCandidate::p4().
Referenced by TtSemiLepJetComb().
double TtSemiLepJetComb::leptonVar | ( | JetComb::VarType | var | ) | const |
lepton candidate variable
Definition at line 78 of file TtSemiLepJetComb.cc.
References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and lepton_.
|
inlineprivate |
return lightQ or lightQBar candidate depending on argument
Definition at line 120 of file TtSemiLepJetComb.h.
References hadQBarJet_, and hadQJet_.
Referenced by bOverLightQPt(), combinedBTagsForLightQuarks(), compareLightQuarks(), lightQVar(), and relativePtHadronicTop().
double TtSemiLepJetComb::lightQVar | ( | bool | qbar, |
JetComb::VarType | var | ||
) | const |
light quark candidate variable
Definition at line 66 of file TtSemiLepJetComb.cc.
References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, lightQ(), and reco::LeafCandidate::p4().
Referenced by evaluateTtSemiLepJetComb().
|
inlineprivate |
light quark candidate variable with default on q and not qbar
Definition at line 118 of file TtSemiLepJetComb.h.
References lightQVar().
Referenced by lightQVar().
double TtSemiLepJetComb::neutrinoVar | ( | JetComb::VarType | var | ) | const |
neutrino candidate variable
Definition at line 90 of file TtSemiLepJetComb.cc.
References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, neutrino_, and reco::LeafCandidate::p4().
double TtSemiLepJetComb::relativePtHadronicTop | ( | ) | const |
pt of the hadronic top candidate relative to pt of the sum of all other reconstruction possibilities (returns values between 0 and 1)
Definition at line 256 of file TtSemiLepJetComb.cc.
References bQuark(), JetComb::kHad, JetComb::kLep, lightQ(), reco::LeafCandidate::p4(), RecoTauCleanerPlugins::pt, and top().
Referenced by evaluateTtSemiLepJetComb().
|
inlineprivate |
return leptonic or hadronic top candidate depending on argument
Definition at line 126 of file TtSemiLepJetComb.h.
References hadTop_, JetComb::kHad, and lepTop_.
Referenced by compareHadTopLepTop(), compareTopB(), compareTopLepton(), compareTopNeutrino(), compareTopW(), relativePtHadronicTop(), and topVar().
double TtSemiLepJetComb::topVar | ( | JetComb::DecayType | decay, |
JetComb::VarType | var | ||
) | const |
top quark candidate variable
Definition at line 30 of file TtSemiLepJetComb.cc.
References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and top().
Referenced by evaluateTtSemiLepJetComb().
|
inline |
receive user defined variable value with given key
Definition at line 108 of file TtSemiLepJetComb.h.
References userVariables_.
|
inlineprivate |
return leptonic or hadronic W candidate depending on argument
Definition at line 124 of file TtSemiLepJetComb.h.
References hadW_, JetComb::kHad, and lepW_.
Referenced by compareHadWLepW(), compareTopW(), compareWB(), compareWLepton(), compareWNeutrino(), and wBosonVar().
double TtSemiLepJetComb::wBosonVar | ( | JetComb::DecayType | decay, |
JetComb::VarType | var | ||
) | const |
W boson candidate variable.
Definition at line 42 of file TtSemiLepJetComb.cc.
References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and wBoson().
Referenced by evaluateTtSemiLepJetComb().
|
private |
hadronic b jet
Definition at line 135 of file TtSemiLepJetComb.h.
Referenced by bQuark(), deduceMothers(), and TtSemiLepJetComb().
|
private |
lightQBar jet
Definition at line 133 of file TtSemiLepJetComb.h.
Referenced by deduceMothers(), lightQ(), and TtSemiLepJetComb().
|
private |
lightQ jet
Definition at line 131 of file TtSemiLepJetComb.h.
Referenced by deduceMothers(), lightQ(), and TtSemiLepJetComb().
|
private |
hadronic top 4-vector
Definition at line 143 of file TtSemiLepJetComb.h.
Referenced by deduceMothers(), and top().
|
private |
hadronic W 4-vector
Definition at line 145 of file TtSemiLepJetComb.h.
Referenced by deduceMothers(), and wBoson().
|
private |
leptonic b jet
Definition at line 137 of file TtSemiLepJetComb.h.
Referenced by bQuark(), deduceMothers(), and TtSemiLepJetComb().
|
private |
lepton 4-vector
Definition at line 141 of file TtSemiLepJetComb.h.
Referenced by compareBLepton(), compareLeptonNeutrino(), compareTopLepton(), compareWLepton(), deduceMothers(), leptonVar(), and TtSemiLepJetComb().
|
private |
leptonic top 4-vector
Definition at line 147 of file TtSemiLepJetComb.h.
Referenced by deduceMothers(), and top().
|
private |
leptonic W 4-vector
Definition at line 149 of file TtSemiLepJetComb.h.
Referenced by deduceMothers(), and wBoson().
|
private |
neutrino candidate
Definition at line 139 of file TtSemiLepJetComb.h.
Referenced by compareBNeutrino(), compareLeptonNeutrino(), compareTopNeutrino(), compareWNeutrino(), deduceMothers(), neutrinoVar(), and TtSemiLepJetComb().
|
private |
map for user defined variables
Definition at line 151 of file TtSemiLepJetComb.h.
Referenced by addUserVar(), and userVar().