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... | |
std::unique_ptr< 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 145 of file TtFullHadKinFitter.h.
TtFullHadKinFitter::KinFit::KinFit | ( | ) |
default constructor
Definition at line 308 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 336 of file TtFullHadKinFitter.cc.
References bResolutions_, constraints(), constraints_, fitter, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, jetParam_, maxDeltaS_, maxF_, maxNrIter_, mTop_, mW_, param(), and udscResolutions_.
|
default |
default destructor
|
private |
Definition at line 636 of file TtFullHadKinFitter.cc.
References Exception, TtFullHadKinFitter::kEqualTopMasses, TtFullHadKinFitter::kTopBarMass, TtFullHadKinFitter::kTopMass, TtFullHadKinFitter::kWMinusMass, TtFullHadKinFitter::kWPlusMass, and mps_fire::result.
|
private |
Definition at line 661 of file TtFullHadKinFitter.cc.
References HLT_2024v14_cff::constraint, mps_fire::i, and mps_fire::result.
Referenced by KinFit(), and setFitter().
|
private |
helper function to construct the proper corrected jet for its corresponding quarkType
Definition at line 450 of file TtFullHadKinFitter.cc.
References metsig::jet, and runTheMatrix::ret.
|
private |
Definition at line 393 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, Exception, PDWG_EXODelayedJetMET_cff::jets, 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 471 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, mps_fire::i, heavyIonCSV_trainingSettings::idx, createfilelist::int, metsig::jet, PDWG_EXODelayedJetMET_cff::jets, TtFullHadEvtPartons::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadEvtPartons::LightQ, TtFullHadEvtPartons::LightQBar, stdcomb::next_combination(), nPartons, mps_fire::result, and mps_update::status.
Referenced by trackingPlots.Iteration::modules().
|
private |
Definition at line 616 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 173 of file TtFullHadKinFitter.h.
References TtSemiLepHitFitProducer_Electrons_cfi::bTagAlgo, bTagAlgo_, TtFullHadKinFitProducer_cfi::bTags, bTags_, TtFullHadKinFitProducer_cfi::maxBTagValueNonBJet, maxBTagValueNonBJet_, TtFullHadKinFitProducer_cfi::minBTagValueBJet, minBTagValueBJet_, TtSemiLepHitFitProducer_Electrons_cfi::useBTagging, and useBTagging_.
|
inline |
set parameters for fitter
Definition at line 195 of file TtFullHadKinFitter.h.
References constraints(), constraints_, jetParam_, StEvtSolProducer_cfi::maxDeltaS, maxDeltaS_, StEvtSolProducer_cfi::maxF, maxF_, SUSYDQMAnalyzer_cfi::maxNJets, maxNJets_, StEvtSolProducer_cfi::maxNrIter, maxNrIter_, TtSemiLepHitFitProducer_Electrons_cfi::mTop, mTop_, TtSemiLepHitFitProducer_Electrons_cfi::mW, and mW_.
|
inline |
set jec level
Definition at line 213 of file TtFullHadKinFitter.h.
References TtSemiLepHitFitProducer_Electrons_cfi::jetCorrectionLevel, and jetCorrectionLevel_.
|
inline |
set match to be used
Definition at line 217 of file TtFullHadKinFitter.h.
References match(), and match_.
|
inline |
set the validity of a match
Definition at line 219 of file TtFullHadKinFitter.h.
References invalidMatch_.
|
inline |
set number of combinations of output
Definition at line 221 of file TtFullHadKinFitter.h.
References TtSemiLepHitFitProducer_Electrons_cfi::maxNComb, and maxNComb_.
|
inline |
set resolutions
Definition at line 185 of file TtFullHadKinFitter.h.
References TtFullHadKinFitProducer_cfi::bResolutions, bResolutions_, TtFullHadKinFitProducer_cfi::jetEnergyResolutionEtaBinning, jetEnergyResolutionEtaBinning_, TtFullHadKinFitProducer_cfi::jetEnergyResolutionScaleFactors, jetEnergyResolutionScaleFactors_, TtFullHadKinFitProducer_cfi::udscResolutions, and udscResolutions_.
|
inline |
set useOnlyMatch
Definition at line 215 of file TtFullHadKinFitter.h.
References TtFullHadKinFitProducer_cfi::useOnlyMatch, and useOnlyMatch_.
|
private |
Definition at line 252 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
input tag for b-tagging algorithm
Definition at line 246 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
minimal number of b-jets
Definition at line 244 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
numbering of different possible kinematic constraints
Definition at line 271 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
kinematic fit interface
Definition at line 284 of file TtFullHadKinFitter.h.
Referenced by KinFit().
|
private |
match is invalid
Definition at line 281 of file TtFullHadKinFitter.h.
Referenced by setMatchInvalidity().
|
private |
correction level for jets
Definition at line 257 of file TtFullHadKinFitter.h.
Referenced by setJEC().
|
private |
Definition at line 255 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
scale factors for the jet energy resolution
Definition at line 254 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setResolutions().
|
private |
numbering of different possible jet parametrizations
Definition at line 269 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
the combination that should be used
Definition at line 279 of file TtFullHadKinFitter.h.
Referenced by setMatch().
|
private |
max value of bTag for a non-b-jet
Definition at line 250 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
maximal chi2 equivalent
Definition at line 265 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
maximal deviation for contstraints
Definition at line 267 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
maximal number of combinations to be written to the event
Definition at line 261 of file TtFullHadKinFitter.h.
Referenced by setOutput().
|
private |
maximal number of jets (-1 possible to indicate 'all')
Definition at line 259 of file TtFullHadKinFitter.h.
Referenced by setFitter().
|
private |
maximal number of iterations to be performed for the fit
Definition at line 263 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
min value of bTag for a b-jet
Definition at line 248 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
top mass value used for constraints
Definition at line 275 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
W mass value used for constraints.
Definition at line 273 of file TtFullHadKinFitter.h.
Referenced by KinFit(), and setFitter().
|
private |
store the resolutions for the jets
Definition at line 252 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 242 of file TtFullHadKinFitter.h.
Referenced by setBTagging().
|
private |
fit or only a certain combination
Definition at line 277 of file TtFullHadKinFitter.h.
Referenced by setUseOnlyMatch().