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