]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDgtuTrack.h
First upload of a macro to create raw data manually
[u/mrichter/AliRoot.git] / TRD / AliTRDgtuTrack.h
CommitLineData
e3b2b5e5 1#ifndef ALITRDGTUTRACK_H
2#define ALITRDGTUTRACK_H
6d50f529 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
e3b2b5e5 7
8///////////////////////////////////////////////////////////////////////////////
9// //
10// TRD module global track (GTU) //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
6d50f529 14#include <TObject.h>
e3b2b5e5 15
16class AliTRDltuTracklet;
17
18class AliTRDgtuTrack : public TObject {
19
20 public:
21
22 enum { kNmaxTrk = 12, kNplan = 6 };
23
24 AliTRDgtuTrack();
6d50f529 25 AliTRDgtuTrack(const AliTRDgtuTrack &t);
26 virtual ~AliTRDgtuTrack();
27 AliTRDgtuTrack &operator=(const AliTRDgtuTrack &t);
28
29 virtual void Copy(TObject &t) const;
30
31 Bool_t IsSortable() const { return kTRUE; }
32 virtual Int_t Compare(const TObject *o) const;
33 void Reset();
34 void ResetTracklets();
35 void Track(Float_t xpl, Float_t field);
36 void CookLabel();
37 void SetDetector(Int_t det) { fDetector = det; };
38 void MakePID();
39 void AddTracklet(AliTRDltuTracklet *trk);
40 Int_t GetNtracklets() const;
41
42 AliTRDltuTracklet *GetTracklet(Int_t pos) const;
43 TObjArray *Tracklets();
44
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; };
e3b2b5e5 58
59 protected:
60
6d50f529 61 TObjArray *fTracklets; //! Array of LTU tracklets
e3b2b5e5 62
6d50f529 63 Float_t fYproj; // Average y-projection
64 Float_t fZproj; // Average z-projection
65 Float_t fSlope; // Average slope
e3b2b5e5 66
6d50f529 67 Int_t fDetector; // First detector in the module
e3b2b5e5 68
6d50f529 69 Int_t fNtracklets; // Number of tracklets
70 Int_t fNplanes; // Number of TRD planes
71 Int_t fNclusters; // Total number of clusters
e3b2b5e5 72
6d50f529 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
e3b2b5e5 79
6d50f529 80 ClassDef(AliTRDgtuTrack,2) // TRD module global track (GTU)
e3b2b5e5 81
82};
83
84#endif