Moving reconstruction settings to the reco params, new cosmics reco param OCDB entry...
[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 //
10// needed for reconstruction //
11////////////////////////////////////////////////
12
13#include "TNamed.h"
14#include "AliCDBEntry.h"
15
16class AliZDC;
17
18class AliZDCChMap: public TNamed {
19
20 public:
21 AliZDCChMap();
22 AliZDCChMap(const char* name);
23 AliZDCChMap(const AliZDCChMap &calibda);
24 AliZDCChMap& operator= (const AliZDCChMap &calibda);
25 virtual ~AliZDCChMap();
26 void Reset();
27 virtual void Print(Option_t *) const;
28 //
29 Int_t GetADCModule(Int_t i) const {return fADCModule[i];}
30 Int_t GetADCChannel(Int_t i) const {return fADCChannel[i];}
31 Int_t GetDetector(Int_t i) const {return fDetector[i];}
32 Int_t GetSector(Int_t i) const {return fSector[i];}
33
34 void SetADCModule(Int_t i, Int_t mod) {fADCModule[i] = mod;}
35 void SetADCChannel(Int_t i, Int_t ich) {fADCChannel[i] = ich;}
36 void SetDetector(Int_t i, Int_t ival) {fDetector[i] = ival;}
37 void SetSector(Int_t i, Int_t ival) {fSector[i] = ival;}
38
39 protected:
40 // 22 signal ch. + 2 reference ch.
41 // in-time + out-of-time signals
42 // -> 48 channels to be mapped
43 Int_t fADCModule[48]; // ADC module
44 Int_t fADCChannel[48]; // ADC channel
45 Int_t fDetector[48]; // detector
46 Int_t fSector[48]; // sector
47 //
48 ClassDef(AliZDCChMap,1) // ZDC pedestal calibration data
49};
50
51#endif