Line data Source code
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 12 : ClassImp(AliZDCMBCalib)
26 :
27 : //________________________________________________________________
28 : AliZDCMBCalib::AliZDCMBCalib():
29 2 : TNamed(),
30 2 : fhZDCvsZEM(0x0),
31 2 : fhZDCCvsZEM(0x0),
32 2 : fhZDCAvsZEM(0x0)
33 10 : {
34 2 : Reset();
35 4 : }
36 :
37 : //________________________________________________________________
38 : AliZDCMBCalib::AliZDCMBCalib(const char* name):
39 0 : TNamed(),
40 0 : fhZDCvsZEM(0x0),
41 0 : fhZDCCvsZEM(0x0),
42 0 : fhZDCAvsZEM(0x0)
43 0 : {
44 : // Constructor
45 0 : TString namst = "Calib_";
46 0 : namst += name;
47 0 : SetName(namst.Data());
48 0 : SetTitle(namst.Data());
49 0 : Reset();
50 0 : }
51 :
52 : //________________________________________________________________
53 : AliZDCMBCalib::AliZDCMBCalib(const char* name,
54 : TH2F *hzdcvszem, TH2F *hzdccvszem, TH2F *hzdcavszem):
55 0 : TNamed(),
56 0 : fhZDCvsZEM(hzdcvszem),
57 0 : fhZDCCvsZEM(hzdccvszem),
58 0 : fhZDCAvsZEM(hzdcavszem)
59 0 : {
60 : // Constructor
61 0 : TString namst = "Calib_";
62 0 : namst += name;
63 0 : SetName(namst.Data());
64 0 : SetTitle(namst.Data());
65 0 : Reset();
66 0 : }
67 :
68 : //________________________________________________________________
69 : AliZDCMBCalib::AliZDCMBCalib(const AliZDCMBCalib& calibda) :
70 0 : TNamed(calibda),
71 0 : fhZDCvsZEM(0),
72 0 : fhZDCCvsZEM(0),
73 0 : fhZDCAvsZEM(0)
74 0 : {
75 : // Copy constructor
76 0 : SetName(calibda.GetName());
77 0 : SetTitle(calibda.GetName());
78 0 : Reset();
79 0 : fhZDCvsZEM = calibda.GethZDCvsZEM();
80 0 : fhZDCCvsZEM = calibda.GethZDCCvsZEM();
81 0 : fhZDCAvsZEM = calibda.GethZDCAvsZEM();
82 :
83 :
84 0 : }
85 :
86 : //________________________________________________________________
87 : AliZDCMBCalib &AliZDCMBCalib::operator =(const AliZDCMBCalib& calibda)
88 : {
89 : // assignment operator
90 0 : if(&calibda == this) return *this;
91 :
92 0 : SetName(calibda.GetName());
93 0 : SetTitle(calibda.GetName());
94 0 : Reset();
95 0 : fhZDCvsZEM = calibda.GethZDCvsZEM();
96 0 : fhZDCCvsZEM = calibda.GethZDCCvsZEM();
97 0 : fhZDCAvsZEM = calibda.GethZDCAvsZEM();
98 :
99 0 : return *this;
100 0 : }
101 :
102 : //________________________________________________________________
103 : AliZDCMBCalib::~AliZDCMBCalib()
104 0 : {
105 0 : }
106 :
107 : //________________________________________________________________
108 : void AliZDCMBCalib::Reset()
109 : {
110 : // Reset
111 :
112 4 : }
113 :
|