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: AliACORDECalibData.cxx, */
19 #include "AliACORDECalibData.h"
21 ClassImp(AliACORDECalibData)
23 //________________________________________________________________
24 AliACORDECalibData::AliACORDECalibData()
29 //________________________________________________________________
30 void AliACORDECalibData::Reset()
35 //________________________________________________________________
36 AliACORDECalibData::AliACORDECalibData(const char* name)
38 TString namst = "Calib_";
40 SetName(namst.Data());
41 SetTitle(namst.Data());
45 //________________________________________________________________
46 AliACORDECalibData::AliACORDECalibData(const AliACORDECalibData& calibda) :
51 SetName(calibda.GetName());
52 SetTitle(calibda.GetName());
54 // there are 60 modules. Note that number of first module is 1 (one)
55 for(int t=0; t<60; t++)
57 fEfficiencies[t] =calibda.GetEfficiency(t+1);
58 fRates[t] = calibda.GetRate(t+1);
62 //________________________________________________________________
63 AliACORDECalibData &AliACORDECalibData::operator =(const AliACORDECalibData& calibda)
65 // assignment operator
67 SetName(calibda.GetName());
68 SetTitle(calibda.GetName());
69 // there are 60 modules. Note that number of first module is 1 (one)
70 for(int t=0; t<60; t++)
72 fEfficiencies[t] =calibda.GetEfficiency(t+1);
73 fRates[t] = calibda.GetRate(t+1);
78 //________________________________________________________________
79 AliACORDECalibData::~AliACORDECalibData()
86 //________________________________________________________________
87 void AliACORDECalibData::SetEfficiencies(Float_t* Eff)
89 // there are 60 modules. Note that number of first module is 1 (one)
90 if(Eff) for(int t=0; t<60; t++) fEfficiencies[t] = Eff[t];
91 else for(int t=0; t<60; t++) fEfficiencies[t] = 0.0;
94 void AliACORDECalibData::SetRates(Float_t* Rt)
96 if(Rt) for (int t=0;t<60; t++) fRates[t] = Rt[t];
97 else for (int t=0;t<60; t++) fRates[t] = 0.0;