Classes for ZDC calibration (by A. Colla)
[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
15class AliZDCCalibData:
16public TNamed {
17 //
18 public:
19 AliZDCCalibData();
20 AliZDCCalibData(const char* name);
21 virtual ~AliZDCCalibData();
22 void Reset();
23 virtual void Print() const;
24 //
25 Float_t GetMeanPed(Int_t channel) const {return fMeanPedestal[channel];}
26 Float_t* GetMeanPed() const {return (float*)fMeanPedestal;}
27
28 Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];}
29 Float_t* GetEnCalib() const {return (float*)fEnCalibration;}
30
31 //
32 void SetMeanPed(Float_t val, Int_t channel) {fMeanPedestal[channel]=val;}
33 void SetMeanPed(Float_t* MeanPed);
34
35 void SetEnCalib(Float_t val, Int_t channel) {fEnCalibration[channel]=val;}
36 void SetEnCalib(Float_t* EnCalib);
37
38 //
39 void PrepHistos();
40 TH1F* GetHistMeanPed() const {return fHistMeanPed;}
41 void CleanHistos();
42 //
43 protected:
44 Float_t fMeanPedestal[47]; // Mean pedestal values
45 Float_t fEnCalibration[4]; // Coeff. for energy calibration (4 different ZDC's?)
46
47 TH1F* fHistMeanPed; //! histos for drawing mean pedestals
48 //
49 ClassDef(AliZDCCalibData,11) // ZDC Sensor Calibration data
50};
51
52#endif