]>
Commit | Line | Data |
---|---|---|
1d99986f | 1 | #ifndef ALIESDFRIENDTRACK_H |
2 | #define ALIESDFRIENDTRACK_H | |
3 | ||
4 | //------------------------------------------------------------------------- | |
5 | // Class AliESDfriendTrack | |
6 | // This class contains ESD track additions | |
7 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch | |
8 | //------------------------------------------------------------------------- | |
9 | ||
10 | #include <TObject.h> | |
5637918c | 11 | #include <TClonesArray.h> |
ded25cc6 | 12 | #include <AliExternalTrackParam.h> |
08f45a9c | 13 | #include "AliVVfriendTrack.h" |
14 | #include "AliTrackPointArray.h" | |
1d99986f | 15 | |
15e85efa | 16 | class AliKalmanTrack; |
00dce61a | 17 | class TObjArrray; |
08f45a9c | 18 | class AliVVtrack; |
aa883ad7 | 19 | class AliTPCseed; |
08f45a9c | 20 | |
4a08929f | 21 | |
1d99986f | 22 | //_____________________________________________________________________________ |
08f45a9c | 23 | class AliESDfriendTrack : public TObject, public AliVVfriendTrack { |
1d99986f | 24 | public: |
15e85efa | 25 | enum { |
26 | kMaxITScluster=12, | |
27 | kMaxTPCcluster=160, | |
28 | kMaxTRDcluster=180 | |
29 | }; | |
1d99986f | 30 | AliESDfriendTrack(); |
7454372c | 31 | AliESDfriendTrack(const AliESDfriendTrack &t); |
1d99986f | 32 | virtual ~AliESDfriendTrack(); |
33 | ||
15e85efa | 34 | void Set1P(Float_t p) {f1P=p;} |
35 | void SetTrackPointArray(AliTrackPointArray *points) { | |
36 | fPoints=points; | |
37 | } | |
38 | Float_t Get1P() const {return f1P;} | |
39 | Int_t *GetITSindices() {return fITSindex;} | |
40 | Int_t *GetTPCindices() {return fTPCindex;} | |
41 | Int_t *GetTRDindices() {return fTRDindex;} | |
1d99986f | 42 | const AliTrackPointArray *GetTrackPointArray() const {return fPoints;} |
43 | ||
15e85efa | 44 | void SetITStrack(AliKalmanTrack *t) {fITStrack=t;} |
45 | void SetTRDtrack(AliKalmanTrack *t) {fTRDtrack=t;} | |
46 | AliKalmanTrack *GetTRDtrack() {return fTRDtrack;} | |
47 | AliKalmanTrack *GetITStrack() {return fITStrack;} | |
00dce61a | 48 | void AddCalibObject(TObject * calibObject); |
49 | TObject * GetCalibObject(Int_t index); | |
aa883ad7 | 50 | AliTPCseed* GetTPCseed() const {return NULL;} |
ded25cc6 | 51 | // |
52 | // parameters backup | |
53 | void SetTPCOut(const AliExternalTrackParam ¶m); | |
54 | void SetITSOut(const AliExternalTrackParam ¶m); | |
55 | void SetTRDIn(const AliExternalTrackParam ¶m); | |
56 | // | |
5637918c | 57 | |
c5060262 | 58 | const AliExternalTrackParam * GetTPCOut() const {return fTPCOut;} |
59 | const AliExternalTrackParam * GetITSOut() const {return fITSOut;} | |
60 | const AliExternalTrackParam * GetTRDIn() const {return fTRDIn;} | |
7454372c | 61 | |
6d3a7bbf | 62 | void SetITSIndices(Int_t* indices, Int_t n); |
63 | void SetTPCIndices(Int_t* indices, Int_t n); | |
64 | void SetTRDIndices(Int_t* indices, Int_t n); | |
65 | ||
66 | Int_t GetMaxITScluster() {return fnMaxITScluster;} | |
67 | Int_t GetMaxTPCcluster() {return fnMaxTPCcluster;} | |
68 | Int_t GetMaxTRDcluster() {return fnMaxTRDcluster;} | |
5637918c | 69 | |
3e341ccb | 70 | // bit manipulation for filtering |
71 | void SetSkipBit(Bool_t skip){SetBit(23,skip);} | |
72 | Bool_t TestSkipBit() {return TestBit(23);} | |
ddfbc51a | 73 | |
1d99986f | 74 | protected: |
15e85efa | 75 | Float_t f1P; // 1/P (1/(GeV/c)) |
6d3a7bbf | 76 | Int_t fnMaxITScluster; // Max number of ITS clusters |
77 | Int_t fnMaxTPCcluster; // Max number of TPC clusters | |
78 | Int_t fnMaxTRDcluster; // Max number of TRD clusters | |
79 | Int_t* fITSindex; //[fnMaxITScluster] indices of the ITS clusters | |
80 | Int_t* fTPCindex; //[fnMaxTPCcluster] indices of the TPC clusters | |
81 | Int_t* fTRDindex; //[fnMaxTRDcluster] indices of the TRD clusters | |
82 | ||
15e85efa | 83 | AliTrackPointArray *fPoints;//Array of track space points in the global frame |
00dce61a | 84 | TObjArray *fCalibContainer; //Array of objects for calibration |
15e85efa | 85 | AliKalmanTrack *fITStrack; //! pointer to the ITS track (debug purposes) |
86 | AliKalmanTrack *fTRDtrack; //! pointer to the TRD track (debug purposes) | |
ded25cc6 | 87 | // |
88 | // | |
89 | AliExternalTrackParam * fTPCOut; // tpc outer parameters | |
90 | AliExternalTrackParam * fITSOut; // its outer parameters | |
91 | AliExternalTrackParam * fTRDIn; // trd inner parameters | |
ddfbc51a | 92 | |
7454372c | 93 | private: |
42cdc768 | 94 | AliESDfriendTrack &operator=(const AliESDfriendTrack & /* t */) {return *this;} |
7454372c | 95 | |
ddfbc51a | 96 | ClassDef(AliESDfriendTrack,6) //ESD friend track |
1d99986f | 97 | }; |
98 | ||
99 | #endif | |
100 | ||
101 |