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 pad //
12 ///////////////////////////////////////////////////////////////////////////////
19 class AliTRDCalPad : public TNamed {
23 enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
26 AliTRDCalPad(const Text_t* name, const Text_t* title);
27 AliTRDCalPad(const AliTRDCalPad &c);
28 virtual ~AliTRDCalPad();
29 AliTRDCalPad &operator=(const AliTRDCalPad &c);
31 virtual void Copy(TObject &c) const;
33 static inline Int_t GetDet(Int_t p, Int_t c, Int_t s) { return p+c*kNplan+s*kNplan*kNcham; };
35 AliTRDCalROC *GetCalROC(Int_t d) { return fROC[d]; };
36 AliTRDCalROC *GetCalROC(Int_t p, Int_t c, Int_t s)
37 { return fROC[GetDet(p,c,s)]; };
39 void ScaleROCs(AliTRDCalDet* values);
43 AliTRDCalROC *fROC[kNdet]; // Array of ROC objects which contain the values per pad
45 ClassDef(AliTRDCalPad,1) // TRD calibration class for parameters which are saved per pad