Re: PndVtxPRG vs PndKinVtxFitter [message #17426 is a reply to message #17422] |
Fri, 24 October 2014 16:31 |
Ralf Kliemt
Messages: 507 Registered: May 2007 Location: GSI, Darmstadt
|
first-grade participant |
From: *gsi.de
|
|
Hi Karin,
There is a potential bug (marked in red). Simply use bool checkb=vtxfitterlb.Fit(); as the fit statement in the beginning of the block.
Karin Schönning wrote on Fri, 24 October 2014 11:44for (j=0;j<lamb.GetLength();++j)
{
PndVtxPRG vtxfitterlb(lamb[j]);
vtxfitterlb.Fit();
double chi2_vtx = vtxfitterlb.GetChi2(); // access chi2 of fit
double prob_vtx = vtxfitterlb.GetProb(); // access probability of fit
h0b_chi2_vf->Fill(chi2_vtx);
hlamb_prob_vf->Fill(prob_vtx);
bool checkb=vtxfitterlb.Fit();
if(checkb)
// when good enough, fill some histos
{
RhoCandidate *lambv = lamb[j]->GetFit(); // access the fitted cand
Do you apply other selections, such as a distance cut to the interaction point? The PndVtxPrg should be just a touch less accurate then the PndKinVtxFitter. I expect no different efficiency drops by fitting.
Cheers
Ralf
[Updated on: Fri, 24 October 2014 16:32] Report message to a moderator
|
|
|