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