GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Vertex Information
Vertex Information [message #8190] Thu, 09 April 2009 09:18 Go to next message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Hi pandaRooters,

is there a class where to store the information of a vertex fit?

I wish you all "Happy Easter" and some relaxing days

Tobias
Re: Vertex Information [message #8191 is a reply to message #8190] Thu, 09 April 2009 10:30 Go to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Hi Tobias,
i"m not sure
but maybe you can use the TCandidate or MicroCandidates to save the
vertex information,
i have found some information looking into macro/fsim/ana_Lambda_fit2.C

Maybe one can use it.
best regards
Alicia S.

TCandListIterator iterP(ppiCands);
225 while (tc=iterP.Next())
226 {
227 ppimass->Fill(tc->Mass());
228 PndVtxFitter vtxf(*tc);
229 vtxf.Fit();
230 TCandidate *fitted=vtxf.FittedCand(*tc);
231 cout <<"unfitted="<<(*tc)<<endl;
232 if (fitted)
233 {
234 double d=fitted->Pos().Mag();
235 //if (d==0) continue;
236 cout <<"fitted = "<<(*fitted)<<endl;
237 ppi2mass->Fill(fitted->Mass());
238 hvtx->Fill(fitted->Pos().Dead),fitted->Pos().Y());
239 hvtx2->Fill(fitted->Pos().Dead),fitted->Pos().Z());
240 hdist->Fill(fitted->Pos().Mag());
241 }
242
243 }
Previous Topic: Forward tof has been added
Next Topic: Detector geoemtries in own folder
Goto Forum:
  


Current Time: Tue Dec 03 21:57:36 CET 2024

Total time taken to generate the page: 0.00791 seconds