]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Cal/AliTRDCalDCSGTU.h
introduce tracking efficiency for each species
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCSGTU.h
CommitLineData
54c3cb53 1#ifndef AliTRDCALDCSGTU_H
2#define AliTRDCALDCSGTU_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
faa87e39 6/* $Id: AliTRDCalDCSGTU.h 18952 2007-06-08 11:36:12Z cblume $ */
54c3cb53 7
8///////////////////////////////////////////////////////////////////////////////
9// //
10// TRD calibration class for TRD GTU configuration parameters //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include "TNamed.h"
15
16class TString;
17
18class AliTRDCalDCSGTU : public TNamed {
19
20 public:
21
22 AliTRDCalDCSGTU();
23 AliTRDCalDCSGTU(const char *name, const char *title);
24 virtual ~AliTRDCalDCSGTU() { };
25
26 void SetDCSid(Int_t dcsid) { fDCSID = dcsid; }
27 void SetSMMaskBit(Int_t smid, Int_t mbit) { fSMMask[smid] = mbit; }
28 void SetStackMaskBit(Int_t smid, Int_t stid, Int_t mbit)
29 { fStackMask[smid][stid] = mbit; }
30 void SetLinkMaskBit(Int_t smid, Int_t stid, Int_t lkid, Int_t mbit)
31 { fLinkMask[smid][stid][lkid] = mbit; }
32 Int_t SetSMMask(const char *smmask);
33 Int_t SetLinkMask(Int_t smid, Int_t stid, const char *lkmask);
34
35 Int_t GetDCSid() const { return fDCSID; }
36 char GetSMMaskBit(Int_t smid) const { return fSMMask[smid]; }
37 char GetStackMaskBit(Int_t smid, Int_t stid) const
38 { return fStackMask[smid][stid]; }
39 char GetLinkMaskBit(Int_t smid, Int_t stid, Int_t lkid) const
40 { return fLinkMask[smid][stid][lkid]; }
41
42 protected:
43
44 Int_t fDCSID; // ID of the DCS-Board
45 Int_t fSMMask[18]; // supermodule mask [SM-ID]
46 Int_t fStackMask[18][5]; // stack mask [SM-ID][Stack-ID]
47 Int_t fLinkMask[18][5][12]; // link mask [SM-ID][Stack-ID][Link-ID]
48
49 ClassDef(AliTRDCalDCSGTU,1) // TRD calibration class for TRD GTU parameters
50
51};
52#endif