1 #include "AliPHOSTracker.h"
2 #include "AliPHOSTrackSegmentMakerv1.h"
3 #include "AliPHOSPIDv1.h"
4 #include "AliRunLoader.h"
7 //-------------------------------------------------------------------------
9 // Matches ESD tracks with the PHOS and makes the PID.
10 // Currently, has only one function implemented : PropagateBack(AliESD*)
11 //-------------------------------------------------------------------------
13 ClassImp(AliPHOSTracker)
15 Bool_t AliPHOSTracker::fgDebug = kFALSE ;
17 Int_t AliPHOSTracker::PropagateBack(AliESD *esd) {
18 // Called by AliReconstruction
19 // Creates the tracksegments and Recparticles
22 Int_t eventNumber = fRunLoader->GetEventNumber() ;
24 TString headerFile(fRunLoader->GetFileName()) ;
25 TString branchName(fRunLoader->GetEventFolder()->GetName()) ;
27 AliPHOSTrackSegmentMakerv1 tsm(headerFile, branchName);
29 AliPHOSPIDv1 pid(headerFile, branchName);
31 // do current event; the loop over events is done by AliReconstruction::Run()
32 tsm.SetEventRange(eventNumber, eventNumber) ;
33 pid.SetEventRange(eventNumber, eventNumber) ;
35 tsm.ExecuteTask("deb all") ;
36 pid.ExecuteTask("deb all") ;