-
-
-
-// **** The following are bad functions: they use RunLoader ;(
-// **** To be rewritten.
-
-#include "AliPHOSTrackSegmentMakerv1.h"
-#include "AliPHOSTrackSegmentMakerv2.h"
-#include "AliPHOSPIDv1.h"
-#include "AliRunLoader.h"
-
-Int_t AliPHOSTracker::PropagateBackOld(AliESDEvent *esd) {
- // Bad function: it uses RunLoader ;(
- // Creates the tracksegments and Recparticles
- // Makes the PID
-
- Int_t eventNumber = fRunLoader->GetEventNumber() ;
-
- TString headerFile(fRunLoader->GetFileName()) ;
- TString branchName(fRunLoader->GetEventFolder()->GetName()) ;
-
- AliPHOSTrackSegmentMakerv1 tsm(headerFile, branchName);
-// AliPHOSTrackSegmentMakerv2 tsm(headerFile, branchName);
- tsm.SetESD(esd) ;
- AliPHOSPIDv1 pid(headerFile, branchName);
- pid.SetESD(esd) ;
-
- //PH SetDebug() ;
-
- // do current event; the loop over events is done by AliReconstruction::Run()
- tsm.SetEventRange(eventNumber, eventNumber) ;
- pid.SetEventRange(eventNumber, eventNumber) ;
- if ( Debug() ) {
- tsm.ExecuteTask("deb all") ;
- pid.ExecuteTask("deb all") ;
- }
- else {
- tsm.ExecuteTask("") ;
- pid.ExecuteTask("") ;
- }
-
- return 0;
-}
-
-AliPHOSTracker::AliPHOSTracker(AliRunLoader *l): AliTracker(), fRunLoader(l) {
- //--------------------------------------------------------------------
- // Bad constructor: uses RunLoader ;(
- //--------------------------------------------------------------------
- for (Int_t i=0; i<5; i++)
- fModules[i]=new TClonesArray("AliPHOSEmcRecPoint",777);
-}
-