3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliTRDCalROC.h,v */
8 //////////////////////////////////////////////////
10 // TRD calibration base class for one ROC //
12 //////////////////////////////////////////////////
16 //_____________________________________________________________________________
17 class AliTRDCalROC : public TObject {
22 AliTRDCalROC(Int_t p, Int_t c);
23 AliTRDCalROC(const AliTRDCalROC &c);
24 virtual ~AliTRDCalROC();
25 AliTRDCalROC &operator=(const AliTRDCalROC &c);
26 virtual void Copy(TObject &c) const;
28 Int_t GetNrows() const { return fNrows; };
29 Int_t GetNcols() const { return fNcols; };
31 Int_t GetChannel(Int_t c, Int_t r) { return r+c*fNrows; };
32 Int_t GetNchannels() const { return fNchannels; };
34 Float_t GetValue(Int_t ich) const { return (Float_t) fData[ich] / 10000; };
35 Float_t GetValue(Int_t col, Int_t row) { return GetValue(GetChannel(col,row)); };
37 void SetValue(Int_t ich, Float_t value) { fData[ich] = (UShort_t) (value * 10000); };
38 void SetValue(Int_t col, Int_t row, Float_t value) { SetValue(GetChannel(col,row), value); };
40 void Scale(Float_t value);
44 Int_t fPla; // Plane number
45 Int_t fCha; // Chamber number
47 Int_t fNrows; // Number of rows
48 Int_t fNcols; // Number of columns
50 Int_t fNchannels; // Number of channels
51 UShort_t *fData; //[fNchannels] Data
53 ClassDef(AliTRDCalROC, 2) // TRD ROC calibration class