]>
Commit | Line | Data |
---|---|---|
07627591 | 1 | #ifndef ALITPCCALROC_H |
2 | #define ALITPCCALROC_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliTPCCalROC.h,v */ | |
7 | ||
8 | ////////////////////////////////////////////////// | |
9 | // // | |
10 | // TPC calibration base class for one ROC // | |
11 | // // | |
12 | ////////////////////////////////////////////////// | |
13 | ||
14 | #include <TObject.h> | |
15 | ||
16 | //_____________________________________________________________________________ | |
17 | class AliTPCCalROC : public TObject { | |
18 | ||
19 | public: | |
20 | ||
21 | AliTPCCalROC(); | |
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; }; | |
30 | static void Init(); | |
31 | public: | |
32 | Int_t fSector; // sector number | |
33 | Int_t fIndex; // 0- if inner 1- outer | |
34 | Float_t *fData; //[fNchannels] Data | |
35 | // | |
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 | |
42 | // | |
43 | ClassDef(AliTPCCalROC,1) // TPC ROC calibration class | |
44 | ||
45 | }; | |
46 | ||
47 | #endif |