3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 // TRD calibration class for parameters which are saved per detector //
12 ///////////////////////////////////////////////////////////////////////////////
15 #include "AliTRDgeometry.h"
17 class AliTRDCalDet : public TNamed {
21 enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
24 AliTRDCalDet(const Text_t* name, const Text_t* title);
25 AliTRDCalDet(const AliTRDCalDet &c);
26 virtual ~AliTRDCalDet();
27 AliTRDCalDet &operator=(const AliTRDCalDet &c);
29 virtual void Copy(TObject &c) const;
31 Float_t GetValue(Int_t d) const { return fData[d]; };
32 Float_t GetValue(Int_t p, Int_t c, Int_t s) const { return fData[AliTRDgeometry::GetDetector(p,c,s)]; };
34 void SetValue(Int_t d, Float_t value) { fData[d] = value; };
35 void SetValue(Int_t p, Int_t c, Int_t s, Float_t value) { fData[AliTRDgeometry::GetDetector(p,c,s)] = value; };
39 Float_t fData[kNdet]; //[kNdet] Data
41 ClassDef(AliTRDCalDet,1) // TRD calibration class for parameters which are saved per detector