Change in CookdEdx() by Prashant
[u/mrichter/AliRoot.git] / ZDC / AliZDCCalibData.h
CommitLineData
8af17dba 1#ifndef ALIZDCCALIBDATA_H
2#define ALIZDCCALIBDATA_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 //
9////////////////////////////////////////////////
10
11#include "TNamed.h"
12#include "TH1.h"
13#include "AliZDC.h"
14
35833839 15class AliZDCCalibData: public TNamed {
16
8af17dba 17 public:
18 AliZDCCalibData();
19 AliZDCCalibData(const char* name);
8599f95e 20 AliZDCCalibData(const AliZDCCalibData &calibda);
21 AliZDCCalibData& operator= (const AliZDCCalibData &calibda);
8af17dba 22 virtual ~AliZDCCalibData();
23 void Reset();
5bc762ca 24 virtual void Print(Option_t *) const;
8af17dba 25 //
35833839 26 Float_t GetMeanPed(Int_t channel) const {return fMeanPedestal[channel];}
27 Float_t* GetMeanPed() const {return (float*)fMeanPedestal;}
28 Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];}
29 Float_t* GetEnCalib() const {return (float*)fEnCalibration;}
8af17dba 30 //
31 void SetMeanPed(Float_t val, Int_t channel) {fMeanPedestal[channel]=val;}
32 void SetMeanPed(Float_t* MeanPed);
8af17dba 33 void SetEnCalib(Float_t val, Int_t channel) {fEnCalibration[channel]=val;}
34 void SetEnCalib(Float_t* EnCalib);
8af17dba 35 //
36 void PrepHistos();
37 TH1F* GetHistMeanPed() const {return fHistMeanPed;}
38 void CleanHistos();
35833839 39
8af17dba 40 protected:
41 Float_t fMeanPedestal[47]; // Mean pedestal values
42 Float_t fEnCalibration[4]; // Coeff. for energy calibration (4 different ZDC's?)
8af17dba 43 TH1F* fHistMeanPed; //! histos for drawing mean pedestals
44 //
35833839 45 ClassDef(AliZDCCalibData,1) // ZDC Sensor Calibration data
8af17dba 46};
47
48#endif