#include <TtFullHadKinFitter.h>
Classes | |
class | KinFit |
class that does the fitting More... | |
struct | KinFitResult |
struct for fit results More... | |
Public Types | |
enum | Constraint { kWPlusMass = 1, kWMinusMass, kTopMass, kTopBarMass, kEqualTopMasses } |
supported constraints More... | |
Public Types inherited from TopKinFitter | |
enum | Param { kEMom, kEtEtaPhi, kEtThetaPhi } |
supported parameterizations More... | |
Public Member Functions | |
TtHadEvtSolution | addKinFitInfo (TtHadEvtSolution *asol) |
add kin fit information to the old event solution (in for legacy reasons) More... | |
int | fit (const std::vector< pat::Jet > &jets) |
kinematic fit interface More... | |
const pat::Particle | fittedB () const |
return fitted b quark candidate More... | |
const pat::Particle | fittedBBar () const |
return fitted b quark candidate More... | |
const pat::Particle | fittedLightP () const |
return fitted light quark candidate More... | |
const pat::Particle | fittedLightPBar () const |
return fitted light quark candidate More... | |
const pat::Particle | fittedLightQ () const |
return fitted light quark candidate More... | |
const pat::Particle | fittedLightQBar () const |
return fitted light quark candidate More... | |
std::vector< TtFullHadKinFitter::Constraint > | intToConstraint (const std::vector< unsigned int > &constraints) |
used to convert vector of int's to vector of constraints (just used in TtFullHadKinFitter(int, int, double, double, std::vector<unsigned int>)) More... | |
TtFullHadKinFitter () | |
default constructor More... | |
TtFullHadKinFitter (int jetParam, int maxNrIter, double maxDeltaS, double maxF, const std::vector< unsigned int > &constraints, double mW=80.4, double mTop=173., const std::vector< edm::ParameterSet > *udscResolutions=nullptr, const std::vector< edm::ParameterSet > *bResolutions=nullptr, const std::vector< double > *jetEnergyResolutionScaleFactors=nullptr, const std::vector< double > *jetEnergyResolutionEtaBinning=nullptr) | |
constructor initialized with build-in types as custom parameters (only included to keep TtHadEvtSolutionMaker.cc running) More... | |
TtFullHadKinFitter (Param jetParam, int maxNrIter, double maxDeltaS, double maxF, const std::vector< Constraint > &constraints, double mW=80.4, double mTop=173., const std::vector< edm::ParameterSet > *udscResolutions=nullptr, const std::vector< edm::ParameterSet > *bResolutions=nullptr, const std::vector< double > *jetEnergyResolutionScaleFactors=nullptr, const std::vector< double > *jetEnergyResolutionEtaBinning=nullptr) | |
constructor initialized with built-in types and class enum's custom parameters More... | |
~TtFullHadKinFitter () | |
default destructor More... | |
Public Member Functions inherited from TopKinFitter | |
int | fitNrIter () const |
return number of used iterations More... | |
double | fitProb () const |
return fit probability More... | |
double | fitS () const |
return chi2 of fit (not normalized to degrees of freedom) More... | |
void | setVerbosity (const int verbosityLevel) |
allows to change the verbosity of the TKinFitter More... | |
TopKinFitter (const int maxNrIter=200, const double maxDeltaS=5e-5, const double maxF=1e-4, const double mW=80.4, const double mTop=173.) | |
default constructor More... | |
~TopKinFitter () | |
default destructor More... | |
Private Member Functions | |
void | printSetup () const |
print fitter setup More... | |
void | setupConstraints () |
initialize constraints More... | |
void | setupFitter () |
setup fitter More... | |
void | setupJets () |
initialize jet inputs More... | |
Private Attributes | |
std::unique_ptr< TAbsFitParticle > | b_ |
input particles More... | |
std::unique_ptr< TAbsFitParticle > | bBar_ |
const std::vector< edm::ParameterSet > * | bResolutions_ = nullptr |
std::vector< Constraint > | constraints_ |
vector of constraints to be used More... | |
std::unique_ptr< CovarianceMatrix > | covM_ |
get object resolutions and put them into a matrix More... | |
pat::Particle | fittedB_ |
output particles More... | |
pat::Particle | fittedBBar_ |
pat::Particle | fittedLightP_ |
pat::Particle | fittedLightPBar_ |
pat::Particle | fittedLightQ_ |
pat::Particle | fittedLightQBar_ |
const std::vector< double > * | jetEnergyResolutionEtaBinning_ = nullptr |
const std::vector< double > * | jetEnergyResolutionScaleFactors_ = nullptr |
scale factors for the jet energy resolution More... | |
Param | jetParam_ |
jet parametrization More... | |
std::unique_ptr< TAbsFitParticle > | lightP_ |
std::unique_ptr< TAbsFitParticle > | lightPBar_ |
std::unique_ptr< TAbsFitParticle > | lightQ_ |
std::unique_ptr< TAbsFitParticle > | lightQBar_ |
std::map< Constraint, std::unique_ptr< TFitConstraintM > > | massConstr_ |
supported constraints More... | |
const std::vector< edm::ParameterSet > * | udscResolutions_ = nullptr |
resolutions More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TopKinFitter | |
std::string | param (const Param ¶m) const |
convert Param to human readable form More... | |
Protected Attributes inherited from TopKinFitter | |
std::unique_ptr< TKinFitter > | fitter_ |
kinematic fitter More... | |
double | maxDeltaS_ |
maximal allowed chi2 (not normalized to degrees of freedom) More... | |
double | maxF_ |
maximal allowed distance from constraints More... | |
int | maxNrIter_ |
maximal allowed number of iterations to be used for the fit More... | |
double | mTop_ |
top mass value used for constraints More... | |
double | mW_ |
W mass value used for constraints. More... | |
Definition at line 29 of file TtFullHadKinFitter.h.
supported constraints
Enumerator | |
---|---|
kWPlusMass | |
kWMinusMass | |
kTopMass | |
kTopBarMass | |
kEqualTopMasses |
Definition at line 32 of file TtFullHadKinFitter.h.
TtFullHadKinFitter::TtFullHadKinFitter | ( | ) |
default constructor
Definition at line 16 of file TtFullHadKinFitter.cc.
References setupFitter().
TtFullHadKinFitter::TtFullHadKinFitter | ( | int | jetParam, |
int | maxNrIter, | ||
double | maxDeltaS, | ||
double | maxF, | ||
const std::vector< unsigned int > & | constraints, | ||
double | mW = 80.4 , |
||
double | mTop = 173. , |
||
const std::vector< edm::ParameterSet > * | udscResolutions = nullptr , |
||
const std::vector< edm::ParameterSet > * | bResolutions = nullptr , |
||
const std::vector< double > * | jetEnergyResolutionScaleFactors = nullptr , |
||
const std::vector< double > * | jetEnergyResolutionEtaBinning = nullptr |
||
) |
constructor initialized with build-in types as custom parameters (only included to keep TtHadEvtSolutionMaker.cc running)
Definition at line 30 of file TtFullHadKinFitter.cc.
References setupFitter().
TtFullHadKinFitter::TtFullHadKinFitter | ( | Param | jetParam, |
int | maxNrIter, | ||
double | maxDeltaS, | ||
double | maxF, | ||
const std::vector< Constraint > & | constraints, | ||
double | mW = 80.4 , |
||
double | mTop = 173. , |
||
const std::vector< edm::ParameterSet > * | udscResolutions = nullptr , |
||
const std::vector< edm::ParameterSet > * | bResolutions = nullptr , |
||
const std::vector< double > * | jetEnergyResolutionScaleFactors = nullptr , |
||
const std::vector< double > * | jetEnergyResolutionEtaBinning = nullptr |
||
) |
constructor initialized with built-in types and class enum's custom parameters
constructor initialized with build-in types and class enum's custom parameters
Definition at line 52 of file TtFullHadKinFitter.cc.
References setupFitter().
|
default |
default destructor
TtHadEvtSolution TtFullHadKinFitter::addKinFitInfo | ( | TtHadEvtSolution * | asol | ) |
add kin fit information to the old event solution (in for legacy reasons)
Definition at line 277 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, fit(), TopKinFitter::fitProb(), fittedB_, fittedBBar_, fittedLightP_, fittedLightPBar_, fittedLightQ_, fittedLightQBar_, TopKinFitter::fitter_, TtHadEvtSolution::getCalHadb(), TtHadEvtSolution::getCalHadbbar(), TtHadEvtSolution::getCalHadj(), TtHadEvtSolution::getCalHadk(), TtHadEvtSolution::getCalHadp(), TtHadEvtSolution::getCalHadq(), PDWG_EXODelayedJetMET_cff::jets, TtFullHadEvtPartons::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadEvtPartons::LightQ, TtFullHadEvtPartons::LightQBar, TtHadEvtSolution::setFitHadb(), TtHadEvtSolution::setFitHadbbar(), TtHadEvtSolution::setFitHadj(), TtHadEvtSolution::setFitHadk(), TtHadEvtSolution::setFitHadp(), TtHadEvtSolution::setFitHadq(), and TtHadEvtSolution::setProbChi2().
Referenced by TtHadEvtSolutionMaker::produce().
int TtFullHadKinFitter::fit | ( | const std::vector< pat::Jet > & | jets | ) |
kinematic fit interface
Definition at line 186 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, b, b_, TtFullHadEvtPartons::BBar, bBar_, edm::errors::Configuration, covM_, reco::LeafCandidate::energy(), Exception, fittedB_, fittedBBar_, fittedLightP_, fittedLightPBar_, fittedLightQ_, fittedLightQBar_, TopKinFitter::fitter_, jetParam_, PDWG_EXODelayedJetMET_cff::jets, TtFullHadEvtPartons::LightP, lightP_, TtFullHadEvtPartons::LightPBar, lightPBar_, TtFullHadEvtPartons::LightQ, lightQ_, TtFullHadEvtPartons::LightQBar, lightQBar_, callgraph::m2, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
Referenced by addKinFitInfo(), and trackingPlots.Iteration::modules().
|
inline |
return fitted b quark candidate
Definition at line 69 of file TtFullHadKinFitter.h.
References fittedB_, and TopKinFitter::fitter_.
|
inline |
return fitted b quark candidate
Definition at line 71 of file TtFullHadKinFitter.h.
References fittedBBar_, and TopKinFitter::fitter_.
|
inline |
return fitted light quark candidate
Definition at line 79 of file TtFullHadKinFitter.h.
References fittedLightP_, and TopKinFitter::fitter_.
|
inline |
return fitted light quark candidate
Definition at line 81 of file TtFullHadKinFitter.h.
References fittedLightPBar_, and TopKinFitter::fitter_.
|
inline |
return fitted light quark candidate
Definition at line 73 of file TtFullHadKinFitter.h.
References fittedLightQ_, and TopKinFitter::fitter_.
|
inline |
return fitted light quark candidate
Definition at line 75 of file TtFullHadKinFitter.h.
References fittedLightQBar_, and TopKinFitter::fitter_.
std::vector< TtFullHadKinFitter::Constraint > TtFullHadKinFitter::intToConstraint | ( | const std::vector< unsigned int > & | constraints | ) |
used to convert vector of int's to vector of constraints (just used in TtFullHadKinFitter(int, int, double, double, std::vector<unsigned int>))
Definition at line 19 of file TtFullHadKinFitter.cc.
References createBeamHaloJobs::constraints, and mps_fire::i.
|
private |
print fitter setup
Definition at line 77 of file TtFullHadKinFitter.cc.
References constraints_, mps_fire::i, jetParam_, kEqualTopMasses, kTopBarMass, kTopMass, kWMinusMass, kWPlusMass, TopKinFitter::maxDeltaS_, TopKinFitter::maxF_, TopKinFitter::maxNrIter_, TopKinFitter::mTop_, TopKinFitter::mW_, and TopKinFitter::param().
Referenced by setupFitter().
|
private |
initialize constraints
Definition at line 142 of file TtFullHadKinFitter.cc.
References b_, bBar_, kEqualTopMasses, kTopBarMass, kTopMass, kWMinusMass, kWPlusMass, lightP_, lightPBar_, lightQ_, lightQBar_, massConstr_, TopKinFitter::mTop_, and TopKinFitter::mW_.
Referenced by setupFitter().
|
private |
setup fitter
Definition at line 159 of file TtFullHadKinFitter.cc.
References b_, bBar_, bResolutions_, constraints_, covM_, TopKinFitter::fitter_, mps_fire::i, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, lightP_, lightPBar_, lightQ_, lightQBar_, massConstr_, printSetup(), setupConstraints(), setupJets(), and udscResolutions_.
Referenced by TtFullHadKinFitter().
|
private |
initialize jet inputs
Definition at line 110 of file TtFullHadKinFitter.cc.
References b_, bBar_, jetParam_, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, lightP_, lightPBar_, lightQ_, and lightQBar_.
Referenced by setupFitter().
|
private |
input particles
Definition at line 99 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), and setupJets().
|
private |
Definition at line 100 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), and setupJets().
|
private |
Definition at line 107 of file TtFullHadKinFitter.h.
Referenced by setupFitter().
|
private |
vector of constraints to be used
Definition at line 123 of file TtFullHadKinFitter.h.
Referenced by printSetup(), and setupFitter().
|
private |
get object resolutions and put them into a matrix
Definition at line 126 of file TtFullHadKinFitter.h.
Referenced by fit(), and setupFitter().
|
private |
output particles
Definition at line 114 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedB().
|
private |
Definition at line 115 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedBBar().
|
private |
Definition at line 118 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightP().
|
private |
Definition at line 119 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightPBar().
|
private |
Definition at line 116 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightQ().
|
private |
Definition at line 117 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightQBar().
|
private |
Definition at line 110 of file TtFullHadKinFitter.h.
Referenced by setupFitter().
|
private |
scale factors for the jet energy resolution
Definition at line 109 of file TtFullHadKinFitter.h.
Referenced by setupFitter().
|
private |
jet parametrization
Definition at line 121 of file TtFullHadKinFitter.h.
Referenced by fit(), printSetup(), and setupJets().
|
private |
Definition at line 103 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), and setupJets().
|
private |
Definition at line 104 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), and setupJets().
|
private |
Definition at line 101 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), and setupJets().
|
private |
Definition at line 102 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), and setupJets().
|
private |
supported constraints
Definition at line 112 of file TtFullHadKinFitter.h.
Referenced by setupConstraints(), and setupFitter().
|
private |