]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDCalDet.h
Update of calibration classes by Jan Fiete
[u/mrichter/AliRoot.git] / TRD / AliTRDCalDet.h
CommitLineData
3551db50 1#ifndef ALITRDCALDET_H
2#define ALITRDCALDET_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 detector //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include "TNamed.h"
15#include "AliTRDgeometry.h"
16
17class AliTRDCalDet : public TNamed {
18
19 public:
20
21 enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
22
23 AliTRDCalDet();
24 AliTRDCalDet(const Text_t* name, const Text_t* title);
25 AliTRDCalDet(const AliTRDCalDet &c);
26 virtual ~AliTRDCalDet();
27 AliTRDCalDet &operator=(const AliTRDCalDet &c);
28
29 virtual void Copy(TObject &c) const;
30
31 Float_t GetValue(Int_t d) { return fData[d]; };
32 Float_t GetValue(Int_t p, Int_t c, Int_t s) { return fData[AliTRDgeometry::GetDetector(p,c,s)]; };
33
34 void SetValue(Int_t d, Float_t value) { fData[d] = value; };
35 void SetValue(Int_t p, Int_t c, Int_t s, Float_t value) { fData[AliTRDgeometry::GetDetector(p,c,s)] = value; };
36
37 protected:
38
39 Float_t fData[kNdet]; //[kNdet] Data
40
41 ClassDef(AliTRDCalDet,1) // TRD calibration class for parameters which are saved per detector
42
43};
44
45#endif