![]() |
PandaRoot
|
#include <Fitter.h>
Public Types | |
enum | FitStatus { UnFitted = -1, Success = 0, Failed, BadInput, NonConverged } |
Public Member Functions | |
Fitter (RhoCandidate *bc, RecoTrackStateProvider *extrapolator, int verbosity=0) | |
constructor from the particle (decay head) More... | |
Fitter (RhoCandidate *bc, const RhoVector3Err &pv, RecoTrackStateProvider *extrapolator=nullptr, int verbosity=0) | |
constructor from the particle (decay head) and primary vertex More... | |
Fitter (RhoCandidate *bc, const RhoLorentzVectorErr &lv, RecoTrackStateProvider *extrapolator, int verbosity=0) | |
constructor from the particle (decay head) and pbeam More... | |
Fitter (RhoCandidate *bc, const RhoLorentzVectorErr &lv, const RhoVector3Err &pv, RecoTrackStateProvider *extrapolator=nullptr, int verbosity=0) | |
constructor from the particle (decay head), pbeam and primary vertex More... | |
virtual | ~Fitter () |
destructor More... | |
void | setMassConstraint (RhoCandidate *cand, bool add=true) |
Add or remove a mass constraint. More... | |
void | setMassConstraint (RhoCandidate *cand, double mass) |
Add a constraint to a mass different from the property table mass. More... | |
Bool_t | Fit (int maxNumberOfIterations=10, double deltaChisquareConverged=0.01) |
Add or remove a mass constraintfor a certain ParticleID. More... | |
Bool_t | FitAll (int maxit=10, double dchiq=0.01) |
std::string | print () const |
Print the result of the fit. More... | |
std::ostream & | fillStream (std::ostream &s) const |
Print the result of the fit. More... | |
RhoCandidate * | particle () const |
The top level particle that is fitted. More... | |
RhoCandidate * | fitParams (RhoCandidate *p=0) const |
double | chiSquare () const |
Total chisquare. More... | |
int | nDof () const |
Total number of DOFs. More... | |
FitStatus | status () const |
Status of fit. More... | |
int | nIter () const |
Number of iterations used by vertex fit. More... | |
ChiSquare | chiSquare (RhoCandidate *p) const |
get the chisquare of everything 'downstream' of a particle More... | |
RhoDoubleErr | decayLengthSum (RhoCandidate *, RhoCandidate *) const |
bool | updateCand (RhoCandidate *cand) const |
update a particlular candidate in the tree More... | |
bool | updateTree (RhoCandidate *cand) const |
update a particlular candidate in the tree More... | |
int | errCode () |
error code More... | |
void | setVerbose (int i) |
set the verbosity level (for debugging only) More... | |
void | SetToleranceZ (double z) |
DecayChain * | GetDecayChainDirty () |
RecoTrackStateProvider * | extrapolator () |
get the extrapolator More... | |
void | setStateProvider (RecoTrackStateProvider *extrapolator) |
set the track extrapolator More... | |
![]() | |
RhoFitterBase () | |
RhoFitterBase (RhoCandidate *decayTree) | |
RhoFitterBase (const RhoFitterBase &) | |
~RhoFitterBase () | |
Bool_t | Fit () |
Bool_t | FitAll () |
double | Chi2Contribution (const RhoCandidate *) |
double | GetChi2 () const |
int | GetNdf () const |
double | GetProb () const |
void | SetVerbose (Bool_t v=kTRUE) |
Protected Member Functions | |
std::string | name (RhoCandidate *cand) const |
Name of a particle in the decay tree. More... | |
RhoDoubleErr | decayLengthSum (const ParticleBase &, const ParticleBase &) const |
DecayChain * | decaychain () |
FitParams * | fitparams () |
const DecayChain * | decaychain () const |
const FitParams * | fitparams () const |
double | globalChiSquare () const |
double | add (RhoCandidate *cand) |
double | remove (RhoCandidate *cand) |
void | updateIndex () |
void | fit (int maxNumberOfIterations=10, double deltaChisquareConverged=0.01) |
Fit the decay tree. More... | |
void | fitOneStep () |
Fit just one step. More... | |
RhoCandidate * | fittedCand (RhoCandidate *cand, RhoCandidate *headoftree) const |
void | updateCand (const ParticleBase &pb, RhoCandidate *cand) const |
![]() | |
RhoCandidate & | HeadOfTree () const |
virtual Bool_t | FitNode (RhoCandidate *b) |
RhoCandidate * | CopyCand (RhoCandidate *) |
uppermost particle composite in tree More... | |
RhoCandidate * | CopyTree (RhoCandidate *) |
void | InsertChi2 (const RhoCandidate *bc, const double chi2) |
void | SetDaugthersFromComposite (RhoCandidate *cand) |
void | FindAndAddFinalStateDaughters (RhoCandidate *cand) |
void | SetFourMomentumByDaughters (RhoCandidate *composite) |
void | SetDecayVertex (RhoCandidate *composite, const TVector3 &vtx, const TMatrixD &CovVV) |
Protected Attributes | |
RecoTrackStateProvider * | m_extrapolator |
track extrapolator (if needed) More... | |
![]() | |
Bool_t | fVerbose |
RhoCandidate * | fHeadOfTree |
std::vector< RhoCandidate * > | fDaughters |
double | fChiSquare |
int | fNDegreesOfFreedom |
Enumerator | |
---|---|
UnFitted | |
Success | |
Failed | |
BadInput | |
NonConverged |
Definition at line 57 of file Fitter.h.
DecayTreeFitter::Fitter::Fitter | ( | RhoCandidate * | bc, |
RecoTrackStateProvider * | extrapolator, | ||
int | verbosity = 0 |
||
) |
constructor from the particle (decay head)
DecayTreeFitter::Fitter::Fitter | ( | RhoCandidate * | bc, |
const RhoVector3Err & | pv, | ||
RecoTrackStateProvider * | extrapolator = nullptr , |
||
int | verbosity = 0 |
||
) |
constructor from the particle (decay head) and primary vertex
DecayTreeFitter::Fitter::Fitter | ( | RhoCandidate * | bc, |
const RhoLorentzVectorErr & | lv, | ||
RecoTrackStateProvider * | extrapolator, | ||
int | verbosity = 0 |
||
) |
constructor from the particle (decay head) and pbeam
DecayTreeFitter::Fitter::Fitter | ( | RhoCandidate * | bc, |
const RhoLorentzVectorErr & | lv, | ||
const RhoVector3Err & | pv, | ||
RecoTrackStateProvider * | extrapolator = nullptr , |
||
int | verbosity = 0 |
||
) |
constructor from the particle (decay head), pbeam and primary vertex
|
virtual |
destructor
|
protected |
Referenced by fitparams().
|
inline |
Total chisquare.
Definition at line 104 of file Fitter.h.
References RhoFitterBase::fChiSquare, and nDof().
Referenced by nIter().
ChiSquare DecayTreeFitter::Fitter::chiSquare | ( | RhoCandidate * | p | ) | const |
get the chisquare of everything 'downstream' of a particle
|
inlineprotected |
|
inlineprotected |
RhoDoubleErr DecayTreeFitter::Fitter::decayLengthSum | ( | RhoCandidate * | , |
RhoCandidate * | |||
) | const |
Compute the decay length sum of two particles in the decay tree (useful for e.g. B->DD)
Referenced by extrapolator(), and nIter().
|
protected |
|
inline |
|
inline |
get the extrapolator
Definition at line 153 of file Fitter.h.
References decayLengthSum(), m_extrapolator, name(), and setStateProvider().
std::ostream& DecayTreeFitter::Fitter::fillStream | ( | std::ostream & | s | ) | const |
Print the result of the fit.
Referenced by FitAll().
|
inline |
Add or remove a mass constraintfor a certain ParticleID.
Add a constraint to a mass different from the property table mass Fit the decay tree
Definition at line 83 of file Fitter.h.
References fit(), and updateTree().
|
protected |
Fit the decay tree.
Referenced by Fit(), and fitparams().
|
inline |
Definition at line 90 of file Fitter.h.
References fillStream(), RhoFitterBase::Fit(), and print().
|
protected |
Fit just one step.
Referenced by fitparams().
|
inline |
Currently the only accessor to the actual fitted data
p | (INPUT) the particle the fitted parameters ( 0 for invaild parameters/fits) |
Definition at line 101 of file Fitter.h.
References RhoCandidate::GetFit().
|
inlineprotected |
|
inlineprotected |
Definition at line 170 of file Fitter.h.
References add(), fit(), fitOneStep(), fittedCand(), globalChiSquare(), updateCand(), and updateIndex().
|
protected |
Referenced by fitparams().
|
inline |
|
protected |
Referenced by fitparams().
|
protected |
Name of a particle in the decay tree.
Referenced by extrapolator().
int DecayTreeFitter::Fitter::nDof | ( | ) | const |
Total number of DOFs.
Referenced by chiSquare().
|
inline |
Number of iterations used by vertex fit.
Definition at line 110 of file Fitter.h.
References chiSquare(), decayLengthSum(), updateCand(), and updateTree().
|
inline |
std::string DecayTreeFitter::Fitter::print | ( | ) | const |
Print the result of the fit.
Referenced by FitAll().
|
protected |
void DecayTreeFitter::Fitter::setMassConstraint | ( | RhoCandidate * | cand, |
bool | add = true |
||
) |
Add or remove a mass constraint.
void DecayTreeFitter::Fitter::setMassConstraint | ( | RhoCandidate * | cand, |
double | mass | ||
) |
Add a constraint to a mass different from the property table mass.
void DecayTreeFitter::Fitter::setStateProvider | ( | RecoTrackStateProvider * | extrapolator | ) |
set the track extrapolator
Referenced by extrapolator().
|
inline |
Definition at line 140 of file Fitter.h.
References m_extrapolator, and DecayTreeFitter::RecoTrackStateProvider::SetToleranceZ().
void DecayTreeFitter::Fitter::setVerbose | ( | int | i | ) |
set the verbosity level (for debugging only)
Referenced by errCode().
|
inline |
bool DecayTreeFitter::Fitter::updateCand | ( | RhoCandidate * | cand | ) | const |
update a particlular candidate in the tree
return an updated decay tree. this is not a final solution. will try to move more info to Particle methods to retrieve the result in terms of RhoCandidates (note: mother vertex is not updated, and decay length cannot be stored anywhere. Use fitParams instead methods to retrieve the result in terms of RhoCandidates (note: mother vertex is not updated, and decay length cannot be stored anywhere. Use fitParams instead
Referenced by fitparams(), and nIter().
|
protected |
|
protected |
Referenced by fitparams().
bool DecayTreeFitter::Fitter::updateTree | ( | RhoCandidate * | cand | ) | const |
|
protected |
track extrapolator (if needed)
Definition at line 213 of file Fitter.h.
Referenced by extrapolator(), and SetToleranceZ().