]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCChMap.h
Completing the fix
[u/mrichter/AliRoot.git] / ZDC / AliZDCChMap.h
CommitLineData
b1d0c8c5 1#ifndef ALIZDCCHMAP_H
2#define ALIZDCCHMAP_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////////////////////////////////////////////////
8// Class for ZDC calibration containing //
9// the map ADC ch. <-> physics signal //
27afc0c8 10// the scaler map <-> counted signal //
b1d0c8c5 11// needed for reconstruction //
12////////////////////////////////////////////////
13
14#include "TNamed.h"
15#include "AliCDBEntry.h"
16
17class AliZDC;
18
19class AliZDCChMap: public TNamed {
20
21 public:
22 AliZDCChMap();
23 AliZDCChMap(const char* name);
24 AliZDCChMap(const AliZDCChMap &calibda);
25 AliZDCChMap& operator= (const AliZDCChMap &calibda);
26 virtual ~AliZDCChMap();
27 void Reset();
28 virtual void Print(Option_t *) const;
29 //
30 Int_t GetADCModule(Int_t i) const {return fADCModule[i];}
31 Int_t GetADCChannel(Int_t i) const {return fADCChannel[i];}
32 Int_t GetDetector(Int_t i) const {return fDetector[i];}
33 Int_t GetSector(Int_t i) const {return fSector[i];}
27afc0c8 34 //
35 Int_t GetScChannel(Int_t i) const {return fScalerChannel[i];}
36 Int_t GetScDetector(Int_t i) const {return fScDetector[i];}
37 Int_t GetScSector(Int_t i) const {return fScSector[i];}
b1d0c8c5 38
39 void SetADCModule(Int_t i, Int_t mod) {fADCModule[i] = mod;}
40 void SetADCChannel(Int_t i, Int_t ich) {fADCChannel[i] = ich;}
41 void SetDetector(Int_t i, Int_t ival) {fDetector[i] = ival;}
42 void SetSector(Int_t i, Int_t ival) {fSector[i] = ival;}
27afc0c8 43 //
44 void SetScChannel(Int_t i, Int_t ich) {fScalerChannel[i] = ich;}
45 void SetScDetector(Int_t i, Int_t ival) {fScDetector[i] = ival;}
46 void SetScSector(Int_t i, Int_t ival) {fScSector[i] = ival;}
b1d0c8c5 47
48 protected:
27afc0c8 49 // ************ ADC ************
b1d0c8c5 50 // 22 signal ch. + 2 reference ch.
51 // in-time + out-of-time signals
52 // -> 48 channels to be mapped
27afc0c8 53 Int_t fADCModule[48]; // ADC module
54 Int_t fADCChannel[48]; // ADC channel
55 Int_t fDetector[48]; // detector
56 Int_t fSector[48]; // sector
b1d0c8c5 57 //
27afc0c8 58 // ************ VME scaler ************
59 Int_t fScalerChannel[32]; // Scaler channel
60 Int_t fScDetector[32]; // detector
61 Int_t fScSector[32]; // sector
62
63 ClassDef(AliZDCChMap,2) // ZDC pedestal calibration data
b1d0c8c5 64};
65
66#endif