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 //////////////////////////////////////////////////
15 #include <AliTPCROC.h>
17 //_____________________________________________________________________________
18 class AliTPCCalROC : public TObject {
23 AliTPCCalROC(UInt_t sector);
24 AliTPCCalROC(const AliTPCCalROC &c);
25 virtual ~AliTPCCalROC();
26 UInt_t GetNrows() const { return fNRows;};
27 UInt_t GetNchannels() const { return fNChannels;};
28 UInt_t GetNPads(UInt_t row) const { return (row<fNRows)? AliTPCROC::Instance()->GetNPads(fSector,row):0;};
29 Float_t GetValue(UInt_t row, UInt_t pad) const { return ( (row<fNRows) && (fIndexes[row]+pad)<fNChannels)? fData[fIndexes[row]+pad]: 0; };
30 Float_t GetValue(UInt_t channel) const { return fData[channel]; };
31 void SetValue(UInt_t row, UInt_t pad, Float_t vd) { if ( row<fNRows && (fIndexes[row]+pad)<fNChannels)fData[fIndexes[row]+pad]= vd; };
32 void SetValue(UInt_t channel, Float_t vd) {fData[channel]= vd; };
33 virtual void Draw(Option_t* option = "");
36 UInt_t fSector; // sector number
37 UInt_t fNChannels; // number of channels
38 UInt_t fNRows; // number of rows
39 const UInt_t* fIndexes; //!indexes
40 Float_t *fData; //[fNChannels] Data
41 ClassDef(AliTPCCalROC,1) // TPC ROC calibration class