Removing include AliRun.h (not needed)
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDTracker.h
CommitLineData
d3da6dc4 1#ifndef AliHMPIDTracker_h
2#define AliHMPIDTracker_h
3
4#include <AliTracker.h> //base class
3c6274c1 5#include "AliHMPID.h" //Recon()
6#include <AliRun.h> //Recon()
d3da6dc4 7
3c6274c1 8class AliESD;
d3da6dc4 9
10class AliHMPIDTracker : public AliTracker
11{
12public:
3c6274c1 13 AliHMPIDTracker():AliTracker() {}
14 virtual ~AliHMPIDTracker() {}
d3da6dc4 15//framework part
3c6274c1 16 AliCluster *GetCluster (Int_t )const {return 0;} //pure virtual from AliTracker
17 Bool_t GetTrackPoint (Int_t idx,AliTrackPoint &pt)const; // from AliTracker
18 Int_t Clusters2Tracks(AliESD * ) {return 0;} //pure virtual from AliTracker
19 Int_t LoadClusters (TTree *pCluTr ); //pure virtual from AliTracker
20 inline Int_t PropagateBack (AliESD * ); //pure virtual from AliTracker
21 Int_t RefitInward (AliESD * ) {return 0;} //pure virtual from AliTracker
22 void UnloadClusters ( ) { } //pure virtual from AliTracker
d3da6dc4 23//private part
24 enum ETrackingFlags {kMipDistCut=-9,kMipQdcCut=-5};
3c6274c1 25 static Int_t Recon(AliESD *pEsd,TObjArray *pCluAll); //do actual job
d3da6dc4 26protected:
27 ClassDef(AliHMPIDTracker,0)
28};//class AliHMPIDTracker
3c6274c1 29//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30Int_t AliHMPIDTracker::PropagateBack(AliESD *pEsd)
31{
32// This method defined as pure virtual in AliTracker. It is invoked from AliReconstruction::RunTracking() after invocation of AliTracker::LoadClusters()
33// Agruments: pEsd - pointer to ESD
34// Returns: error code
35 AliHMPID *pHmpid=((AliHMPID*)gAlice->GetDetector("HMPID"));
36 return Recon(pEsd,pHmpid->CluLst());
37}
38
39
d3da6dc4 40
cf7e313e 41typedef AliHMPIDTracker AliRICHTracker; // for backward compatibility
42
d3da6dc4 43#endif//AliHMPIDTracker_h