1 #include "AliEMCALTracker.h"
2 #include "AliEMCALPIDv1.h"
3 #include "AliRunLoader.h"
6 //-------------------------------------------------------------------------
8 // Matches ESD tracks with the EMCAL and makes the PID.
9 // Currently, has only one function implemented : PropagateBack(AliESD*)
10 //-------------------------------------------------------------------------
12 ClassImp(AliEMCALTracker)
14 Bool_t AliEMCALTracker::fgDebug = kFALSE ;
16 Int_t AliEMCALTracker::PropagateBack(AliESD *esd) {
17 // Makes the Particle Identification
19 esd=0; // This is to avoid a compilation warning.
20 // This pointer is reserved for future needs
22 Int_t eventNumber = fRunLoader->GetEventNumber() ;
24 TString headerFile(fRunLoader->GetFileName()) ;
25 TString branchName(fRunLoader->GetEventFolder()->GetName()) ;
27 AliEMCALPIDv1 pid(headerFile, branchName);
29 // do current event; the loop over events is done by AliReconstruction::Run()
30 pid.SetEventRange(eventNumber, eventNumber) ;
32 pid.ExecuteTask("deb all") ;