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 */
6 /* $Id: AliTRDCalROCVdrift.h,v */
8 ///////////////////////////////////////////////////
10 // TRD calibration class for Vdrift in one ROC //
12 ///////////////////////////////////////////////////
14 #include "AliTRDCalROC.h"
16 //_____________________________________________________________________________
17 class AliTRDCalROCVdrift : public AliTRDCalROC {
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;
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)]; };
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; };
39 Int_t fNchannels; // Number of channels
40 Float_t *fVdrift; //[fNchannels] Drift velocities
42 ClassDef(AliTRDCalROCVdrift,1) // TRD ROC calibration class for Vdrift