Number of pads along z is corrected
[u/mrichter/AliRoot.git] / VZERO / AliVZEROCalibData.cxx
CommitLineData
3191f471 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id: AliVZEROCalibData.cxx, */
17
18/////////////////////////////////////////////////////////////////////////////
19// //
20// class for VZERO calibration //
21// //
22/////////////////////////////////////////////////////////////////////////////
23
24#include "AliVZEROCalibData.h"
25
26ClassImp(AliVZEROCalibData)
27
28//________________________________________________________________
29AliVZEROCalibData::AliVZEROCalibData()
30{
31
32}
33
34//________________________________________________________________
35AliVZEROCalibData::AliVZEROCalibData(const char* name)
36{
37 TString namst = "Calib_";
38 namst += name;
39 SetName(namst.Data());
40 SetTitle(namst.Data());
41
42}
43
44//________________________________________________________________
45AliVZEROCalibData::AliVZEROCalibData(const AliVZEROCalibData& calibda) :
46 TNamed(calibda)
47{
48// copy constructor
49
50 SetName(calibda.GetName());
51 SetTitle(calibda.GetName());
52
53 for(int t=0; t<80; t++) {
54 fPedestal[t] = calibda.GetPedestal(t);
55 fGain[t] = calibda.GetGain(t); }
56
57}
58
59//________________________________________________________________
60AliVZEROCalibData &AliVZEROCalibData::operator =(const AliVZEROCalibData& calibda)
61{
62// assignment operator
63
64 SetName(calibda.GetName());
65 SetTitle(calibda.GetName());
66
67 for(int t=0; t<80; t++) {
68 fPedestal[t] = calibda.GetPedestal(t);
69 fGain[t] = calibda.GetGain(t); }
70
71 return *this;
72
73}
74
75//________________________________________________________________
76AliVZEROCalibData::~AliVZEROCalibData()
77{
78
79}
80
81
82
83//________________________________________________________________
84void AliVZEROCalibData::SetPedestal(Float_t* Pedestal)
85{
86 if(Pedestal) for(int t=0; t<80; t++) fPedestal[t] = Pedestal[t];
87 else for(int t=0; t<80; t++) fPedestal[t] = 0.0;
88}
89
90//________________________________________________________________
91void AliVZEROCalibData::SetGain(Float_t* Gain)
92{
93 if(Gain) for(int t=0; t<80; t++) fGain[t] = Gain[t];
94 else for(int t=0; t<80; t++) fGain[t] = 0.0;
95}
96