]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCCalibData.h
Updated version of deuteron emission in nuclear fragment production algorithm
[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"
48642b09 13#include "AliCDBEntry.h"
8af17dba 14
8a2624cc 15class AliZDC;
16
35833839 17class AliZDCCalibData: public TNamed {
18
8af17dba 19 public:
20 AliZDCCalibData();
21 AliZDCCalibData(const char* name);
8599f95e 22 AliZDCCalibData(const AliZDCCalibData &calibda);
23 AliZDCCalibData& operator= (const AliZDCCalibData &calibda);
8af17dba 24 virtual ~AliZDCCalibData();
25 void Reset();
5bc762ca 26 virtual void Print(Option_t *) const;
8af17dba 27 //
8831501a 28 Float_t GetMeanPed(Int_t channel) const {return fMeanPedestal[channel];}
29 Float_t* GetMeanPed() const {return (float*)fMeanPedestal;}
30 Float_t GetMeanPedWidth(Int_t channel) const {return fMeanPedWidth[channel];}
31 Float_t* GetMeanPedWidth() const {return (float*)fMeanPedWidth;}
32 Float_t GetOOTPed(Int_t channel) const {return fOOTPedestal[channel];}
33 Float_t* GetOOTPed() const {return (float*)fOOTPedestal;}
34 Float_t GetOOTPedWidth(Int_t channel) const {return fOOTPedWidth[channel];}
35 Float_t* GetOOTPedWidth() const {return (float*)fOOTPedWidth;}
36 Float_t GetPedCorrCoeff0(Int_t channel) const {return fPedCorrCoeff[0][channel];}
37 Float_t GetPedCorrCoeff1(Int_t channel) const {return fPedCorrCoeff[1][channel];}
38 Float_t* GetPedCorrCoeff() const {return (float*)fPedCorrCoeff;}
39 //
35833839 40 Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];}
8831501a 41 Float_t* GetEnCalib() const {return (float*)fEnCalibration;}
31af5828 42 //
43 Float_t GetPMTHVVal(Int_t channel) const {return fPMTHVVal[channel];}
44 Float_t* GetPMTHVVal() const {return (float*)fPMTHVVal;}
31af5828 45
8831501a 46 //
47 void SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;}
48 void SetMeanPed(Float_t* MeanPed);
49 void SetMeanPedWidth(Int_t channel, Float_t val) {fMeanPedWidth[channel]=val;}
50 void SetMeanPedWidth(Float_t* MeanPedWidth);
51 void SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;}
52 void SetOOTPed(Float_t* OOTPed);
53 void SetOOTPedWidth(Int_t channel, Float_t val) {fOOTPedWidth[channel]=val;}
54 void SetOOTPedWidth(Float_t* OOTPedWidth);
55 void SetPedCorrCoeff(Int_t channel, Float_t valCoeff0, Float_t valCoeff1)
56 {fPedCorrCoeff[0][channel]=valCoeff0; fPedCorrCoeff[1][channel]=valCoeff1;}
31af5828 57 void SetPedCorrCoeff(Float_t* PedCorrCoeff);
8831501a 58 void SetPedCorrCoeff(Float_t* PedCorrCoeff0, Float_t* PedCorrCoeff1);
8af17dba 59 //
8831501a 60 void SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;}
61 void SetEnCalib(Float_t* EnCalib);
8af17dba 62 //
31af5828 63 void SetPMTHVVal(Int_t channel, Float_t val) {fPMTHVVal[channel]=val;}
64 void SetPMTHVVal(Float_t* HVVal);
79563ba1 65
8af17dba 66 protected:
8831501a 67 // --- Pedestals
68 Float_t fMeanPedestal[47]; // Mean pedestal values
69 Float_t fMeanPedWidth[47]; // Mean pedestal values
70 Float_t fOOTPedestal[44]; // "Out of Time" pedestal values
71 Float_t fOOTPedWidth[44]; // "Out of Time" pedestal values
72 Float_t fPedCorrCoeff[2][44]; // Fit of correlation in-time vs. out-of-time
73 // --- E calibration
74 Float_t fEnCalibration[6]; // Coeff. for energy calibration
31af5828 75 // --- PMTs HV values
76 Float_t fPMTHVVal[22]; // PMTs HV values
8af17dba 77 //
79563ba1 78 ClassDef(AliZDCCalibData,5) // ZDC Calibration data
8af17dba 79};
80
81#endif