#include <TtSemiLepKinFitter.h>
Public Types | |
enum | Constraint { kWHadMass = 1, kWLepMass, kTopHadMass, kTopLepMass, kNeutrinoMass, kEqualTopMasses } |
supported constraints More... | |
Public Types inherited from TopKinFitter | |
enum | Param { kEMom, kEtEtaPhi, kEtThetaPhi } |
supported parameterizations More... | |
Public Member Functions | |
TtSemiEvtSolution | addKinFitInfo (TtSemiEvtSolution *asol) |
add kin fit information to the old event solution (in for legacy reasons) More... | |
template<class LeptonType > | |
int | fit (const std::vector< pat::Jet > &jets, const pat::Lepton< LeptonType > &leps, const pat::MET &met) |
kinematic fit interface More... | |
const pat::Particle | fittedHadB () const |
const pat::Particle | fittedHadP () const |
const pat::Particle | fittedHadQ () const |
const pat::Particle | fittedLepB () const |
const pat::Particle | fittedLepton () const |
const pat::Particle | fittedNeutrino () const |
TtSemiLepKinFitter () | |
default constructor More... | |
TtSemiLepKinFitter (Param jetParam, Param lepParam, Param metParam, 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... | |
~TtSemiLepKinFitter () | |
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... | |
void | setupLeptons () |
initialize lepton inputs More... | |
Private Attributes | |
std::vector< Constraint > | constrList_ |
vector of constraints to be used More... | |
pat::Particle | fittedHadB_ |
pat::Particle | fittedHadP_ |
pat::Particle | fittedHadQ_ |
pat::Particle | fittedLepB_ |
pat::Particle | fittedLepton_ |
pat::Particle | fittedNeutrino_ |
TAbsFitParticle * | hadB_ |
TAbsFitParticle * | hadP_ |
TAbsFitParticle * | hadQ_ |
Param | jetParam_ |
jet parametrization More... | |
TAbsFitParticle * | lepB_ |
Param | lepParam_ |
lepton parametrization More... | |
TAbsFitParticle * | lepton_ |
std::map< Constraint, TFitConstraintM * > | massConstr_ |
Param | metParam_ |
met parametrization More... | |
TAbsFitParticle * | neutrino_ |
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 26 of file TtSemiLepKinFitter.h.
supported constraints
Enumerator | |
---|---|
kWHadMass | |
kWLepMass | |
kTopHadMass | |
kTopLepMass | |
kNeutrinoMass | |
kEqualTopMasses |
Definition at line 31 of file TtSemiLepKinFitter.h.
|
explicit |
default constructor
default configuration is: Parametrization kEMom, Max iterations = 200, deltaS<= 5e-5, maxF<= 1e-4, no constraints
Definition at line 15 of file TtSemiLepKinFitter.cc.
References setupFitter().
|
explicit |
constructor initialized with built-in types and class enum's custom parameters
Definition at line 23 of file TtSemiLepKinFitter.cc.
References setupFitter().
TtSemiLepKinFitter::~TtSemiLepKinFitter | ( | ) |
default destructor
Definition at line 33 of file TtSemiLepKinFitter.cc.
References hadB_, hadP_, hadQ_, lepB_, lepton_, massConstr_, and neutrino_.
TtSemiEvtSolution TtSemiLepKinFitter::addKinFitInfo | ( | TtSemiEvtSolution * | asol | ) |
add kin fit information to the old event solution (in for legacy reasons)
Definition at line 225 of file TtSemiLepKinFitter.cc.
References fit(), TopKinFitter::fitProb(), fittedHadB(), fittedHadP(), fittedHadQ(), fittedLepB(), fittedLepton(), fittedNeutrino(), TopKinFitter::fitter_, TtSemiEvtSolution::getCalHadb(), TtSemiEvtSolution::getCalHadp(), TtSemiEvtSolution::getCalHadq(), TtSemiEvtSolution::getCalLepb(), TtSemiEvtSolution::getCalLepe(), TtSemiEvtSolution::getCalLepm(), TtSemiEvtSolution::getCalLepn(), TtSemiEvtSolution::getDecay(), TKinFitter::getStatus(), TtSemiLepEvtPartons::HadB, analyzePatCleaning_cfg::jets, TtSemiLepEvtPartons::LepB, TtSemiLepEvtPartons::LightQ, TtSemiLepEvtPartons::LightQBar, TtSemiEvtSolution::setFitHadb(), TtSemiEvtSolution::setFitHadp(), TtSemiEvtSolution::setFitHadq(), TtSemiEvtSolution::setFitLepb(), TtSemiEvtSolution::setFitLepl(), TtSemiEvtSolution::setFitLepn(), and TtSemiEvtSolution::setProbChi2().
Referenced by TtSemiEvtSolutionMaker::produce().
int TtSemiLepKinFitter::fit | ( | const std::vector< pat::Jet > & | jets, |
const pat::Lepton< LeptonType > & | leps, | ||
const pat::MET & | met | ||
) |
kinematic fit interface
Definition at line 155 of file TtSemiLepKinFitter.cc.
References edm::errors::Configuration, reco::LeafCandidate::energy(), reco::LeafCandidate::et(), TKinFitter::fit(), fittedHadB_, fittedHadP_, fittedHadQ_, fittedLepB_, fittedLepton_, fittedNeutrino_, TopKinFitter::fitter_, TAbsFitParticle::getCurr4Vec(), TKinFitter::getStatus(), TtSemiLepEvtPartons::HadB, hadB_, hadP_, hadQ_, jetParam_, TtSemiLepEvtPartons::LepB, lepB_, lepParam_, lepton_, TtSemiLepEvtPartons::LightQ, TtSemiLepEvtPartons::LightQBar, metParam_, neutrino_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), TAbsFitParticle::setCovMatrix(), TAbsFitParticle::setIni4Vec(), and CovarianceMatrix::setupMatrix().
Referenced by addKinFitInfo().
|
inline |
Definition at line 45 of file TtSemiLepKinFitter.h.
References fittedHadB_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by addKinFitInfo().
|
inline |
Definition at line 47 of file TtSemiLepKinFitter.h.
References fittedHadP_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by addKinFitInfo().
|
inline |
Definition at line 49 of file TtSemiLepKinFitter.h.
References fittedHadQ_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by addKinFitInfo().
|
inline |
Definition at line 51 of file TtSemiLepKinFitter.h.
References fittedLepB_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by addKinFitInfo().
|
inline |
Definition at line 53 of file TtSemiLepKinFitter.h.
References fittedLepton_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by addKinFitInfo().
|
inline |
Definition at line 55 of file TtSemiLepKinFitter.h.
References fittedNeutrino_, TopKinFitter::fitter_, and TKinFitter::getStatus().
Referenced by addKinFitInfo().
|
private |
print fitter setup
Definition at line 45 of file TtSemiLepKinFitter.cc.
References constrList_, i, jetParam_, kEqualTopMasses, kNeutrinoMass, kTopHadMass, kTopLepMass, kWHadMass, kWLepMass, lepParam_, TopKinFitter::maxDeltaS_, TopKinFitter::maxF_, TopKinFitter::maxNrIter_, metParam_, TopKinFitter::mTop_, TopKinFitter::mW_, and TopKinFitter::param().
Referenced by setupFitter().
|
private |
initialize constraints
Definition at line 114 of file TtSemiLepKinFitter.cc.
References hadB_, hadP_, hadQ_, kEqualTopMasses, kNeutrinoMass, kTopHadMass, kTopLepMass, kWHadMass, kWLepMass, lepB_, lepton_, massConstr_, TopKinFitter::mTop_, TopKinFitter::mW_, and neutrino_.
Referenced by setupFitter().
|
private |
setup fitter
Definition at line 132 of file TtSemiLepKinFitter.cc.
References TKinFitter::addConstraint(), TKinFitter::addMeasParticle(), constrList_, TopKinFitter::fitter_, hadB_, hadP_, hadQ_, i, lepB_, lepton_, massConstr_, neutrino_, printSetup(), setupConstraints(), setupJets(), and setupLeptons().
Referenced by TtSemiLepKinFitter().
|
private |
initialize jet inputs
Definition at line 73 of file TtSemiLepKinFitter.cc.
References hadB_, hadP_, hadQ_, jetParam_, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, and lepB_.
Referenced by setupFitter().
|
private |
initialize lepton inputs
Definition at line 99 of file TtSemiLepKinFitter.cc.
References TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, lepParam_, lepton_, metParam_, and neutrino_.
Referenced by setupFitter().
|
private |
vector of constraints to be used
Definition at line 95 of file TtSemiLepKinFitter.h.
Referenced by printSetup(), and setupFitter().
|
private |
Definition at line 82 of file TtSemiLepKinFitter.h.
Referenced by fit(), and fittedHadB().
|
private |
Definition at line 83 of file TtSemiLepKinFitter.h.
Referenced by fit(), and fittedHadP().
|
private |
Definition at line 84 of file TtSemiLepKinFitter.h.
Referenced by fit(), and fittedHadQ().
|
private |
Definition at line 85 of file TtSemiLepKinFitter.h.
Referenced by fit(), and fittedLepB().
|
private |
Definition at line 86 of file TtSemiLepKinFitter.h.
Referenced by fit(), and fittedLepton().
|
private |
Definition at line 87 of file TtSemiLepKinFitter.h.
Referenced by fit(), and fittedNeutrino().
|
private |
Definition at line 73 of file TtSemiLepKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtSemiLepKinFitter().
|
private |
Definition at line 74 of file TtSemiLepKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtSemiLepKinFitter().
|
private |
Definition at line 75 of file TtSemiLepKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtSemiLepKinFitter().
|
private |
jet parametrization
Definition at line 89 of file TtSemiLepKinFitter.h.
Referenced by fit(), printSetup(), and setupJets().
|
private |
Definition at line 76 of file TtSemiLepKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupJets(), and ~TtSemiLepKinFitter().
|
private |
lepton parametrization
Definition at line 91 of file TtSemiLepKinFitter.h.
Referenced by fit(), printSetup(), and setupLeptons().
|
private |
Definition at line 77 of file TtSemiLepKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupLeptons(), and ~TtSemiLepKinFitter().
|
private |
Definition at line 80 of file TtSemiLepKinFitter.h.
Referenced by setupConstraints(), setupFitter(), and ~TtSemiLepKinFitter().
|
private |
met parametrization
Definition at line 93 of file TtSemiLepKinFitter.h.
Referenced by fit(), printSetup(), and setupLeptons().
|
private |
Definition at line 78 of file TtSemiLepKinFitter.h.
Referenced by fit(), setupConstraints(), setupFitter(), setupLeptons(), and ~TtSemiLepKinFitter().