1 #ifndef ALITRDGTUTRACK_H
2 #define ALITRDGTUTRACK_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 // TRD module global track (GTU) //
12 ///////////////////////////////////////////////////////////////////////////////
16 class AliTRDltuTracklet;
18 class AliTRDgtuTrack : public TObject {
22 enum { kNmaxTrk = 12, kNplan = 6 };
25 AliTRDgtuTrack(const AliTRDgtuTrack &t);
26 virtual ~AliTRDgtuTrack();
27 AliTRDgtuTrack &operator=(const AliTRDgtuTrack &t);
29 virtual void Copy(TObject &t) const;
31 Bool_t IsSortable() const { return kTRUE; }
32 virtual Int_t Compare(const TObject *o) const;
34 void ResetTracklets();
35 void Track(Float_t xpl, Float_t field);
37 void SetDetector(Int_t det) { fDetector = det; };
39 void AddTracklet(AliTRDltuTracklet *trk);
40 Int_t GetNtracklets() const;
42 AliTRDltuTracklet *GetTracklet(Int_t pos) const;
43 TObjArray *Tracklets();
45 Float_t GetYproj() const { return fYproj; };
46 Float_t GetZproj() const { return fZproj; };
47 Float_t GetSlope() const { return fSlope; };
48 Int_t GetTracklets() const { return fNtracklets; };
49 Int_t GetPlanes() const { return fNplanes; };
50 Int_t GetClusters() const { return fNclusters; };
51 Float_t GetPt() const { return fPt; };
52 Float_t GetPhi() const { return fPhi; };
53 Float_t GetEta() const { return fEta; };
54 Int_t GetLabel() const { return fLabel; };
55 Int_t GetDetector() const { return fDetector; };
56 Float_t GetPID() const { return fPID; };
57 Bool_t IsElectron() const { return fIsElectron; };
61 TObjArray *fTracklets; //! Array of LTU tracklets
63 Float_t fYproj; // Average y-projection
64 Float_t fZproj; // Average z-projection
65 Float_t fSlope; // Average slope
67 Int_t fDetector; // First detector in the module
69 Int_t fNtracklets; // Number of tracklets
70 Int_t fNplanes; // Number of TRD planes
71 Int_t fNclusters; // Total number of clusters
73 Float_t fPt; // Transverse momentum
74 Float_t fPhi; // Phi angle at the vertex
75 Float_t fEta; // Eta at the vertex
76 Int_t fLabel; // Track label
77 Float_t fPID; // PID electron likelihood
78 Bool_t fIsElectron; // Electron flag
80 ClassDef(AliTRDgtuTrack,2) // TRD module global track (GTU)