]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCPedestals.h
Updating Shuttle preprocessor
[u/mrichter/AliRoot.git] / ZDC / AliZDCPedestals.h
CommitLineData
6024ec85 1#ifndef ALIZDCPEDESTALS_H
2#define ALIZDCPEDESTALS_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 -> PEDESTALS //
9////////////////////////////////////////////////
10
11#include "TNamed.h"
12#include "TH1.h"
13#include "AliCDBEntry.h"
14
15class AliZDC;
16
17class AliZDCPedestals: public TNamed {
18
19 public:
20 AliZDCPedestals();
21 AliZDCPedestals(const char* name);
22 AliZDCPedestals(const AliZDCPedestals &calibda);
23 AliZDCPedestals& operator= (const AliZDCPedestals &calibda);
24 virtual ~AliZDCPedestals();
25 void Reset();
26 virtual void Print(Option_t *) const;
27 //
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
40 void SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;}
41 void SetMeanPed(Float_t* MeanPed);
42 void SetMeanPedWidth(Int_t channel, Float_t val) {fMeanPedWidth[channel]=val;}
43 void SetMeanPedWidth(Float_t* MeanPedWidth);
44 void SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;}
45 void SetOOTPed(Float_t* OOTPed);
46 void SetOOTPedWidth(Int_t channel, Float_t val) {fOOTPedWidth[channel]=val;}
47 void SetOOTPedWidth(Float_t* OOTPedWidth);
48 void SetPedCorrCoeff(Int_t channel, Float_t valCoeff0, Float_t valCoeff1)
49 {fPedCorrCoeff[0][channel]=valCoeff0; fPedCorrCoeff[1][channel]=valCoeff1;}
50 void SetPedCorrCoeff(Float_t* PedCorrCoeff);
51 void SetPedCorrCoeff(Float_t* PedCorrCoeff0, Float_t* PedCorrCoeff1);
52
53 protected:
54 // --- Pedestals
55 Float_t fMeanPedestal[48]; // Mean pedestal values
56 Float_t fMeanPedWidth[48]; // Mean pedestal widths
57 Float_t fOOTPedestal[48]; // "Out of Time" pedestal values
58 Float_t fOOTPedWidth[48]; // "Out of Time" pedestal widths
59 Float_t fPedCorrCoeff[2][48]; // Fit of correlation in-time vs. out-of-time
60 //
d56b2e77 61 ClassDef(AliZDCPedestals,3) // ZDC pedestal calibration data
6024ec85 62};
63
64#endif