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 | ( | ) |
emtpy constructor
Definition at line 6 of file TtSemiLepJetComb.cc.
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.
TtSemiLepJetComb::~TtSemiLepJetComb | ( | ) |
default destructor
Definition at line 26 of file TtSemiLepJetComb.cc.
|
inline |
add an arbitary user defined variable with given key and value
Definition at line 106 of file TtSemiLepJetComb.h.
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.
|
inlineprivate |
return leptonic or hadronic b candidate depending on argument
Definition at line 122 of file TtSemiLepJetComb.h.
double TtSemiLepJetComb::bQuarkVar | ( | JetComb::DecayType | decay, |
JetComb::VarType | var | ||
) | const |
b quark candidate variable
Definition at line 54 of file TtSemiLepJetComb.cc.
|
inline |
b-tag value of a b candidate
Definition at line 99 of file TtSemiLepJetComb.h.
|
private |
b-tag value of one of the 4 jets
Definition at line 301 of file TtSemiLepJetComb.cc.
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.
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.
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.
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.
double TtSemiLepJetComb::compareHadBLepB | ( | JetComb::CompType | comp | ) | const |
comparison between the two b candidates
Definition at line 124 of file TtSemiLepJetComb.cc.
double TtSemiLepJetComb::compareHadTopLepTop | ( | JetComb::CompType | comp | ) | const |
comparison between the two top candidates
Definition at line 102 of file TtSemiLepJetComb.cc.
double TtSemiLepJetComb::compareHadWLepW | ( | JetComb::CompType | comp | ) | const |
comparison between the two W candidates
Definition at line 113 of file TtSemiLepJetComb.cc.
double TtSemiLepJetComb::compareLeptonNeutrino | ( | JetComb::CompType | comp | ) | const |
comparison between the lepton and the neutrino candidate
Definition at line 146 of file TtSemiLepJetComb.cc.
double TtSemiLepJetComb::compareLightQuarks | ( | JetComb::CompType | comp | ) | const |
comparison between the lightQ and the lightQBar candidate
Definition at line 135 of file TtSemiLepJetComb.cc.
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.
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.
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.
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.
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.
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.
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.
|
private |
reconstruct mother candidates from final state candidates
Definition at line 293 of file TtSemiLepJetComb.cc.
double TtSemiLepJetComb::leptonVar | ( | JetComb::VarType | var | ) | const |
lepton candidate variable
Definition at line 78 of file TtSemiLepJetComb.cc.
|
inlineprivate |
return lightQ or lightQBar candidate depending on argument
Definition at line 120 of file TtSemiLepJetComb.h.
double TtSemiLepJetComb::lightQVar | ( | bool | qbar, |
JetComb::VarType | var | ||
) | const |
light quark candidate variable
Definition at line 66 of file TtSemiLepJetComb.cc.
|
inlineprivate |
light quark candidate variable with default on q and not qbar
Definition at line 118 of file TtSemiLepJetComb.h.
double TtSemiLepJetComb::neutrinoVar | ( | JetComb::VarType | var | ) | const |
neutrino candidate variable
Definition at line 90 of file TtSemiLepJetComb.cc.
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.
|
inlineprivate |
return leptonic or hadronic top candidate depending on argument
Definition at line 126 of file TtSemiLepJetComb.h.
double TtSemiLepJetComb::topVar | ( | JetComb::DecayType | decay, |
JetComb::VarType | var | ||
) | const |
top quark candidate variable
Definition at line 30 of file TtSemiLepJetComb.cc.
|
inline |
receive user defined variable value with given key
Definition at line 108 of file TtSemiLepJetComb.h.
|
inlineprivate |
return leptonic or hadronic W candidate depending on argument
Definition at line 124 of file TtSemiLepJetComb.h.
double TtSemiLepJetComb::wBosonVar | ( | JetComb::DecayType | decay, |
JetComb::VarType | var | ||
) | const |
W boson candidate variable.
Definition at line 42 of file TtSemiLepJetComb.cc.
|
private |
hadronic b jet
Definition at line 135 of file TtSemiLepJetComb.h.
|
private |
lightQBar jet
Definition at line 133 of file TtSemiLepJetComb.h.
|
private |
lightQ jet
Definition at line 131 of file TtSemiLepJetComb.h.
|
private |
hadronic top 4-vector
Definition at line 143 of file TtSemiLepJetComb.h.
|
private |
hadronic W 4-vector
Definition at line 145 of file TtSemiLepJetComb.h.
|
private |
leptonic b jet
Definition at line 137 of file TtSemiLepJetComb.h.
|
private |
lepton 4-vector
Definition at line 141 of file TtSemiLepJetComb.h.
|
private |
leptonic top 4-vector
Definition at line 147 of file TtSemiLepJetComb.h.
|
private |
leptonic W 4-vector
Definition at line 149 of file TtSemiLepJetComb.h.
|
private |
neutrino candidate
Definition at line 139 of file TtSemiLepJetComb.h.
|
private |
map for user defined variables
Definition at line 151 of file TtSemiLepJetComb.h.