re-activate contrib code
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackingChamber.h
CommitLineData
eb38ed55 1#ifndef ALITRDTRACKINGCHAMBER_H
2#define ALITRDTRACKINGCHAMBER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
a8276d32 5* See cxx source for full Copyright notice */
eb38ed55 6
7/* $Id: AliTRDtrackingChamber.h 22646 2007-11-29 18:13:40Z cblume $ */
8
9////////////////////////////////////////////////////////////////////////////
10// //
11// Data container for one TRD chamber //
12// //
13// Authors: //
14// //
15// Alex Bercuci <A.Bercuci@gsi.de> //
16// //
17////////////////////////////////////////////////////////////////////////////
18
19#ifndef ALITRDCHAMBERTIMEBIN_H
20#include "AliTRDchamberTimeBin.h"
21#endif
22
a8276d32 23
fac58f00 24#ifndef ALITRDSEEDV1_H
25#include "AliTRDseedV1.h"
a8276d32 26#endif
27
eb38ed55 28class AliTRDgeometry;
3a039a31 29class AliTRDReconstructor;
a8276d32 30class AliTRDtrackingChamber : public TObject
eb38ed55 31{
32
33public:
349f5eeb 34 AliTRDtrackingChamber();
a8276d32 35 virtual ~AliTRDtrackingChamber(){}
36
ac1dec3b 37 void Bootstrap(const AliTRDReconstructor *rec);
5eb768d6 38 Bool_t Build(AliTRDgeometry *const geo, Bool_t hlt = kFALSE);
4d6aee34 39 void Clear(const Option_t *opt = NULL);
c79857d5 40 Int_t GetDetector() const { return fDetector;}
a8276d32 41 Int_t GetNClusters() const;
42 Double_t GetQuality();
4d6aee34 43 Bool_t GetSeedingLayer(AliTRDchamberTimeBin *&layer, AliTRDgeometry * const geo, const AliTRDReconstructor *rec);
a8276d32 44 Float_t GetX() const {return fX0;}
4d6aee34 45 AliTRDchamberTimeBin* GetTB(int tb) {return tb >= 0 && tb < AliTRDseedV1::kNtb ? &fTB[tb] : NULL;}
5eb768d6 46 // Float_t GetExB() const { return fExB;}
47 // Float_t GetVD() const { return fVD;}
48 // Float_t GetT0() const { return fT0;}
49 // Float_t GetS2PRF() const { return fS2PRF;}
50 // Float_t GetDiffL() const { return fDiffL;}
51 // Float_t GetDiffT() const { return fDiffT;}
c79857d5 52
5eb768d6 53 void SetDetector(Int_t det) { fDetector = det; }
54 void InsertCluster(AliTRDcluster *c, Int_t index) { fTB[c->GetPadTime()].InsertCluster(c, index); }
a8276d32 55
4d6aee34 56 void Print(Option_t *opt = NULL) const;
6c207d50 57
ac1dec3b 58 void SetOwner();
fac58f00 59 void Update();
eb38ed55 60
61private:
a8276d32 62 Int_t fDetector; // detector number
c79857d5 63 Float_t fX0; // radial position of the pad plane
5eb768d6 64 // Float_t fExB; // tg(a_L) for chamber
65 // Float_t fVD; // drift velocity for chamber
4eb02ab1 66 // Float_t fT0; // time 0 for chamber
5eb768d6 67 // Float_t fS2PRF; // sigma^2 PRF for xd->0 and phi=a_L
68 // Float_t fDiffL; // longitudinal diffusion coefficient
69 // Float_t fDiffT; // transversal diffusion coefficient
a8276d32 70
fac58f00 71 AliTRDchamberTimeBin fTB[AliTRDseedV1::kNtb]; // time bins
a8276d32 72
73
c79857d5 74 ClassDef(AliTRDtrackingChamber, 2) // TRD tracker container for one chamber
eb38ed55 75};
76
77#endif // ALITRDTRACKINGCHAMBER_H