3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliTPCCalROC.h,v */
8 //////////////////////////////////////////////////
10 // TPC calibration base class for one ROC //
12 //////////////////////////////////////////////////
16 //_____________________________________________________________________________
17 class AliTPCCalROC : public TObject {
22 AliTPCCalROC(Int_t sector);
23 AliTPCCalROC(const AliTPCCalROC &c);
24 virtual ~AliTPCCalROC();
25 Int_t GetNrows() const { return fgNRows[fIndex]; };
26 Int_t GetNchannels() const { return fgNChannels[fIndex]; };
27 Float_t GetValue(Int_t row, Int_t pad) { return fData[fgRowPosIndex[fIndex][row]+pad]; };
28 void SetValue(Int_t row, Int_t pad, Float_t vd)
29 { fData[fgRowPosIndex[fIndex][row]+pad]= vd; };
32 Int_t fSector; // sector number
33 Int_t fIndex; // 0- if inner 1- outer
34 Float_t *fData; //[fNchannels] Data
36 static Int_t fgNSectorsAll; // number of sectors
37 static Int_t fgNSectors[2]; // number of sectors - inner outer
38 static Int_t fgNRows[2]; // number of row - inner outer
39 static Int_t fgNChannels[2]; // total number of pads - inner sector - outer sector
40 static Int_t *fgNPads[2]; // number of pads in row - inner - outer
41 static Int_t *fgRowPosIndex[2]; // index array - inner - outer
43 ClassDef(AliTPCCalROC,1) // TPC ROC calibration class