|How works PndVtxPRG full mode [message #16120]
||Mon, 31 March 2014 13:00
Registered: January 2009
I remember that PndVtxPRG have two main option full and fast.
One can do very fast vertex fitting with a option FitVertexFast(TVector3 &vtx, TMatrixD &cov, bool skipcov=false, int niter=2).
If I want to do with full option for this, it seems to have similar usage like PndKinVtxFitter.
Can I access RhoCandidate with GetFit() still in PndVtxPRG?
PndVtxPRG prgfitter(dm[j]); // instantiate vertex fitter
prgfitter.Fit(); // perform fit
RhoCandidate *dm_fit_prg = dm[j]->GetFit(); // fitted candidate
double dm_prg_chi2 = prgfitter.GetChi2(); // access chi2 of fit
double dm_prg_prob = prgfitter.GetProb(); // access probability of fit
TVector3 dmVtxPrg = dm_fit_prg->Pos(); // the vertex position
double dm_prg_x = dmVtxPrg.);
double dm_prg_y = dmVtxPrg.Y();
double dm_prg_z = dmVtxPrg.Z();
double dm_prg_mass = dm_fit_prg->M();
or Do I have to set the covariant matrix and TVector3 (for vertex) as used in the Fast mode?