10 #ifndef DECAYTREEFITTER_FITTER_H 11 #define DECAYTREEFITTER_FITTER_H 1 83 Bool_t
Fit(
int maxNumberOfIterations = 10,
double deltaChisquareConverged = 0.01)
85 fit(maxNumberOfIterations, deltaChisquareConverged);
87 check = check && (m_status == 0);
90 Bool_t
FitAll(
int maxit = 10,
double dchiq = 0.01) {
return Fit(maxit, dchiq); };
92 std::string
print()
const;
94 std::ostream &
fillStream(std::ostream &s)
const;
110 int nIter()
const {
return m_niter; }
180 void fit(
int maxNumberOfIterations = 10,
double deltaChisquareConverged = 0.01);
RecoTrackStateProvider * m_extrapolator
track extrapolator (if needed)
FitStatus status() const
Status of fit.
bool updateTree(RhoCandidate *cand) const
update a particlular candidate in the tree
const FitParams * fitparams() const
std::string print() const
Print the result of the fit.
DecayChain * GetDecayChainDirty()
void SetToleranceZ(double z)
void fit(int maxNumberOfIterations=10, double deltaChisquareConverged=0.01)
Fit the decay tree.
RhoDoubleErr decayLengthSum(RhoCandidate *, RhoCandidate *) const
double globalChiSquare() const
RhoCandidate * fitParams(RhoCandidate *p=0) const
int nIter() const
Number of iterations used by vertex fit.
double add(RhoCandidate *cand)
std::ostream & fillStream(std::ostream &s) const
Print the result of the fit.
int nDof() const
Total number of DOFs.
Bool_t FitAll(int maxit=10, double dchiq=0.01)
virtual ~Fitter()
destructor
void setMassConstraint(RhoCandidate *cand, bool add=true)
Add or remove a mass constraint.
void setStateProvider(RecoTrackStateProvider *extrapolator)
set the track extrapolator
bool updateCand(RhoCandidate *cand) const
update a particlular candidate in the tree
void setVerbose(int i)
set the verbosity level (for debugging only)
void fitOneStep()
Fit just one step.
const DecayChain * decaychain() const
DecayChain * decaychain()
std::string name(RhoCandidate *cand) const
Name of a particle in the decay tree.
RecoTrackStateProvider * extrapolator()
get the extrapolator
Bool_t Fit(int maxNumberOfIterations=10, double deltaChisquareConverged=0.01)
Add or remove a mass constraintfor a certain ParticleID.
RhoCandidate * fittedCand(RhoCandidate *cand, RhoCandidate *headoftree) const
RhoCandidate * particle() const
The top level particle that is fitted.
double chiSquare() const
Total chisquare.
RhoCandidate * GetFit() const
void SetToleranceZ(double z)