12 TKinFitter fitter(
"CandMassFit",
"CandMassFit");
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) {
53 return FitQuality(fitter.getS(), fitter.getNDF());
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
virtual double mass() const =0
mass
const TLorentzVector * getCurr4Vec()
T get() const
get a component
virtual size_type numberOfDaughters() const =0
number of daughters
math::PtEtaPhiELorentzVectorF LorentzVector