1 #ifndef ALITRDRECPOINT_H
2 #define ALITRDRECPOINT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 // TRD reconstructed point //
12 ///////////////////////////////////////////////////////////////////////////////
14 #include "AliRecPoint.h"
16 class AliTRDrecPoint : public AliRecPoint {
21 AliTRDrecPoint(const char * opt);
22 virtual ~AliTRDrecPoint();
24 virtual void Print(Option_t* ) const {};
25 virtual void AddDigit(Int_t digit);
26 virtual void AddDigit(AliDigitNew& ) {};
28 void SetEnergy(Float_t amp) { fAmp = amp; }
29 void SetDetector(Int_t det) { fDetector = det; }
30 void SetLocalPosition(TVector3 &pos);
31 void SetLocalRow(Float_t r) { fLocPos.SetX(r); }
32 void SetLocalCol(Float_t c) { fLocPos.SetY(c); }
33 void SetLocalTime(Float_t t) { fLocPos.SetZ(t); }
35 void SetLocalTimeBin(Int_t tb) { fTimeBin = tb; }
36 void SetTrackingYZ(Float_t fSigmaY = 0.0, Float_t fSigmaZ = 0.0);
38 Int_t GetDetector() const { return fDetector; }
39 Int_t GetDigit(Int_t i = 0) const { if (i < fMulDigit) return fDigitsList[i];
41 Float_t GetLocalRow() const { return fLocPos(0); }
42 Float_t GetLocalCol() const { return fLocPos(1); }
43 Float_t GetLocalTime() const { return fLocPos(2); }
45 Int_t GetLocalTimeBin() const { return Int_t(fLocPos(2)); }
46 Float_t GetSigmaY2() const { return fSigmaY2; }
47 Float_t GetSigmaZ2() const { return fSigmaZ2; }
48 Float_t GetY() const { return fY; }
49 Float_t GetZ() const { return fZ; }
51 Int_t IsUsed() const { return fUsed; }
52 void Use() { fUsed++; }
53 Int_t GetTrackIndex(Int_t i) const { return fTracks[i]; }
54 void AddTrackIndex(Int_t *i);
58 Int_t fDetector; // TRD detector number
59 Int_t fTimeBin; // Time bin number within the detector
60 Int_t fUsed; // 0 initially and incremented if the point is "used"
61 Int_t fTracks[3]; // Labels of overlapped tracks
62 Float_t fY; // Local Rphi coordinate (cm) within tracking sector
63 Float_t fZ; // Local Z coordinate (cm) within tracking sector
64 Float_t fSigmaY2; // Y variance (cm)
65 Float_t fSigmaZ2; // Z variance (cm)
67 ClassDef(AliTRDrecPoint,1) // Reconstructed point for the TRD