Fixes for coverity
[u/mrichter/AliRoot.git] / ZDC / AliZDCCalib.h
CommitLineData
6d98ae8e 1#ifndef ALIZDCCALIB_H
2#define ALIZDCCALIB_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 "TH1.h"
13#include "AliCDBEntry.h"
14
15class AliZDC;
16
17class AliZDCCalib: public TNamed {
18
19 public:
20 AliZDCCalib();
21 AliZDCCalib(const char* name);
22 AliZDCCalib(const AliZDCCalib &calibda);
23 AliZDCCalib& operator= (const AliZDCCalib &calibda);
24 virtual ~AliZDCCalib();
25 void Reset();
26 virtual void Print(Option_t *) const;
27 //
28 Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];}
29 Float_t* GetEnCalib() const {return (float*)fEnCalibration;}
30 //
31 Float_t GetZN1EqualCoeff(Int_t channel) const {return fZN1EqualCoeff[channel];}
32 Float_t* GetZN1EqualCoeffs() const {return (float*)fZN1EqualCoeff;}
33 Float_t GetZP1EqualCoeff(Int_t channel) const {return fZP1EqualCoeff[channel];}
34 Float_t* GetZP1EqualCoeffs() const {return (float*)fZP1EqualCoeff;}
35 Float_t GetZN2EqualCoeff(Int_t channel) const {return fZN2EqualCoeff[channel];}
36 Float_t* GetZN2EqualCoeffs() const {return (float*)fZN2EqualCoeff;}
37 Float_t GetZP2EqualCoeff(Int_t channel) const {return fZP2EqualCoeff[channel];}
38 Float_t* GetZP2EqualCoeffs() const {return (float*)fZP2EqualCoeff;}
39
40 void SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;}
41 void SetEnCalib(Float_t* EnCalib);
42 //
43 void SetZN1EqualCoeff(Int_t channel, Float_t val) {fZN1EqualCoeff[channel]=val;}
44 void SetZN1EqualCoeff(Float_t* EqualCoeff);
45 void SetZP1EqualCoeff(Int_t channel, Float_t val) {fZP1EqualCoeff[channel]=val;}
46 void SetZP1EqualCoeff(Float_t* EqualCoeff);
47 void SetZN2EqualCoeff(Int_t channel, Float_t val) {fZN2EqualCoeff[channel]=val;}
48 void SetZN2EqualCoeff(Float_t* EqualCoeff);
49 void SetZP2EqualCoeff(Int_t channel, Float_t val) {fZP2EqualCoeff[channel]=val;}
50 void SetZP2EqualCoeff(Float_t* EqualCoeff);
51
52 protected:
53 // --- E calibration
54 Float_t fEnCalibration[6]; // Coeff. for energy calibration
55 // --- Coefficients for tower calibration
56 Float_t fZN1EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
57 Float_t fZP1EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
58 Float_t fZN2EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
59 Float_t fZP2EqualCoeff[5]; // Equalization coefficients for ZN1 PTMs
60 //
61 ClassDef(AliZDCCalib,1) // ZDC pedestal calibration data
62};
63
64#endif