correct the getting of EMCAL geometry
[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
59280a5a 8class AliESD; //Recon()
9class AliESDtrack; //IntTrkCha()
d3da6dc4 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
59280a5a 24 static Int_t IntTrkCha(AliESDtrack *pTrk,Float_t &x,Float_t &y); //find track-chamber intersection, retuns chamber ID
25 static Int_t Recon (AliESD *pEsd,TObjArray *pCluAll ); //do actual job, returns status code
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