]>
Commit | Line | Data |
---|---|---|
7754cd1f | 1 | #ifndef ALITRDCALPAD_H |
2 | #define ALITRDCALPAD_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // TRD calibration class for parameters which are saved per pad // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TNamed.h" | |
15 | ||
16 | class AliTRDCalROC; | |
17 | class AliTRDCalDet; | |
18 | ||
19 | class AliTRDCalPad : public TNamed { | |
20 | ||
21 | public: | |
22 | ||
23 | enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 }; | |
24 | ||
25 | AliTRDCalPad(); | |
26 | AliTRDCalPad(const Text_t* name, const Text_t* title); | |
27 | AliTRDCalPad(const AliTRDCalPad &c); | |
2745a409 | 28 | virtual ~AliTRDCalPad(); |
29 | AliTRDCalPad &operator=(const AliTRDCalPad &c); | |
7754cd1f | 30 | |
2745a409 | 31 | virtual void Copy(TObject &c) const; |
7754cd1f | 32 | |
2745a409 | 33 | static inline Int_t GetDet(Int_t p, Int_t c, Int_t s) { return p+c*kNplan+s*kNplan*kNcham; }; |
7754cd1f | 34 | |
2745a409 | 35 | AliTRDCalROC *GetCalROC(Int_t d) const { return fROC[d]; }; |
36 | AliTRDCalROC *GetCalROC(Int_t p, Int_t c, Int_t s) const | |
37 | { return fROC[GetDet(p,c,s)]; }; | |
7754cd1f | 38 | |
2745a409 | 39 | void ScaleROCs(AliTRDCalDet* values); |
7754cd1f | 40 | |
41 | protected: | |
42 | ||
2745a409 | 43 | AliTRDCalROC *fROC[kNdet]; // Array of ROC objects which contain the values per pad |
7754cd1f | 44 | |
2745a409 | 45 | ClassDef(AliTRDCalPad,1) // TRD calibration class for parameters which are saved per pad |
7754cd1f | 46 | |
47 | }; | |
48 | ||
49 | #endif |