]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDCMBCalib.cxx
Fix for bug #90825
[u/mrichter/AliRoot.git] / ZDC / AliZDCMBCalib.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 ///////////////////////////////////////////////////////////////////////////////
17 //                                                                           //
18 //              class for ZDC ENERGY calibration                             //
19 //              -> values for energy calibration                             //
20 //                                                                           //
21 ///////////////////////////////////////////////////////////////////////////////
22
23 #include "AliZDCMBCalib.h"
24
25 ClassImp(AliZDCMBCalib)
26
27 //________________________________________________________________
28 AliZDCMBCalib::AliZDCMBCalib():
29   TNamed(),
30   fhZDCvsZEM(0x0),
31   fhZDCCvsZEM(0x0),
32   fhZDCAvsZEM(0x0)
33 {
34   Reset();
35 }
36
37 //________________________________________________________________
38 AliZDCMBCalib::AliZDCMBCalib(const char* name):
39   TNamed(),
40   fhZDCvsZEM(0x0),
41   fhZDCCvsZEM(0x0),
42   fhZDCAvsZEM(0x0)
43 {
44   // Constructor
45   TString namst = "Calib_";
46   namst += name;
47   SetName(namst.Data());
48   SetTitle(namst.Data());
49   Reset();
50 }
51
52 //________________________________________________________________
53 AliZDCMBCalib::AliZDCMBCalib(const char* name, 
54               TH2F *hzdcvszem, TH2F *hzdccvszem, TH2F *hzdcavszem):
55   TNamed(),
56   fhZDCvsZEM(hzdcvszem),
57   fhZDCCvsZEM(hzdccvszem),
58   fhZDCAvsZEM(hzdcavszem)
59 {
60   // Constructor
61   TString namst = "Calib_";
62   namst += name;
63   SetName(namst.Data());
64   SetTitle(namst.Data());
65   Reset();
66 }
67   
68 //________________________________________________________________
69 AliZDCMBCalib::AliZDCMBCalib(const AliZDCMBCalib& calibda) :
70   TNamed(calibda),
71   fhZDCvsZEM(0), 
72   fhZDCCvsZEM(0),
73   fhZDCAvsZEM(0)
74 {
75   // Copy constructor
76   SetName(calibda.GetName());
77   SetTitle(calibda.GetName());
78   Reset();
79   fhZDCvsZEM = calibda.GethZDCvsZEM(); 
80   fhZDCCvsZEM = calibda.GethZDCCvsZEM();
81   fhZDCAvsZEM = calibda.GethZDCAvsZEM();
82
83
84 }
85
86 //________________________________________________________________
87 AliZDCMBCalib &AliZDCMBCalib::operator =(const AliZDCMBCalib& calibda)
88 {
89 // assignment operator
90   if(&calibda == this) return *this;
91   
92   SetName(calibda.GetName());
93   SetTitle(calibda.GetName());
94   Reset();
95   fhZDCvsZEM = calibda.GethZDCvsZEM(); 
96   fhZDCCvsZEM = calibda.GethZDCCvsZEM();
97   fhZDCAvsZEM = calibda.GethZDCAvsZEM();
98   
99   return *this;
100 }
101
102 //________________________________________________________________
103 AliZDCMBCalib::~AliZDCMBCalib()
104 {
105 }
106
107 //________________________________________________________________
108 void AliZDCMBCalib::Reset()
109 {
110   // Reset
111   
112 }                                                                                       
113