]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalDet.h
First round of effc++ changes
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDet.h
CommitLineData
7754cd1f 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);
2745a409 26 virtual ~AliTRDCalDet();
7754cd1f 27 AliTRDCalDet &operator=(const AliTRDCalDet &c);
28
2745a409 29 virtual void Copy(TObject &c) const;
7754cd1f 30
2745a409 31 Float_t GetValue(Int_t d) const { return fData[d]; };
32 Float_t GetValue(Int_t p, Int_t c, Int_t s) const
33 { return fData[AliTRDgeometry::GetDetector(p,c,s)]; };
7754cd1f 34
2745a409 35 void SetValue(Int_t d, Float_t value) { fData[d] = value; };
36 void SetValue(Int_t p, Int_t c, Int_t s, Float_t value)
37 { fData[AliTRDgeometry::GetDetector(p,c,s)] = value; };
7754cd1f 38
2745a409 39 protected:
7754cd1f 40
2745a409 41 Float_t fData[kNdet]; //[kNdet] Data
7754cd1f 42
2745a409 43 ClassDef(AliTRDCalDet,1) // TRD calibration class for parameters which are saved per detector
7754cd1f 44
45};
46
47#endif