GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Track Visualization questions
Re: Track Visualization questions [message #9273 is a reply to message #9268] Tue, 01 September 2009 13:06 Go to previous messageGo to previous message
Christian Leitold is currently offline  Christian Leitold
Messages: 35
Registered: August 2009
Location: Stefan Meyer Institute
continuous participant
From: *smi.oeaw.ac.at
I use macro/run/drawGLTracks.C, the interesting (which means, crashing) part is:

 
 TGeoTrack *tr;
 TObjArray *TrList= geoMan->GetListOfTracks(); 
   geoMan->SetAnimateTracks();
  for (Int_t j=0; j< t->GetEntriesFast(); j++)	{
 	t->GetEntry(0);
        Double_t *point;
	for (Int_t i=0; i<fT->GetEntriesFast(); i++)	{
    		tr=(TGeoTrack *)fT->At(i);
                Int_t Np=tr->GetNpoints();
                FairVTrack *pt = new FairVTrack(Np); 
                pt->SetLineColor(tr->GetLineColor());
                pt->SetLineWidth(2);
                pt->SetTrack(tr);
                pt->SetParticle((TParticle *)tr->GetParticle());
                for (Int_t n=0; n<Np; n++){
                   point=tr->GetPoint(n);
                   pt->SetPoint(n,point[0],point[1],point[2]);
		}
                pt->Draw();
	}
  }

As you can see, in the inner loop, the FairVTrack *pt is created, leading to the crash.

Thanks
Christian
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Add new classes to libraries
Next Topic: Error in PndLheKalmanTask: track-array not found
Goto Forum:
  


Current Time: Fri Oct 04 20:33:30 CEST 2024

Total time taken to generate the page: 0.00903 seconds