12 TKinFitter fitter(
"CandMassFit",
"CandMassFit");
15 vector<TMatrixD>
errors(daus, TMatrix(3,3));
16 vector<TVector3> momenta(daus);
17 vector<TFitParticleMCCart *> particles(daus, 0);
19 "MassConstraint", 0, 0 , mass_);
20 for (
size_t i = 0;
i < daus; ++
i ) {
23 TMatrixD & err = errors[
i];
24 TVector3 & mom = momenta[
i];
25 mom = TVector3( p4.px(), p4.py(), p4.pz() );
44 TLorentzVector sum( 0, 0, 0, 0 );
45 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) ...
virtual float mass() const =0
mass
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
void setMaxDeltaS(Double_t maxDeltaS)
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