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) {
22 TMatrixD&
err = errors[
i];
23 TVector3& mom = momenta[
i];
24 mom = TVector3(p4.px(), p4.py(), p4.pz());
43 TLorentzVector sum(0, 0, 0, 0);
44 for (
size_t i = 0;
i < daus; ++
i) {
void setMaxF(Double_t maxF)
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const edm::EventSetup & c
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
void setMaxDeltaS(Double_t maxDeltaS)
virtual double mass() const =0
mass
reco::FitQuality set(reco::Candidate &) const
virtual size_type numberOfDaughters() const =0
number of daughters
void addConstraint(TAbsFitConstraint *constraint)
void addMeasParticle(TAbsFitParticle *particle)
void setVerbosity(Int_t verbosity=1)
const TLorentzVector * getCurr4Vec()
void setMaxNbIter(Int_t maxNbIter)
void addParticle1(TAbsFitParticle *particle)
T get() const
get a component
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector