#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... | |
int | fit (const std::vector< pat::Jet > &jets, const std::vector< edm::ParameterSet > udscResolutions, const std::vector< edm::ParameterSet > bResolutions, const double resolutionSmearFactor) |
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 (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, std::vector< unsigned int > constraints, double mW=80.4, double mTop=173.) | |
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, std::vector< Constraint > constraints, double mW=80.4, double mTop=173.) | |
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... | |
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_ |
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_ |
Param | jetParam_ |
jet parametrization More... | |
TAbsFitParticle * | lightP_ |
TAbsFitParticle * | lightPBar_ |
TAbsFitParticle * | lightQ_ |
TAbsFitParticle * | lightQBar_ |
std::map< Constraint, TFitConstraintM * > | massConstr_ |
supported constraints 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_ |
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 covM, and setupFitter().
Referenced by TtFullHadKinFitter::KinFit::KinFit().
TtFullHadKinFitter::TtFullHadKinFitter | ( | int | jetParam, |
int | maxNrIter, | ||
double | maxDeltaS, | ||
double | maxF, | ||
std::vector< unsigned int > | constraints, | ||
double | mW = 80.4 , |
||
double | mTop = 173. |
||
) |
constructor initialized with build-in types as custom parameters (only included to keep TtHadEvtSolutionMaker.cc running)
Definition at line 39 of file TtFullHadKinFitter.cc.
References covM, and setupFitter().
TtFullHadKinFitter::TtFullHadKinFitter | ( | Param | jetParam, |
int | maxNrIter, | ||
double | maxDeltaS, | ||
double | maxF, | ||
std::vector< Constraint > | constraints, | ||
double | mW = 80.4 , |
||
double | mTop = 173. |
||
) |
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 50 of file TtFullHadKinFitter.cc.
References covM, and setupFitter().
TtFullHadKinFitter::~TtFullHadKinFitter | ( | ) |
default destructor
Definition at line 61 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 253 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(), analyzePatCleaning_cfg::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 245 of file TtFullHadKinFitter.cc.
Referenced by addKinFitInfo().
int TtFullHadKinFitter::fit | ( | const std::vector< pat::Jet > & | jets, |
const std::vector< edm::ParameterSet > | udscResolutions, | ||
const std::vector< edm::ParameterSet > | bResolutions, | ||
const double | resolutionSmearFactor = 1. |
||
) |
kinematic fit interface
Definition at line 178 of file TtFullHadKinFitter.cc.
References TtFullHadEvtPartons::B, b, b_, TtFullHadEvtPartons::BBar, bBar_, edm::errors::Configuration, covM, reco::LeafCandidate::energy(), edm::hlt::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().
|
inline |
return fitted b quark candidate
Definition at line 53 of file TtFullHadKinFitter.h.
References fittedB_, TopKinFitter::fitter_, and TKinFitter::getStatus().
|
inline |
return fitted b quark candidate
Definition at line 55 of file TtFullHadKinFitter.h.
References fittedBBar_, TopKinFitter::fitter_, and TKinFitter::getStatus().
|
inline |
return fitted light quark candidate
Definition at line 61 of file TtFullHadKinFitter.h.
References fittedLightP_, TopKinFitter::fitter_, and TKinFitter::getStatus().
|
inline |
return fitted light quark candidate
Definition at line 63 of file TtFullHadKinFitter.h.
References fittedLightPBar_, TopKinFitter::fitter_, and TKinFitter::getStatus().
|
inline |
return fitted light quark candidate
Definition at line 57 of file TtFullHadKinFitter.h.
References fittedLightQ_, TopKinFitter::fitter_, and TKinFitter::getStatus().
|
inline |
return fitted light quark candidate
Definition at line 59 of file TtFullHadKinFitter.h.
References fittedLightQBar_, TopKinFitter::fitter_, and TKinFitter::getStatus().
std::vector< TtFullHadKinFitter::Constraint > TtFullHadKinFitter::intToConstraint | ( | 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 27 of file TtFullHadKinFitter.cc.
References i.
|
private |
print fitter setup
Definition at line 76 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 setupFitter().
|
private |
initialize constraints
Definition at line 137 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 156 of file TtFullHadKinFitter.cc.
References TKinFitter::addConstraint(), TKinFitter::addMeasParticle(), b_, bBar_, constraints_, TopKinFitter::fitter_, i, lightP_, lightPBar_, lightQ_, lightQBar_, massConstr_, printSetup(), setupConstraints(), and setupJets().
Referenced by TtFullHadKinFitter().
|
private |
initialize jet inputs
Definition at line 103 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 79 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 80 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
vector of constraints to be used
Definition at line 97 of file TtFullHadKinFitter.h.
Referenced by printSetup(), and setupFitter().
|
private |
get object resolutions and put them into a matrix
Definition at line 100 of file TtFullHadKinFitter.h.
Referenced by fit(), TtFullHadKinFitter(), and ~TtFullHadKinFitter().
|
private |
output particles
Definition at line 88 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedB().
|
private |
Definition at line 89 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedBBar().
|
private |
Definition at line 92 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightP().
|
private |
Definition at line 93 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightPBar().
|
private |
Definition at line 90 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightQ().
|
private |
Definition at line 91 of file TtFullHadKinFitter.h.
Referenced by addKinFitInfo(), fit(), and fittedLightQBar().
|
private |
jet parametrization
Definition at line 95 of file TtFullHadKinFitter.h.
Referenced by fit(), printSetup(), and setupJets().
|
private |
Definition at line 83 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 84 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 81 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
Definition at line 82 of file TtFullHadKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtFullHadKinFitter().
|
private |
supported constraints
Definition at line 86 of file TtFullHadKinFitter.h.
Referenced by setupConstraints(), setupFitter(), and ~TtFullHadKinFitter().