]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDrecPoint.h
Reconstruction QA by Sylwester
[u/mrichter/AliRoot.git] / TRD / AliTRDrecPoint.h
CommitLineData
8230f242 1#ifndef ALITRDRECPOINT_H
2#define ALITRDRECPOINT_H
f7336fa3 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
0a29d0f1 8///////////////////////////////////////////////////////////////////////////////
9// //
10// TRD reconstructed point //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
f7336fa3 14#include "AliRecPoint.h"
15
16class AliTRDrecPoint : public AliRecPoint {
17
18 public:
19
20 AliTRDrecPoint();
11432582 21 AliTRDrecPoint(const char * opt);
6d50f529 22 virtual ~AliTRDrecPoint();
23
24 virtual void Print(Option_t* ) const {};
25 virtual void AddDigit(Int_t digit);
26 virtual void AddDigit(AliDigitNew& ) {};
27
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); }
34
35 void SetLocalTimeBin(Int_t tb) { fTimeBin = tb; }
36 void SetTrackingYZ(Float_t fSigmaY = 0.0, Float_t fSigmaZ = 0.0);
37
38 Int_t GetDetector() const { return fDetector; }
39 Int_t GetDigit(Int_t i = 0) const { if (i < fMulDigit) return fDigitsList[i];
40 else return -1; }
41 Float_t GetLocalRow() const { return fLocPos(0); }
42 Float_t GetLocalCol() const { return fLocPos(1); }
43 Float_t GetLocalTime() const { return fLocPos(2); }
44
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; }
50
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);
f7336fa3 55
56 protected:
57
6d50f529 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)
f7336fa3 66
6d50f529 67 ClassDef(AliTRDrecPoint,1) // Reconstructed point for the TRD
f7336fa3 68
69};
70
71#endif