class that does the fitting More...
#include <TtFullHadKinFitter.h>
Public Member Functions | |
std::list < TtFullHadKinFitter::KinFitResult > | fit (const std::vector< pat::Jet > &jets) |
do the fitting and return fit result More... | |
KinFit () | |
default constructor More... | |
KinFit (bool useBTagging, unsigned int bTags, std::string bTagAlgo, double minBTagValueBJet, double maxBTagValueNonBJet, std::vector< edm::ParameterSet > udscResolutions, std::vector< edm::ParameterSet > bResolutions, std::vector< double > jetEnergyResolutionScaleFactors, std::vector< double > jetEnergyResolutionEtaBinning, std::string jetCorrectionLevel, int maxNJets, int maxNComb, unsigned int maxNrIter, double maxDeltaS, double maxF, unsigned int jetParam, std::vector< unsigned > constraints, double mW, double mTop) | |
special constructor More... | |
void | setBTagging (bool useBTagging, unsigned int bTags, std::string bTagAlgo, double minBTagValueBJet, double maxBTagValueNonBJet) |
set all parameters for b-tagging More... | |
void | setFitter (int maxNJets, unsigned int maxNrIter, double maxDeltaS, double maxF, unsigned int jetParam, std::vector< unsigned > constraints, double mW, double mTop) |
set parameters for fitter More... | |
void | setJEC (std::string jetCorrectionLevel) |
set jec level More... | |
void | setMatch (std::vector< int > match) |
set match to be used More... | |
void | setMatchInvalidity (bool invalidMatch) |
set the validity of a match More... | |
void | setOutput (int maxNComb) |
set number of combinations of output More... | |
void | setResolutions (std::vector< edm::ParameterSet > udscResolutions, std::vector< edm::ParameterSet > bResolutions, std::vector< double > jetEnergyResolutionScaleFactors, std::vector< double > jetEnergyResolutionEtaBinning) |
set resolutions More... | |
void | setUseOnlyMatch (bool useOnlyMatch) |
set useOnlyMatch More... | |
~KinFit () | |
default destructor More... | |
Private Member Functions | |
TtFullHadKinFitter::Constraint | constraint (unsigned int configParameter) |
std::vector < TtFullHadKinFitter::Constraint > | constraints (std::vector< unsigned int > &configParameters) |
pat::Jet | corJet (const pat::Jet &jet, const std::string &quarkType) |
helper function to construct the proper corrected jet for its corresponding quarkType More... | |
bool | doBTagging (const std::vector< pat::Jet > &jets, const unsigned int &bJetCounter, std::vector< int > &combi) |
TtFullHadKinFitter::Param | param (unsigned int configParameter) |
Private Attributes | |
std::vector< edm::ParameterSet > | bResolutions_ |
std::string | bTagAlgo_ |
input tag for b-tagging algorithm More... | |
unsigned int | bTags_ |
minimal number of b-jets More... | |
std::vector< unsigned > | constraints_ |
numbering of different possible kinematic constraints More... | |
TtFullHadKinFitter * | fitter |
kinematic fit interface More... | |
bool | invalidMatch_ |
match is invalid More... | |
std::string | jetCorrectionLevel_ |
correction level for jets More... | |
std::vector< double > | jetEnergyResolutionEtaBinning_ |
std::vector< double > | jetEnergyResolutionScaleFactors_ |
scale factors for the jet energy resolution More... | |
unsigned int | jetParam_ |
numbering of different possible jet parametrizations More... | |
std::vector< int > | match_ |
the combination that should be used More... | |
double | maxBTagValueNonBJet_ |
max value of bTag for a non-b-jet More... | |
double | maxDeltaS_ |
maximal chi2 equivalent More... | |
double | maxF_ |
maximal deviation for contstraints More... | |
int | maxNComb_ |
maximal number of combinations to be written to the event More... | |
int | maxNJets_ |
maximal number of jets (-1 possible to indicate 'all') More... | |
unsigned int | maxNrIter_ |
maximal number of iterations to be performed for the fit More... | |
double | minBTagValueBJet_ |
min value of bTag for a b-jet More... | |
double | mTop_ |
top mass value used for constraints More... | |
double | mW_ |
W mass value used for constraints. More... | |
std::vector< edm::ParameterSet > | udscResolutions_ |
store the resolutions for the jets More... | |
bool | useBTagging_ |
bool | useOnlyMatch_ |
fit or only a certain combination More... | |
class that does the fitting
Definition at line 133 of file TtFullHadKinFitter.h.
TtFullHadKinFitter::KinFit::KinFit | ( | ) |
default constructor
Definition at line 298 of file TtFullHadKinFitter.cc.
References constraints_.
TtFullHadKinFitter::KinFit::KinFit | ( | bool | useBTagging, |
unsigned int | bTags, | ||
std::string | bTagAlgo, | ||
double | minBTagValueBJet, | ||
double | maxBTagValueNonBJet, | ||
std::vector< edm::ParameterSet > | udscResolutions, | ||
std::vector< edm::ParameterSet > | bResolutions, | ||
std::vector< double > | jetEnergyResolutionScaleFactors, | ||
std::vector< double > | jetEnergyResolutionEtaBinning, | ||
std::string | jetCorrectionLevel, | ||
int | maxNJets, | ||
int | maxNComb, | ||
unsigned int | maxNrIter, | ||
double | maxDeltaS, | ||
double | maxF, | ||
unsigned int | jetParam, | ||
std::vector< unsigned > | constraints, | ||
double | mW, | ||
double | mTop | ||
) |
special constructor
Definition at line 327 of file TtFullHadKinFitter.cc.
References bResolutions_, constraints(), constraints_, fitter, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, jetParam_, maxDeltaS_, maxF_, maxNrIter_, mTop_, mW_, param(), TtFullHadKinFitter::TtFullHadKinFitter(), and udscResolutions_.
TtFullHadKinFitter::KinFit::~KinFit | ( | ) |
default destructor
Definition at line 360 of file TtFullHadKinFitter.cc.
|
private |
Definition at line 621 of file TtFullHadKinFitter.cc.
References edm::hlt::Exception, TtFullHadKinFitter::kEqualTopMasses, TtFullHadKinFitter::kTopBarMass, TtFullHadKinFitter::kTopMass, TtFullHadKinFitter::kWMinusMass, TtFullHadKinFitter::kWPlusMass, and query::result.
|
private |
Definition at line 639 of file TtFullHadKinFitter.cc.
References i, and query::result.
Referenced by KinFit(), and setFitter().
|
private |
helper function to construct the proper corrected jet for its corresponding quarkType
Definition at line 433 of file TtFullHadKinFitter.cc.
References pat::Jet::jecFactor(), metsig::jet, reco::LeafCandidate::p4(), run_regression::ret, and reco::LeafCandidate::setP4().
|
private |
Definition at line 366 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, edm::hlt::Exception, TtFullHadEvtPartons::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadEvtPartons::LightQ, and TtFullHadEvtPartons::LightQBar.
std::list< TtFullHadKinFitter::KinFitResult > TtFullHadKinFitter::KinFit::fit | ( | const std::vector< pat::Jet > & | jets | ) |
do the fitting and return fit result
analyze different jet combinations using the KinFitter (or only a given jet combination if useOnlyMatch=true)
feed out result starting with the JetComb having the smallest chi2
Definition at line 458 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, TtFullHadKinFitter::KinFitResult::B, TtFullHadEvtPartons::BBar, TtFullHadKinFitter::KinFitResult::BBar, TtFullHadKinFitter::KinFitResult::Chi2, i, metsig::jet, TtFullHadKinFitter::KinFitResult::JetCombi, TtFullHadEvtPartons::LightP, TtFullHadKinFitter::KinFitResult::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadKinFitter::KinFitResult::LightPBar, TtFullHadEvtPartons::LightQ, TtFullHadKinFitter::KinFitResult::LightQ, TtFullHadEvtPartons::LightQBar, TtFullHadKinFitter::KinFitResult::LightQBar, stdcomb::next_combination(), nPartons, TtFullHadKinFitter::KinFitResult::Prob, query::result, TtFullHadKinFitter::KinFitResult::Status, and ntuplemaker::status.
Referenced by TtFullHadKinFitProducer::produce().
|
private |
Definition at line 605 of file TtFullHadKinFitter.cc.
References edm::hlt::Exception, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, and query::result.
Referenced by KinFit().
|
inline |
set all parameters for b-tagging
Definition at line 148 of file TtFullHadKinFitter.h.
References bTagAlgo_, bTags_, maxBTagValueNonBJet_, minBTagValueBJet_, and useBTagging_.
|
inline |
set parameters for fitter
Definition at line 164 of file TtFullHadKinFitter.h.
References constraints(), constraints_, jetParam_, maxDeltaS_, maxF_, maxNJets_, maxNrIter_, mTop_, and mW_.
|
inline |
set jec level
Definition at line 176 of file TtFullHadKinFitter.h.
References jetCorrectionLevel_.
|
inline |
set match to be used
Definition at line 184 of file TtFullHadKinFitter.h.
References match(), and match_.
Referenced by TtFullHadKinFitProducer::produce().
|
inline |
set the validity of a match
Definition at line 188 of file TtFullHadKinFitter.h.
References invalidMatch_.
Referenced by TtFullHadKinFitProducer::produce().
|
inline |
set number of combinations of output
Definition at line 192 of file TtFullHadKinFitter.h.
References maxNComb_.
|
inline |
set resolutions
Definition at line 156 of file TtFullHadKinFitter.h.
References bResolutions_, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, and udscResolutions_.
|
inline |
set useOnlyMatch
Definition at line 180 of file TtFullHadKinFitter.h.
References useOnlyMatch_.
Referenced by TtFullHadKinFitProducer::produce().
|
private |
Definition at line 226 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
input tag for b-tagging algorithm
Definition at line 220 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
minimal number of b-jets
Definition at line 218 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
numbering of different possible kinematic constraints
Definition at line 245 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
kinematic fit interface
Definition at line 258 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
match is invalid
Definition at line 255 of file TtFullHadKinFitter.h.
Referenced by setMatchInvalidity().
|
private |
correction level for jets
Definition at line 231 of file TtFullHadKinFitter.h.
Referenced by setJEC().
|
private |
Definition at line 229 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
scale factors for the jet energy resolution
Definition at line 228 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
numbering of different possible jet parametrizations
Definition at line 243 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
the combination that should be used
Definition at line 253 of file TtFullHadKinFitter.h.
Referenced by setMatch().
|
private |
max value of bTag for a non-b-jet
Definition at line 224 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
maximal chi2 equivalent
Definition at line 239 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
maximal deviation for contstraints
Definition at line 241 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
maximal number of combinations to be written to the event
Definition at line 235 of file TtFullHadKinFitter.h.
Referenced by setOutput().
|
private |
maximal number of jets (-1 possible to indicate 'all')
Definition at line 233 of file TtFullHadKinFitter.h.
Referenced by setFitter().
|
private |
maximal number of iterations to be performed for the fit
Definition at line 237 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
min value of bTag for a b-jet
Definition at line 222 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
top mass value used for constraints
Definition at line 249 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
W mass value used for constraints.
Definition at line 247 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
store the resolutions for the jets
Definition at line 226 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
switch to tell whether all possible combinations should be used for the switch to tell whether to use b-tagging or not
Definition at line 216 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
fit or only a certain combination
Definition at line 251 of file TtFullHadKinFitter.h.
Referenced by setUseOnlyMatch().