Make some calculations optional for HLT
[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
b0a48c4d 28class AliTRDCalDet;
eb38ed55 29class AliTRDgeometry;
3a039a31 30class AliTRDReconstructor;
a8276d32 31class AliTRDtrackingChamber : public TObject
eb38ed55 32{
33
34public:
349f5eeb 35 AliTRDtrackingChamber();
a8276d32 36 virtual ~AliTRDtrackingChamber(){}
37
ac1dec3b 38 void Bootstrap(const AliTRDReconstructor *rec);
a8276d32 39 Bool_t Build(AliTRDgeometry *geo, const AliTRDCalDet *cal, Bool_t hlt = kFALSE);
eb38ed55 40 void Clear(const Option_t *opt = 0x0);
a8276d32 41 Int_t GetDetector() const {return fDetector;}
42 Int_t GetNClusters() const;
43 Double_t GetQuality();
44 Bool_t GetSeedingLayer(AliTRDchamberTimeBin *&layer, AliTRDgeometry *geo, const AliTRDReconstructor *rec);
45 Float_t GetX() const {return fX0;}
fac58f00 46 AliTRDchamberTimeBin* GetTB(int tb) {return tb >= 0 && tb < AliTRDseedV1::kNtb ? &fTB[tb] : 0x0;}
a8276d32 47 void InsertCluster(AliTRDcluster *c, Int_t index);
48
6c207d50 49 void Print(Option_t *opt = 0x0) const;
50
349f5eeb 51 void SetDetector(Int_t det) { fDetector = det;}
ac1dec3b 52 void SetOwner();
fac58f00 53 void Update();
eb38ed55 54
55private:
a8276d32 56 Int_t fDetector; // detector number
57 Float_t fX0; // approximate position of the pad plane
58
fac58f00 59 AliTRDchamberTimeBin fTB[AliTRDseedV1::kNtb]; // time bins
a8276d32 60
61
62 ClassDef(AliTRDtrackingChamber, 1) // TRD tracker container for one chamber
eb38ed55 63};
64
65#endif // ALITRDTRACKINGCHAMBER_H