1 #include "AliPHOSTracker.h"
2 #include "AliPHOSClusterizerv1.h"
3 #include "AliPHOSTrackSegmentMakerv1.h"
4 #include "AliPHOSTrackSegmentMakerv2.h"
5 #include "AliPHOSPIDv1.h"
6 #include "AliRunLoader.h"
9 //-------------------------------------------------------------------------
11 // Matches ESD tracks with the PHOS and makes the PID.
12 // Currently, has only one function implemented : PropagateBack(AliESD*)
13 //-------------------------------------------------------------------------
15 ClassImp(AliPHOSTracker)
17 Bool_t AliPHOSTracker::fgDebug = kFALSE ;
19 Int_t AliPHOSTracker::PropagateBack(AliESD *esd) {
20 // Called by AliReconstruction
21 // Creates the tracksegments and Recparticles
24 Int_t eventNumber = fRunLoader->GetEventNumber() ;
26 TString headerFile(fRunLoader->GetFileName()) ;
27 TString branchName(fRunLoader->GetEventFolder()->GetName()) ;
29 AliPHOSTrackSegmentMakerv1 tsm(headerFile, branchName);
30 // AliPHOSTrackSegmentMakerv2 tsm(headerFile, branchName);
32 AliPHOSPIDv1 pid(headerFile, branchName);
37 // do current event; the loop over events is done by AliReconstruction::Run()
38 tsm.SetEventRange(eventNumber, eventNumber) ;
39 pid.SetEventRange(eventNumber, eventNumber) ;
41 tsm.ExecuteTask("deb all") ;
42 pid.ExecuteTask("deb all") ;