1 #ifndef ALIZDCTOWERCALIB_H
2 #define ALIZDCTOWERCALIB_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////
8 // class for ZDC calibration -> CALIBCOEFF //
9 ////////////////////////////////////////////////
12 #include "AliCDBEntry.h"
16 class AliZDCTowerCalib: public TNamed {
20 AliZDCTowerCalib(const char* name);
21 AliZDCTowerCalib(const AliZDCTowerCalib &calibda);
22 AliZDCTowerCalib& operator= (const AliZDCTowerCalib &calibda);
23 virtual ~AliZDCTowerCalib();
25 virtual void Print(Option_t *) const;
27 Float_t GetZN1EqualCoeff(Int_t channel) const {return fZN1EqualCoeff[channel];}
28 Float_t* GetZN1EqualCoeffs() const {return (float*)fZN1EqualCoeff;}
29 Float_t GetZP1EqualCoeff(Int_t channel) const {return fZP1EqualCoeff[channel];}
30 Float_t* GetZP1EqualCoeffs() const {return (float*)fZP1EqualCoeff;}
31 Float_t GetZN2EqualCoeff(Int_t channel) const {return fZN2EqualCoeff[channel];}
32 Float_t* GetZN2EqualCoeffs() const {return (float*)fZN2EqualCoeff;}
33 Float_t GetZP2EqualCoeff(Int_t channel) const {return fZP2EqualCoeff[channel];}
34 Float_t* GetZP2EqualCoeffs() const {return (float*)fZP2EqualCoeff;}
36 void SetZN1EqualCoeff(Int_t channel, Float_t val) {fZN1EqualCoeff[channel]=val;}
37 void SetZN1EqualCoeff(Float_t* EqualCoeff);
38 void SetZP1EqualCoeff(Int_t channel, Float_t val) {fZP1EqualCoeff[channel]=val;}
39 void SetZP1EqualCoeff(Float_t* EqualCoeff);
40 void SetZN2EqualCoeff(Int_t channel, Float_t val) {fZN2EqualCoeff[channel]=val;}
41 void SetZN2EqualCoeff(Float_t* EqualCoeff);
42 void SetZP2EqualCoeff(Int_t channel, Float_t val) {fZP2EqualCoeff[channel]=val;}
43 void SetZP2EqualCoeff(Float_t* EqualCoeff);
46 // --- Coefficients for tower calibration
47 Float_t fZN1EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
48 Float_t fZP1EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
49 Float_t fZN2EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
50 Float_t fZP2EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
52 ClassDef(AliZDCTowerCalib,3) // ZDC calibration calibration data