X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliESDfriendTrack.h;h=8eb87636f449a5f12bacef3da4a91f3dd86fa426;hb=8b035d03f8682baff6aa6da797b3c4a65fb7f51d;hp=69ee70f63ef737e9f9168771b0052f4c298b1c82;hpb=1d99986f6f56caf1bc5004c841ce08dd56fc0c05;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliESDfriendTrack.h b/STEER/AliESDfriendTrack.h index 69ee70f63ef..8eb87636f44 100644 --- a/STEER/AliESDfriendTrack.h +++ b/STEER/AliESDfriendTrack.h @@ -8,32 +8,53 @@ //------------------------------------------------------------------------- #include -#include "AliESDtrack.h" class AliTrackPointArray; - +class AliKalmanTrack; +class TObjArrray; //_____________________________________________________________________________ class AliESDfriendTrack : public TObject { public: + enum { + kMaxITScluster=12, + kMaxTPCcluster=160, + kMaxTRDcluster=180 + }; AliESDfriendTrack(); - AliESDfriendTrack(const AliESDfriendTrack &); - AliESDfriendTrack(const AliESDtrack &); + AliESDfriendTrack(const AliESDfriendTrack &t); virtual ~AliESDfriendTrack(); - Float_t Get1P() const {return f1P;} - const Int_t *GetITSindices() const {return fITSindex;} - const Int_t *GetTPCindices() const {return fTPCindex;} - const Int_t *GetTRDindices() const {return fTRDindex;} + void Set1P(Float_t p) {f1P=p;} + void SetTrackPointArray(AliTrackPointArray *points) { + fPoints=points; + } + Float_t Get1P() const {return f1P;} + Int_t *GetITSindices() {return fITSindex;} + Int_t *GetTPCindices() {return fTPCindex;} + Int_t *GetTRDindices() {return fTRDindex;} const AliTrackPointArray *GetTrackPointArray() const {return fPoints;} -protected: - Float_t f1P; // 1/P (1/(GeV/c)) - Int_t fITSindex[AliESDtrack::kMaxITScluster]; // indices of the ITS clusters - Int_t fTPCindex[AliESDtrack::kMaxTPCcluster]; // indices of the TPC clusters - Int_t fTRDindex[AliESDtrack::kMaxTRDcluster]; // indices of the TRD clusters + void SetITStrack(AliKalmanTrack *t) {fITStrack=t;} + void SetTRDtrack(AliKalmanTrack *t) {fTRDtrack=t;} + AliKalmanTrack *GetTRDtrack() {return fTRDtrack;} + AliKalmanTrack *GetITStrack() {return fITStrack;} + void AddCalibObject(TObject * calibObject); + TObject * GetCalibObject(Int_t index); - AliTrackPointArray *fPoints; // Array of track space points in the global frame - ClassDef(AliESDfriendTrack,1) //ESD friend track +protected: + Float_t f1P; // 1/P (1/(GeV/c)) + Int_t fITSindex[kMaxITScluster]; // indices of the ITS clusters + Int_t fTPCindex[kMaxTPCcluster]; // indices of the TPC clusters + Int_t fTRDindex[kMaxTRDcluster]; // indices of the TRD clusters + AliTrackPointArray *fPoints;//Array of track space points in the global frame + TObjArray *fCalibContainer; //Array of objects for calibration + AliKalmanTrack *fITStrack; //! pointer to the ITS track (debug purposes) + AliKalmanTrack *fTRDtrack; //! pointer to the TRD track (debug purposes) + +private: + AliESDfriendTrack &operator=(const AliESDfriendTrack & /* t */) {return *this;} + + ClassDef(AliESDfriendTrack,2) //ESD friend track }; #endif