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, const std::vector< edm::ParameterSet > &udscResolutions, const std::vector< edm::ParameterSet > &bResolutions, const std::vector< double > &jetEnergyResolutionScaleFactors, const std::vector< double > &jetEnergyResolutionEtaBinning, std::string jetCorrectionLevel, int maxNJets, int maxNComb, unsigned int maxNrIter, double maxDeltaS, double maxF, unsigned int jetParam, const 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, const std::vector< unsigned > &constraints, double mW, double mTop) |
set parameters for fitter More... | |
void | setJEC (std::string jetCorrectionLevel) |
set jec level More... | |
void | setMatch (const 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 (const std::vector< edm::ParameterSet > &udscResolutions, const std::vector< edm::ParameterSet > &bResolutions, const std::vector< double > &jetEnergyResolutionScaleFactors, const 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 (const 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, | ||
const std::vector< edm::ParameterSet > & | udscResolutions, | ||
const std::vector< edm::ParameterSet > & | bResolutions, | ||
const std::vector< double > & | jetEnergyResolutionScaleFactors, | ||
const std::vector< double > & | jetEnergyResolutionEtaBinning, | ||
std::string | jetCorrectionLevel, | ||
int | maxNJets, | ||
int | maxNComb, | ||
unsigned int | maxNrIter, | ||
double | maxDeltaS, | ||
double | maxF, | ||
unsigned int | jetParam, | ||
const 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.
References fitter.
|
private |
Definition at line 621 of file TtFullHadKinFitter.cc.
References Exception, TtFullHadKinFitter::kEqualTopMasses, TtFullHadKinFitter::kTopBarMass, TtFullHadKinFitter::kTopMass, TtFullHadKinFitter::kWMinusMass, TtFullHadKinFitter::kWPlusMass, and mps_fire::result.
Referenced by constraints().
|
private |
Definition at line 639 of file TtFullHadKinFitter.cc.
References constraint(), mps_fire::i, and mps_fire::result.
Referenced by KinFit().
|
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, jetCorrectionLevel_, reco::LeafCandidate::p4(), and reco::LeafCandidate::setP4().
Referenced by fit().
|
private |
Definition at line 366 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, bTagAlgo_, bTags_, Exception, TtFullHadEvtPartons::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadEvtPartons::LightQ, TtFullHadEvtPartons::LightQBar, maxBTagValueNonBJet_, minBTagValueBJet_, and useBTagging_.
Referenced by fit().
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, bTagAlgo_, TtFullHadKinFitter::KinFitResult::Chi2, corJet(), doBTagging(), TtFullHadKinFitter::fit(), TopKinFitter::fitProb(), TopKinFitter::fitS(), TtFullHadKinFitter::fittedB(), TtFullHadKinFitter::fittedBBar(), TtFullHadKinFitter::fittedLightP(), TtFullHadKinFitter::fittedLightPBar(), TtFullHadKinFitter::fittedLightQ(), TtFullHadKinFitter::fittedLightQBar(), fitter, mps_fire::i, training_settings::idx, createfilelist::int, invalidMatch_, 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, match_, maxNJets_, minBTagValueBJet_, stdcomb::next_combination(), nPartons, TtFullHadKinFitter::KinFitResult::Prob, mps_fire::result, mps_update::status, TtFullHadKinFitter::KinFitResult::Status, and useOnlyMatch_.
Referenced by trackingPlots.Iteration::modules(), and TtFullHadKinFitProducer::produce().
|
private |
Definition at line 605 of file TtFullHadKinFitter.cc.
References Exception, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, and mps_fire::result.
Referenced by KinFit().
|
inline |
set all parameters for b-tagging
Definition at line 148 of file TtFullHadKinFitter.h.
References TtSemiLepHitFitProducer_Electrons_cfi::bTagAlgo, TtFullHadKinFitProducer_cfi::bTags, TtFullHadKinFitProducer_cfi::maxBTagValueNonBJet, TtFullHadKinFitProducer_cfi::minBTagValueBJet, and TtSemiLepHitFitProducer_Electrons_cfi::useBTagging.
|
inline |
set parameters for fitter
Definition at line 164 of file TtFullHadKinFitter.h.
References createBeamHaloJobs::constraints, StEvtSolProducer_cfi::maxDeltaS, TopKinFitter::maxDeltaS_, StEvtSolProducer_cfi::maxF, TopKinFitter::maxF_, TtFullLepEvtBuilder_cfi::maxNJets, StEvtSolProducer_cfi::maxNrIter, TopKinFitter::maxNrIter_, TtSemiLepHitFitProducer_Electrons_cfi::mTop, TopKinFitter::mTop_, TtSemiLepHitFitProducer_Electrons_cfi::mW, and TopKinFitter::mW_.
|
inline |
set jec level
Definition at line 176 of file TtFullHadKinFitter.h.
References TtSemiLepHitFitProducer_Electrons_cfi::jetCorrectionLevel.
|
inline |
set match to be used
Definition at line 184 of file TtFullHadKinFitter.h.
References match().
Referenced by TtFullHadKinFitProducer::produce().
|
inline |
set the validity of a match
Definition at line 188 of file TtFullHadKinFitter.h.
Referenced by TtFullHadKinFitProducer::produce().
|
inline |
set number of combinations of output
Definition at line 192 of file TtFullHadKinFitter.h.
References pfSecondaryVertexTagInfos_cfi::constraint, createBeamHaloJobs::constraints, TtFullHadKinFitter::fit(), metsig::jet, TtSemiLepHitFitProducer_Electrons_cfi::maxNComb, TopKinFitter::param(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
set resolutions
Definition at line 156 of file TtFullHadKinFitter.h.
References TtFullHadKinFitProducer_cfi::bResolutions, TtFullHadKinFitProducer_cfi::jetEnergyResolutionEtaBinning, TtFullHadKinFitProducer_cfi::jetEnergyResolutionScaleFactors, and TtFullHadKinFitProducer_cfi::udscResolutions.
|
inline |
set useOnlyMatch
Definition at line 180 of file TtFullHadKinFitter.h.
References TtFullHadKinFitProducer_cfi::useOnlyMatch.
Referenced by TtFullHadKinFitProducer::produce().
|
private |
Definition at line 226 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
input tag for b-tagging algorithm
Definition at line 220 of file TtFullHadKinFitter.h.
Referenced by doBTagging(), and fit().
|
private |
minimal number of b-jets
Definition at line 218 of file TtFullHadKinFitter.h.
Referenced by doBTagging().
|
private |
numbering of different possible kinematic constraints
Definition at line 245 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
kinematic fit interface
Definition at line 258 of file TtFullHadKinFitter.h.
|
private |
|
private |
correction level for jets
Definition at line 231 of file TtFullHadKinFitter.h.
Referenced by corJet().
|
private |
Definition at line 229 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
scale factors for the jet energy resolution
Definition at line 228 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
numbering of different possible jet parametrizations
Definition at line 243 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
the combination that should be used
Definition at line 253 of file TtFullHadKinFitter.h.
Referenced by fit().
|
private |
max value of bTag for a non-b-jet
Definition at line 224 of file TtFullHadKinFitter.h.
Referenced by doBTagging().
|
private |
maximal chi2 equivalent
Definition at line 239 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
maximal deviation for contstraints
Definition at line 241 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
maximal number of combinations to be written to the event
Definition at line 235 of file TtFullHadKinFitter.h.
|
private |
maximal number of jets (-1 possible to indicate 'all')
Definition at line 233 of file TtFullHadKinFitter.h.
Referenced by fit().
|
private |
maximal number of iterations to be performed for the fit
Definition at line 237 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
min value of bTag for a b-jet
Definition at line 222 of file TtFullHadKinFitter.h.
Referenced by doBTagging(), and fit().
|
private |
top mass value used for constraints
Definition at line 249 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
W mass value used for constraints.
Definition at line 247 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
store the resolutions for the jets
Definition at line 226 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
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 doBTagging().
|
private |
fit or only a certain combination
Definition at line 251 of file TtFullHadKinFitter.h.
Referenced by fit().