#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=0, const std::vector< edm::ParameterSet > *bResolutions=0, const std::vector< double > *jetEnergyResolutionScaleFactors=0, const std::vector< double > *jetEnergyResolutionEtaBinning=0) | |
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=0, const std::vector< edm::ParameterSet > *bResolutions=0, const std::vector< double > *jetEnergyResolutionScaleFactors=0, const std::vector< double > *jetEnergyResolutionEtaBinning=0) | |
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 | |
TAbsFitParticle * | b_ |
input particles More... | |
TAbsFitParticle * | bBar_ |
const std::vector< edm::ParameterSet > * | bResolutions_ |
std::vector< Constraint > | constraints_ |
vector of constraints to be used More... | |
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_ |
const std::vector< double > * | jetEnergyResolutionScaleFactors_ |
scale factors for the jet energy resolution More... | |
Param | jetParam_ |
jet parametrization More... | |
TAbsFitParticle * | lightP_ |
TAbsFitParticle * | lightPBar_ |
TAbsFitParticle * | lightQ_ |
TAbsFitParticle * | lightQBar_ |
std::map< Constraint, TFitConstraintM * > | massConstr_ |
supported constraints More... | |
const std::vector< edm::ParameterSet > * | udscResolutions_ |
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 | |
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 33 of file TtFullHadKinFitter.h.
TtFullHadKinFitter::TtFullHadKinFitter | ( | ) |
default constructor
Definition at line 16 of file TtFullHadKinFitter.cc.
References setupFitter().
Referenced by TtFullHadKinFitter::KinFit::KinFit().
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 = 0 , |
||
const std::vector< edm::ParameterSet > * | bResolutions = 0 , |
||
const std::vector< double > * | jetEnergyResolutionScaleFactors = 0 , |
||
const std::vector< double > * | jetEnergyResolutionEtaBinning = 0 |
||
) |
constructor initialized with build-in types as custom parameters (only included to keep TtHadEvtSolutionMaker.cc running)
Definition at line 40 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 = 0 , |
||
const std::vector< edm::ParameterSet > * | bResolutions = 0 , |
||
const std::vector< double > * | jetEnergyResolutionScaleFactors = 0 , |
||
const std::vector< double > * | jetEnergyResolutionEtaBinning = 0 |
||
) |
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 57 of file TtFullHadKinFitter.cc.
References setupFitter().
TtFullHadKinFitter::~TtFullHadKinFitter | ( | ) |
default destructor
Definition at line 74 of file TtFullHadKinFitter.cc.
References b_, bBar_, covM_, lightP_, lightPBar_, lightQ_, lightQBar_, and massConstr_.
TtHadEvtSolution TtFullHadKinFitter::addKinFitInfo | ( | TtHadEvtSolution * | asol | ) |
add kin fit information to the old event solution (in for legacy reasons)
Definition at line 265 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(), TKinFitter::getStatus(), fwrapper::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 fittedLightPBar(), and TtHadEvtSolutionMaker::produce().
int TtFullHadKinFitter::fit | ( | const std::vector< pat::Jet > & | jets | ) |
kinematic fit interface
Definition at line 199 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, b, b_, TtFullHadEvtPartons::BBar, bBar_, edm::errors::Configuration, covM_, reco::LeafCandidate::energy(), Exception, TKinFitter::fit(), fittedB_, fittedBBar_, fittedLightP_, fittedLightPBar_, fittedLightQ_, fittedLightQBar_, TopKinFitter::fitter_, TAbsFitParticle::getCurr4Vec(), TKinFitter::getStatus(), jetParam_, TtFullHadEvtPartons::LightP, lightP_, TtFullHadEvtPartons::LightPBar, lightPBar_, TtFullHadEvtPartons::LightQ, lightQ_, TtFullHadEvtPartons::LightQBar, lightQBar_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), TAbsFitParticle::setCovMatrix(), TAbsFitParticle::setIni4Vec(), and CovarianceMatrix::setupMatrix().
Referenced by addKinFitInfo(), TtFullHadKinFitter::KinFit::fit(), trackingPlots.Iteration::modules(), and TtFullHadKinFitter::KinFit::setOutput().
|
inline |
return fitted b quark candidate
Definition at line 60 of file TtFullHadKinFitter.h.
References fittedB_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by TtFullHadKinFitter::KinFit::fit().
|
inline |
return fitted b quark candidate
Definition at line 62 of file TtFullHadKinFitter.h.
References fittedBBar_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by TtFullHadKinFitter::KinFit::fit().
|
inline |
return fitted light quark candidate
Definition at line 68 of file TtFullHadKinFitter.h.
References fittedLightP_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by TtFullHadKinFitter::KinFit::fit().
|
inline |
return fitted light quark candidate
Definition at line 70 of file TtFullHadKinFitter.h.
References addKinFitInfo(), fittedLightPBar_, TopKinFitter::fitter_, TKinFitter::getStatus(), printSetup(), setupConstraints(), setupFitter(), and setupJets().
Referenced by TtFullHadKinFitter::KinFit::fit().
|
inline |
return fitted light quark candidate
Definition at line 64 of file TtFullHadKinFitter.h.
References fittedLightQ_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by TtFullHadKinFitter::KinFit::fit().
|
inline |
return fitted light quark candidate
Definition at line 66 of file TtFullHadKinFitter.h.
References fittedLightQBar_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by TtFullHadKinFitter::KinFit::fit().
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 28 of file TtFullHadKinFitter.cc.
References i.
|
private |
print fitter setup
Definition at line 89 of file TtFullHadKinFitter.cc.
References constraints_, i, jetParam_, kEqualTopMasses, kTopBarMass, kTopMass, kWMinusMass, kWPlusMass, TopKinFitter::maxDeltaS_, TopKinFitter::maxF_, TopKinFitter::maxNrIter_, TopKinFitter::mTop_, TopKinFitter::mW_, and TopKinFitter::param().
Referenced by fittedLightPBar(), and setupFitter().
|
private |
initialize constraints
Definition at line 150 of file TtFullHadKinFitter.cc.
References b_, bBar_, kEqualTopMasses, kTopBarMass, kTopMass, kWMinusMass, kWPlusMass, lightP_, lightPBar_, lightQ_, lightQBar_, massConstr_, TopKinFitter::mTop_, and TopKinFitter::mW_.
Referenced by fittedLightPBar(), and setupFitter().
|
private |
setup fitter
Definition at line 169 of file TtFullHadKinFitter.cc.
References TKinFitter::addConstraint(), TKinFitter::addMeasParticle(), b_, bBar_, bResolutions_, constraints_, covM_, TopKinFitter::fitter_, i, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, lightP_, lightPBar_, lightQ_, lightQBar_, massConstr_, printSetup(), setupConstraints(), setupJets(), and udscResolutions_.
Referenced by fittedLightPBar(), and TtFullHadKinFitter().
|
private |
initialize jet inputs
Definition at line 116 of file TtFullHadKinFitter.cc.
References b_, bBar_, jetParam_, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, lightP_, lightPBar_, lightQ_, and lightQBar_.
Referenced by fittedLightPBar(), and setupFitter().
|
private |
input particles
Definition at line 86 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 87 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 94 of file TtFullHadKinFitter.h.
Referenced by setupFitter().
|
private |
vector of constraints to be used
Definition at line 110 of file TtFullHadKinFitter.h.
Referenced by printSetup(), and setupFitter().
|
private |
get object resolutions and put them into a matrix
Definition at line 113 of file TtFullHadKinFitter.h.
Referenced by fit(), setupFitter(), and ~TtFullHadKinFitter().
|
private |
output particles
Definition at line 101 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedB().
|
private |
Definition at line 102 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedBBar().
|
private |
Definition at line 105 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightP().
|
private |
Definition at line 106 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightPBar().
|
private |
Definition at line 103 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightQ().
|
private |
Definition at line 104 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightQBar().
|
private |
Definition at line 97 of file TtFullHadKinFitter.h.
Referenced by setupFitter().
|
private |
scale factors for the jet energy resolution
Definition at line 96 of file TtFullHadKinFitter.h.
Referenced by setupFitter().
|
private |
jet parametrization
Definition at line 108 of file TtFullHadKinFitter.h.
Referenced by fit(), printSetup(), and setupJets().
|
private |
Definition at line 90 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 91 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 88 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 89 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
supported constraints
Definition at line 99 of file TtFullHadKinFitter.h.
Referenced by setupConstraints(), setupFitter(), and ~TtFullHadKinFitter().
|
private |