333 |
new(sy[i]) TrkSinglet(*t_singlet); |
new(sy[i]) TrkSinglet(*t_singlet); |
334 |
t_singlet->Clear(); |
t_singlet->Clear(); |
335 |
}; |
}; |
336 |
|
|
337 |
|
delete t_track; |
338 |
|
delete t_singlet; |
339 |
} |
} |
340 |
//-------------------------------------- |
//-------------------------------------- |
341 |
// |
// |
346 |
for(Int_t i=0; i<12 ; i++){ |
for(Int_t i=0; i<12 ; i++){ |
347 |
crc[i] = -1; |
crc[i] = -1; |
348 |
}; |
}; |
349 |
Track->RemoveAll(); |
/* Track->RemoveAll(); |
350 |
SingletX->RemoveAll(); |
SingletX->RemoveAll(); |
351 |
SingletY->RemoveAll(); |
SingletY->RemoveAll();*/ |
352 |
|
// modify to avoid memory leakage |
353 |
|
Track->Clear(); |
354 |
|
SingletX->Clear(); |
355 |
|
SingletY->Clear(); |
356 |
} |
} |
357 |
//-------------------------------------- |
//-------------------------------------- |
358 |
// |
// |
366 |
TClonesArray *sorted = GetTracks_NFitSorted(); |
TClonesArray *sorted = GetTracks_NFitSorted(); |
367 |
return sorted; |
return sorted; |
368 |
}; |
}; |
369 |
|
|
370 |
TClonesArray *TrkLevel2::GetTracks_Chi2Sorted(){ |
TClonesArray *TrkLevel2::GetTracks_Chi2Sorted(){ |
371 |
|
|
372 |
TClonesArray *sorted = new TClonesArray("TrkTrack"); |
TClonesArray *sorted = new TClonesArray("TrkTrack"); |
478 |
return 0; |
return 0; |
479 |
} |
} |
480 |
TrkTrack *track = (TrkTrack*)(*(this->GetTracks()))[it]; |
TrkTrack *track = (TrkTrack*)(*(this->GetTracks()))[it]; |
481 |
|
GetTracks()->Delete();////TEMPORANEO |
482 |
return track; |
return track; |
483 |
} |
} |
484 |
|
Int_t TrkLevel2::GetNTracks(){ |
485 |
|
Int_t ntot=0; |
486 |
|
ntot = GetTracks()->GetEntries(); |
487 |
|
GetTracks()->Delete();////TEMPORANEO |
488 |
|
return ntot; |
489 |
|
}; |
490 |
//-------------------------------------- |
//-------------------------------------- |
491 |
// |
// |
492 |
// |
// |