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"
23 ClassImp(AliACORDECalibData)
32 //________________________________________________________________
33 AliACORDECalibData::AliACORDECalibData():
42 //________________________________________________________________
43 void AliACORDECalibData::Reset()
48 //________________________________________________________________
49 AliACORDECalibData::AliACORDECalibData(const char* name)
51 TString namst = "Calib_";
53 SetName(namst.Data());
54 SetTitle(namst.Data());
58 //________________________________________________________________
59 AliACORDECalibData::AliACORDECalibData(const AliACORDECalibData& calibda) :
64 SetName(calibda.GetName());
65 SetTitle(calibda.GetName());
67 // there are 60 modules. Note that number of first module is 1 (one)
68 for(int t=0; t<60; t++)
70 fEfficiencies[t] =calibda.GetEfficiency(t+1);
71 fRates[t] = calibda.GetRate(t+1);
74 //_______________________________________________________________
75 void AliACORDECalibData::Draw()
84 TString canvasHistoName="Histos";
85 ch=new TCanvas(canvasHistoName,canvasHistoName,20,20,600,600);
98 //________________________________________________________________
99 AliACORDECalibData &AliACORDECalibData::operator =(const AliACORDECalibData& calibda)
101 // assignment operator
103 SetName(calibda.GetName());
104 SetTitle(calibda.GetName());
105 // there are 60 modules. Note that number of first module is 1 (one)
106 for(int t=0; t<60; t++)
108 fEfficiencies[t] =calibda.GetEfficiency(t+1);
109 fRates[t] = calibda.GetRate(t+1);
113 //_______________________________________________________________
114 /*void AliACORDECalibData::AddHisto(TH1D *fHist)
119 = (TH1D*)fHist->Clone("hnew");
127 //________________________________________________________________
128 AliACORDECalibData::~AliACORDECalibData()
135 //________________________________________________________________
136 void AliACORDECalibData::SetEfficiencies(Float_t* Eff)
138 // there are 60 modules. Note that number of first module is 1 (one)
139 if(Eff) for(int t=0; t<60; t++) fEfficiencies[t] = Eff[t];
140 else for(int t=0; t<60; t++) fEfficiencies[t] = 0.0;
143 void AliACORDECalibData::SetRates(Float_t* Rt)
145 if(Rt) for (int t=0;t<60; t++) fRates[t] = Rt[t];
146 else for (int t=0;t<60; t++) fRates[t] = 0.0;