1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 /* $Id: AliVZEROCalibData.cxx, */
18 /////////////////////////////////////////////////////////////////////////////
20 // class for VZERO calibration //
22 /////////////////////////////////////////////////////////////////////////////
24 #include "AliVZEROCalibData.h"
26 ClassImp(AliVZEROCalibData)
28 //________________________________________________________________
29 AliVZEROCalibData::AliVZEROCalibData()
34 //________________________________________________________________
35 AliVZEROCalibData::AliVZEROCalibData(const char* name)
37 TString namst = "Calib_";
39 SetName(namst.Data());
40 SetTitle(namst.Data());
44 //________________________________________________________________
45 AliVZEROCalibData::AliVZEROCalibData(const AliVZEROCalibData& calibda) :
50 SetName(calibda.GetName());
51 SetTitle(calibda.GetName());
53 for(int t=0; t<80; t++) {
54 fPedestal[t] = calibda.GetPedestal(t);
55 fGain[t] = calibda.GetGain(t); }
59 //________________________________________________________________
60 AliVZEROCalibData &AliVZEROCalibData::operator =(const AliVZEROCalibData& calibda)
62 // assignment operator
64 SetName(calibda.GetName());
65 SetTitle(calibda.GetName());
67 for(int t=0; t<80; t++) {
68 fPedestal[t] = calibda.GetPedestal(t);
69 fGain[t] = calibda.GetGain(t); }
75 //________________________________________________________________
76 AliVZEROCalibData::~AliVZEROCalibData()
83 //________________________________________________________________
84 void AliVZEROCalibData::SetPedestal(Float_t* Pedestal)
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;
90 //________________________________________________________________
91 void AliVZEROCalibData::SetGain(Float_t* Gain)
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;