]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALTracker.cxx
Preparing to make a better virtual volume for the FMD3 sub-detector -
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTracker.cxx
CommitLineData
23904d16 1#include "AliEMCALTracker.h"
2#include "AliEMCALPIDv1.h"
3#include "AliRunLoader.h"
4#include "AliESD.h"
5
6//-------------------------------------------------------------------------
7// EMCAL tracker.
8// Matches ESD tracks with the EMCAL and makes the PID.
9// Currently, has only one function implemented : PropagateBack(AliESD*)
10//-------------------------------------------------------------------------
11
12ClassImp(AliEMCALTracker)
13
14Bool_t AliEMCALTracker::fgDebug = kFALSE ;
15
16Int_t AliEMCALTracker::PropagateBack(AliESD *esd) {
17 // Makes the Particle Identification
18
19 esd=0; // This is to avoid a compilation warning.
20 // This pointer is reserved for future needs
21
22 Int_t eventNumber = fRunLoader->GetEventNumber() ;
23
24 TString headerFile(fRunLoader->GetFileName()) ;
25 TString branchName(fRunLoader->GetEventFolder()->GetName()) ;
26
27 AliEMCALPIDv1 pid(headerFile, branchName);
28
29 // do current event; the loop over events is done by AliReconstruction::Run()
30 pid.SetEventRange(eventNumber, eventNumber) ;
31 if ( Debug() )
32 pid.ExecuteTask("deb all") ;
33 else
34 pid.ExecuteTask("") ;
35
36 return 0;
37}