--- DarthVader/TrackerLevel2/src/TrkLevel2.cpp 2006/09/28 14:04:39 1.10 +++ DarthVader/TrackerLevel2/src/TrkLevel2.cpp 2006/10/24 07:28:38 1.12 @@ -11,7 +11,7 @@ extern "C" { void dotrack_(int*, double*, double*, double*, double*, int*); void dotrack2_(int*, double*, double*, double*, double*,double*, double*, double*,int*); - int readb_(const char*); + int readb_(const char*); } //-------------------------------------- // @@ -247,6 +247,15 @@ // // //-------------------------------------- +void TrkTrack::Delete(){ + Clear(); + clx->Delete(); + cly->Delete(); +}; + //-------------------------------------- +// +// +//-------------------------------------- //-------------------------------------- // @@ -569,6 +578,17 @@ // // //-------------------------------------- +void TrkLevel2::Delete(){ + + Clear(); + Track->Delete(); + SingletX->Delete(); + SingletY->Delete(); +} +//-------------------------------------- +// +// +//-------------------------------------- /** * Sort physical tracks and stores them in a TObjectArray, ordering by increasing chi**2 value (in case of track image, it selects the one with lower chi**2). The total number of physical tracks is given by GetNTracks() and the it-th physical track can be retrieved by means of the method GetTrack(int it). * This method is overridden by PamLevel2::GetTracks(), where calorimeter and TOF information is used. @@ -712,7 +732,7 @@ Float_t ntot=0; TClonesArray &t = *Track; - for(int i=0; iGetImageSeqNo() == -1 ) ntot+=1.; else ntot+=0.5; }