RAWDATA closer to reality
[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);
20 virtual ~AliZDCCalibData();
21 void Reset();
22 virtual void Print() const;
23 //
35833839 24 Float_t GetMeanPed(Int_t channel) const {return fMeanPedestal[channel];}
25 Float_t* GetMeanPed() const {return (float*)fMeanPedestal;}
26 Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];}
27 Float_t* GetEnCalib() const {return (float*)fEnCalibration;}
8af17dba 28 //
29 void SetMeanPed(Float_t val, Int_t channel) {fMeanPedestal[channel]=val;}
30 void SetMeanPed(Float_t* MeanPed);
8af17dba 31 void SetEnCalib(Float_t val, Int_t channel) {fEnCalibration[channel]=val;}
32 void SetEnCalib(Float_t* EnCalib);
8af17dba 33 //
34 void PrepHistos();
35 TH1F* GetHistMeanPed() const {return fHistMeanPed;}
36 void CleanHistos();
35833839 37
8af17dba 38 protected:
39 Float_t fMeanPedestal[47]; // Mean pedestal values
40 Float_t fEnCalibration[4]; // Coeff. for energy calibration (4 different ZDC's?)
8af17dba 41 TH1F* fHistMeanPed; //! histos for drawing mean pedestals
42 //
35833839 43 ClassDef(AliZDCCalibData,1) // ZDC Sensor Calibration data
8af17dba 44};
45
46#endif