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)
26 //________________________________________________________________
27 AliACORDECalibData::AliACORDECalibData():
36 //________________________________________________________________
37 void AliACORDECalibData::Reset()
42 //________________________________________________________________
43 AliACORDECalibData::AliACORDECalibData(const char* name) :
50 TString namst = "Calib_";
52 SetName(namst.Data());
53 SetTitle(namst.Data());
57 //________________________________________________________________
58 AliACORDECalibData::AliACORDECalibData(const AliACORDECalibData& calibda) :
67 SetName(calibda.GetName());
68 SetTitle(calibda.GetName());
70 // there are 60 modules. Note that number of first module is 1 (one)
71 for(int t=0; t<60; t++)
73 fEfficiencies[t] =calibda.GetEfficiency(t+1);
74 fRates[t] = calibda.GetRate(t+1);
77 //_______________________________________________________________
78 void AliACORDECalibData::Draw(Option_t *)
87 TString canvasHistoName="Histos";
88 ch=new TCanvas(canvasHistoName,canvasHistoName,20,20,600,600);
101 //________________________________________________________________
102 AliACORDECalibData &AliACORDECalibData::operator =(const AliACORDECalibData& calibda)
104 // assignment operator
106 SetName(calibda.GetName());
107 SetTitle(calibda.GetName());
108 // there are 60 modules. Note that number of first module is 1 (one)
109 for(int t=0; t<60; t++)
111 fEfficiencies[t] =calibda.GetEfficiency(t+1);
112 fRates[t] = calibda.GetRate(t+1);
116 //_______________________________________________________________
117 /*void AliACORDECalibData::AddHisto(TH1D *fHist)
122 = (TH1D*)fHist->Clone("hnew");
130 //________________________________________________________________
131 AliACORDECalibData::~AliACORDECalibData()
138 //________________________________________________________________
139 void AliACORDECalibData::SetEfficiencies(Float_t* Eff)
141 // there are 60 modules. Note that number of first module is 1 (one)
142 if(Eff) for(int t=0; t<60; t++) fEfficiencies[t] = Eff[t];
143 else for(int t=0; t<60; t++) fEfficiencies[t] = 0.0;
146 void AliACORDECalibData::SetRates(Float_t* Rt)
148 if(Rt) for (int t=0;t<60; t++) fRates[t] = Rt[t];
149 else for (int t=0;t<60; t++) fRates[t] = 0.0;