#include <CandMassKinFitter.h>
Definition at line 6 of file CandMassKinFitter.h.
◆ CandMassKinFitter()
CandMassKinFitter::CandMassKinFitter |
( |
double |
m | ) |
|
|
inlineexplicit |
◆ set()
Definition at line 11 of file CandMassKinFitter.cc.
12 TKinFitter fitter(
"CandMassFit",
"CandMassFit");
14 size_t daus =
c.numberOfDaughters();
15 vector<TMatrixD>
errors(daus, TMatrix(3, 3));
16 vector<TVector3> momenta(daus);
17 vector<TFitParticleMCCart*>
particles(daus,
nullptr);
19 for (
size_t i = 0;
i < daus; ++
i) {
23 TVector3& mom = momenta[
i];
24 mom = TVector3(
p4.px(),
p4.py(),
p4.pz());
37 fitter.setMaxNbIter(30);
38 fitter.setMaxDeltaS(1
e-2);
40 fitter.setVerbosity(0);
43 TLorentzVector sum(0, 0, 0, 0);
44 for (
size_t i = 0;
i < daus; ++
i) {
47 const TLorentzVector*
p4 =
part->getCurr4Vec();
53 return FitQuality(fitter.getS(), fitter.getNDF());
References TKinFitter::addConstraint(), TKinFitter::addMeasParticle(), HltBtagPostValidation_cff::c, HLT_2018_cff::constraint, MillePedeFileConverter_cfg::e, runTheMatrix::err, MessageLogger_cfi::errors, TKinFitter::fit(), reco::Candidate::get(), TKinFitter::getNDF(), TKinFitter::getS(), mps_fire::i, reco::Candidate::mass(), Skims_PA_cff::name, reco::Candidate::p4(), p4, ecalTrigSettings_cff::particles, TKinFitter::setMaxDeltaS(), TKinFitter::setMaxF(), TKinFitter::setMaxNbIter(), reco::Candidate::setP4(), and TKinFitter::setVerbosity().
◆ mass_
double CandMassKinFitter::mass_ |
|
private |
math::PtEtaPhiELorentzVectorF LorentzVector