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 ///////////////////////////////////////////////////////////////////////////////
18 // class for ZDC ENERGY calibration //
19 // -> values for energy calibration //
21 ///////////////////////////////////////////////////////////////////////////////
23 #include "AliZDCMBCalib.h"
25 ClassImp(AliZDCMBCalib)
27 //________________________________________________________________
28 AliZDCMBCalib::AliZDCMBCalib():
37 //________________________________________________________________
38 AliZDCMBCalib::AliZDCMBCalib(const char* name):
45 TString namst = "Calib_";
47 SetName(namst.Data());
48 SetTitle(namst.Data());
52 //________________________________________________________________
53 AliZDCMBCalib::AliZDCMBCalib(const char* name,
54 TH2F *hzdcvszem, TH2F *hzdccvszem, TH2F *hzdcavszem):
56 fhZDCvsZEM(hzdcvszem),
57 fhZDCCvsZEM(hzdccvszem),
58 fhZDCAvsZEM(hzdcavszem)
61 TString namst = "Calib_";
63 SetName(namst.Data());
64 SetTitle(namst.Data());
68 //________________________________________________________________
69 AliZDCMBCalib::AliZDCMBCalib(const AliZDCMBCalib& calibda) :
76 SetName(calibda.GetName());
77 SetTitle(calibda.GetName());
79 fhZDCvsZEM = calibda.GethZDCvsZEM();
80 fhZDCCvsZEM = calibda.GethZDCCvsZEM();
81 fhZDCAvsZEM = calibda.GethZDCAvsZEM();
86 //________________________________________________________________
87 AliZDCMBCalib &AliZDCMBCalib::operator =(const AliZDCMBCalib& calibda)
89 // assignment operator
90 SetName(calibda.GetName());
91 SetTitle(calibda.GetName());
93 fhZDCvsZEM = calibda.GethZDCvsZEM();
94 fhZDCCvsZEM = calibda.GethZDCCvsZEM();
95 fhZDCAvsZEM = calibda.GethZDCAvsZEM();
100 //________________________________________________________________
101 AliZDCMBCalib::~AliZDCMBCalib()
105 //________________________________________________________________
106 void AliZDCMBCalib::Reset()