- Adding check and flagging for HG present
[u/mrichter/AliRoot.git] / MUON / AliMUONTracker.h
CommitLineData
196471e9 1#ifndef ALIMUONTRACKER_H
2#define ALIMUONTRACKER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
e41c38cf 6// $Id$
196471e9 7
6b092dfc 8/// \ingroup rec
196471e9 9/// \class AliMUONTracker
10/// \brief MUON base Tracker
d81d2e8e 11///
9bf6860b 12// Authors: Christian Finck, Laurent Aphecetche, SUBATECH Nantes
196471e9 13
14#include "AliTracker.h"
e64fdf8a 15
196471e9 16class AliCluster;
af885e0f 17class AliESDEvent;
e64fdf8a 18class AliMUONGeometryTransformer;
a0dc65b4 19class AliMUONRecoParam;
e64fdf8a 20class AliMUONTrackHitPattern;
32ab62c9 21class AliMUONTriggerCircuit;
9bf6860b 22class AliMUONVClusterServer;
e64fdf8a 23class AliMUONVClusterStore;
9bf6860b 24class AliMUONVDigitStore;
196471e9 25class AliMUONVTrackReconstructor;
e64fdf8a 26class AliMUONVTrackStore;
27class AliMUONVTriggerStore;
9bf6860b 28class AliMUONVTriggerTrackStore;
196471e9 29
30class AliMUONTracker : public AliTracker
31{
32 public:
33
a0dc65b4 34 AliMUONTracker(const AliMUONRecoParam* recoParam,
35 AliMUONVClusterServer* clusterServer,
2e2d0c44 36 AliMUONVDigitStore& digitStore,
e64fdf8a 37 const AliMUONGeometryTransformer* transformer=0,
683cb6c5 38 const AliMUONTriggerCircuit* triggerCircuit=0);
196471e9 39 virtual ~AliMUONTracker();
196471e9 40
af885e0f 41 virtual Int_t Clusters2Tracks(AliESDEvent* esd);
e64fdf8a 42
e64fdf8a 43 virtual Int_t LoadClusters(TTree* clustersTree);
44
e64fdf8a 45 virtual void UnloadClusters();
46
21973f26 47 /// Return reco parameters
72dae9ff 48 const AliMUONRecoParam* GetRecoParam() const { return fkRecoParam; }
a0dc65b4 49
71a2d3aa 50 /// Dummy implementation
af885e0f 51 virtual Int_t PropagateBack(AliESDEvent* /*event*/) {return 0;}
71a2d3aa 52 /// Dummy implementation
af885e0f 53 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return 0;}
71a2d3aa 54 /// Dummy implementation
196471e9 55 virtual AliCluster *GetCluster(Int_t /*index*/) const {return 0;}
196471e9 56
a0dc65b4 57 static AliMUONVTrackReconstructor* CreateTrackReconstructor(const AliMUONRecoParam* recoParam, AliMUONVClusterServer* clusterServer);
9bf6860b 58
196471e9 59private:
71a2d3aa 60 /// Not implemented
61 AliMUONTracker(const AliMUONTracker& rhs);
62 /// Not implemented
63 AliMUONTracker& operator=(const AliMUONTracker& rhs);
64
1fef78c8 65 AliMUONVClusterStore* ClusterStore() const;
66
9bf6860b 67 AliMUONVTriggerTrackStore* TriggerTrackStore() const;
3304fa09 68
72dae9ff 69 void FillESD(const AliMUONVTrackStore& trackStore, AliESDEvent* esd) const;
e64fdf8a 70
9bf6860b 71 void SetupClusterServer(AliMUONVClusterServer& clusterServer);
72
e64fdf8a 73private:
72dae9ff 74 const AliMUONGeometryTransformer* fkTransformer; //!< geometry transformer (not owner)
75 const AliMUONTriggerCircuit* fkTriggerCircuit; //!< trigger circuit (not owner)
e64fdf8a 76 AliMUONTrackHitPattern* fTrackHitPatternMaker; //!< trigger hit pattern maker
3304fa09 77 AliMUONVTrackReconstructor* fTrackReco; //!< track reconstructor
1fef78c8 78 mutable AliMUONVClusterStore* fClusterStore; //!< cluster container
e64fdf8a 79 AliMUONVTriggerStore* fTriggerStore; //!< trigger information
9bf6860b 80 AliMUONVClusterServer* fClusterServer; //!< to get clusters
81 Bool_t fIsOwnerOfClusterServer; //!< whether we are owner of the cluster server
72dae9ff 82 const AliMUONVDigitStore& fkDigitStore; //!< digit info to fill in ESD
9bf6860b 83 mutable AliMUONVClusterStore* fInputClusterStore; //!< cluster container
84 mutable AliMUONVTriggerTrackStore* fTriggerTrackStore; //!< trigger track store
72dae9ff 85 const AliMUONRecoParam* fkRecoParam; //!< pointer to reco param
e64fdf8a 86
196471e9 87 ClassDef(AliMUONTracker,0) //tracker base class for MUON
88};
89#endif