]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalROC.h
Incrementing the version in AliRunTag
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalROC.h
CommitLineData
7754cd1f 1#ifndef ALITRDCALROC_H
2#define ALITRDCALROC_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliTRDCalROC.h,v */
7
8//////////////////////////////////////////////////
9// //
10// TRD calibration base class for one ROC //
11// //
12//////////////////////////////////////////////////
13
14#include <TObject.h>
15
16//_____________________________________________________________________________
17class AliTRDCalROC : public TObject {
18
19 public:
20
21 AliTRDCalROC();
22 AliTRDCalROC(Int_t p, Int_t c);
23 AliTRDCalROC(const AliTRDCalROC &c);
2745a409 24 virtual ~AliTRDCalROC();
25 AliTRDCalROC &operator=(const AliTRDCalROC &c);
26 virtual void Copy(TObject &c) const;
7754cd1f 27
2745a409 28 Int_t GetNrows() const { return fNrows; };
29 Int_t GetNcols() const { return fNcols; };
7754cd1f 30
2745a409 31 Int_t GetChannel(Int_t c, Int_t r) { return r+c*fNrows; };
32 Int_t GetNchannels() const { return fNchannels; };
7754cd1f 33
2745a409 34 Float_t GetValue(Int_t ich) const { return (Float_t) fData[ich] / 10000; };
35 Float_t GetValue(Int_t col, Int_t row) { return GetValue(GetChannel(col,row)); };
7754cd1f 36
2745a409 37 void SetValue(Int_t ich, Float_t value)
38 { fData[ich] = (UShort_t) (value * 10000); };
39 void SetValue(Int_t col, Int_t row, Float_t value)
40 { SetValue(GetChannel(col,row), value); };
7754cd1f 41
2745a409 42 void Scale(Float_t value);
7754cd1f 43
44 protected:
45
2745a409 46 Int_t fPla; // Plane number
47 Int_t fCha; // Chamber number
7754cd1f 48
2745a409 49 Int_t fNrows; // Number of rows
50 Int_t fNcols; // Number of columns
7754cd1f 51
2745a409 52 Int_t fNchannels; // Number of channels
53 UShort_t *fData; //[fNchannels] Data
7754cd1f 54
55 ClassDef(AliTRDCalROC, 2) // TRD ROC calibration class
56
57};
58
59#endif