{ //drawing tracks TTree *t=file->Get("cbmsim") ; TClonesArray *fT=new TClonesArray("TGeoTrack"); t->SetBranchAddress("GeoTracks",&fT) ; TGeoTrack *tr; TObjArray *TrList= geoMan->GetListOfTracks(); for (Int_t j=0; j< t->GetEntriesFast(); j++) { t->GetEntry(j); for (Int_t i=0; iGetEntriesFast(); i++) { tr=(TGeoTrack *)fT->At(i); tr->Draw("same"); // uncommit this to draw the tracks one by on // TrList->AddLast(tr); } } // geoMan->AnimateTracks(0,1E-7, 500,"/G"); // uncommit this to animate the tracks // geoMan->DrawTracks("same"); // this will draw all tracks added to the TrList at once }