]>
Commit | Line | Data |
---|---|---|
ed25c022 | 1 | #ifndef ALITRDCALROCVDRIFT_H |
2 | #define ALITRDCALROCVDRIFT_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliTRDCalROCVdrift.h,v */ | |
7 | ||
8 | /////////////////////////////////////////////////// | |
9 | // // | |
10 | // TRD calibration class for Vdrift in one ROC // | |
11 | // // | |
12 | /////////////////////////////////////////////////// | |
13 | ||
14 | #include "AliTRDCalROC.h" | |
15 | ||
16 | //_____________________________________________________________________________ | |
17 | class AliTRDCalROCVdrift : public AliTRDCalROC { | |
18 | ||
19 | public: | |
20 | ||
21 | AliTRDCalROCVdrift(); | |
22 | AliTRDCalROCVdrift(Int_t p, Int_t c); | |
23 | AliTRDCalROCVdrift(const AliTRDCalROCVdrift &c); | |
24 | virtual ~AliTRDCalROCVdrift(); | |
25 | AliTRDCalROCVdrift &operator=(const AliTRDCalROCVdrift &c); | |
26 | virtual void Copy(TObject &c) const; | |
27 | ||
28 | Int_t GetChannel(Int_t c, Int_t r) { return r+c*fNrows; }; | |
29 | Int_t GetNchannels() const { return fNchannels; }; | |
30 | Float_t GetVdrift(Int_t ich) const { return fVdrift[ich]; }; | |
31 | Float_t GetVdrift(Int_t col, Int_t row) { return fVdrift[GetChannel(col,row)]; }; | |
32 | ||
33 | void SetVdrift(Int_t ich, Float_t vd) { fVdrift[ich] = vd; }; | |
34 | void SetVdrift(Int_t col, Int_t row, Float_t vd) | |
35 | { fVdrift[GetChannel(col,row)] = vd; }; | |
36 | ||
37 | protected: | |
38 | ||
39 | Int_t fNchannels; // Number of channels | |
40 | Float_t *fVdrift; //[fNchannels] Drift velocities | |
41 | ||
42 | ClassDef(AliTRDCalROCVdrift,1) // TRD ROC calibration class for Vdrift | |
43 | ||
44 | }; | |
45 | ||
46 | #endif |