Fix by Ruben
[u/mrichter/AliRoot.git] / ZDC / AliZDCTowerCalib.h
CommitLineData
73bc3a3f 1#ifndef ALIZDCTOWERCALIB_H
2#define ALIZDCTOWERCALIB_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 -> CALIBCOEFF //
9////////////////////////////////////////////////
10
11#include "TNamed.h"
12#include "AliCDBEntry.h"
13
14class AliZDC;
15
16class AliZDCTowerCalib: public TNamed {
17
18 public:
19 AliZDCTowerCalib();
20 AliZDCTowerCalib(const char* name);
21 AliZDCTowerCalib(const AliZDCTowerCalib &calibda);
22 AliZDCTowerCalib& operator= (const AliZDCTowerCalib &calibda);
23 virtual ~AliZDCTowerCalib();
24 void Reset();
25 virtual void Print(Option_t *) const;
26 //
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;}
35
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);
44
45 protected:
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
51 //
5df9f417 52 ClassDef(AliZDCTowerCalib,3) // ZDC calibration calibration data
73bc3a3f 53};
54
55#endif