]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDCalROC.h
New offline PID code by Prashant
[u/mrichter/AliRoot.git] / TRD / AliTRDCalROC.h
CommitLineData
ed25c022 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);
24 virtual ~AliTRDCalROC();
25 AliTRDCalROC &operator=(const AliTRDCalROC &c);
26 virtual void Copy(TObject &c) const;
27
28 Int_t GetNrows() const { return fNrows; };
29 Int_t GetNcols() const { return fNcols; };
30
3551db50 31 Int_t GetChannel(Int_t c, Int_t r) { return r+c*fNrows; };
32 Int_t GetNchannels() const { return fNchannels; };
33 Float_t GetValue(Int_t ich) const { return fData[ich]; };
34 Float_t GetValue(Int_t col, Int_t row) { return fData[GetChannel(col,row)]; };
35
36 void SetValue(Int_t ich, Float_t vd) { fData[ich] = vd; };
37 void SetValue(Int_t col, Int_t row, Float_t vd)
38 { fData[GetChannel(col,row)] = vd; };
39
40 void Scale(Float_t value);
41
ed25c022 42 protected:
43
44 Int_t fPla; // Plane number
45 Int_t fCha; // Chamber number
46
47 Int_t fNrows; // Number of rows
48 Int_t fNcols; // Number of columns
49
3551db50 50 Int_t fNchannels; // Number of channels
51 Float_t *fData; //[fNchannels] Data
52
ed25c022 53 ClassDef(AliTRDCalROC,1) // TRD ROC calibration class
54
55};
56
57#endif