Change AliTRDdataArrayI to AliTRDdataArray in MakeBranch()
[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
8#include "AliRecPoint.h"
9
10class AliTRDrecPoint : public AliRecPoint {
11
12 public:
13
14 AliTRDrecPoint();
8230f242 15 virtual ~AliTRDrecPoint();
16
dd9a6ee3 17 virtual void Print(Option_t* opt) {};
6f1e466d 18 virtual void AddDigit(Int_t digit);
9d0b222b 19 virtual void AddDigit(AliDigitNew &digit) {};
6f1e466d 20
21 virtual void SetEnergy(Float_t amp) { fAmp = amp; };
22 virtual void SetDetector(Int_t det) { fDetector = det; };
23 virtual void SetLocalPosition(TVector3 &pos);
24 virtual void SetLocalRow(Float_t r) { fLocPos.SetX(r); };
25 virtual void SetLocalCol(Float_t c) { fLocPos.SetY(c); };
26 virtual void SetLocalTime(Float_t t) { fLocPos.SetZ(t); };
27
793ff80c 28 virtual void SetLocalTimeBin(Int_t tb) { fTimeBin = tb; }
29 virtual void SetTrackingYZ(Float_t fSigmaY = 0.0, Float_t fSigmaZ = 0.0);
30
31 virtual Int_t GetDetector() const { return fDetector; };
32 virtual Int_t GetDigit(Int_t i = 0) const { if (i < fMulDigit)
6f1e466d 33 return fDigitsList[i];
34 else
35 return -1;};
793ff80c 36 virtual Float_t GetLocalRow() const { return fLocPos(0); };
37 virtual Float_t GetLocalCol() const { return fLocPos(1); };
38 virtual Float_t GetLocalTime() const { return fLocPos(2); };
39
40 virtual Int_t GetLocalTimeBin() const { return Int_t(fLocPos(2)); }
41 virtual Float_t GetSigmaY2() const { return fSigmaY2; }
42 virtual Float_t GetSigmaZ2() const { return fSigmaZ2; }
43 virtual Float_t GetY() const { return fY; }
44 virtual Float_t GetZ() const { return fZ; }
45 Int_t IsUsed() const { return fUsed; }
46 void Use() { fUsed++; }
47 Int_t GetTrackIndex(Int_t i) const { return fTracks[i]; }
48 void AddTrackIndex(Int_t *i);
f7336fa3 49
50 protected:
51
52 Int_t fDetector; // TRD detector number
793ff80c 53 Int_t fTimeBin; // Time bin number within the detector
54 Int_t fUsed; // 0 initially and incremented if the point is "used"
55 Int_t fTracks[3]; // labels of overlapped tracks
56 Float_t fY; // local Rphi coordinate (cm) within tracking sector
57 Float_t fZ; // local Z coordinate (cm) within tracking sector
58 Float_t fSigmaY2; // Y variance (cm)
59 Float_t fSigmaZ2; // Z variance (cm)
f7336fa3 60
61 ClassDef(AliTRDrecPoint,1) // Reconstructed point for the TRD
62
63};
64
65#endif