]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCRecParam.cxx
- added libAliHLTRCU to default libraries
[u/mrichter/AliRoot.git] / ZDC / AliZDCRecParam.cxx
CommitLineData
6024ec85 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/* $Id$ */
17
18///////////////////////////////////////////////////////////////////////////////
19// //
20// class for ZDC calibration //
21// //
22///////////////////////////////////////////////////////////////////////////////
23
24#include "AliZDCRecParam.h"
ac2f6f07 25#include "TH1.h"
26#include "AliCDBEntry.h"
6024ec85 27
28ClassImp(AliZDCRecParam)
29
30//________________________________________________________________
31AliZDCRecParam::AliZDCRecParam():
a718c993 32TNamed(),
33fZEMEndValue(0),
34fZEMCutFraction(0),
35fDZEMSup(0),
36fDZEMInf(0),
37fEZN1MaxValue(0),
38fEZP1MaxValue(0),
39fEZDC1MaxValue(0),
40fEZN2MaxValue(0),
41fEZP2MaxValue(0),
42fEZDC2MaxValue(0)
6024ec85 43{
44 Reset();
45}
46
47//________________________________________________________________
48AliZDCRecParam::AliZDCRecParam(const char* name):
49TNamed(),
50fZEMEndValue(0),
51fZEMCutFraction(0),
52fDZEMSup(0),
53fDZEMInf(0),
54fEZN1MaxValue(0),
55fEZP1MaxValue(0),
56fEZDC1MaxValue(0),
57fEZN2MaxValue(0),
58fEZP2MaxValue(0),
59fEZDC2MaxValue(0)
60{
61 // Constructor
62 TString namst = "Calib_";
63 namst += name;
64 SetName(namst.Data());
65 SetTitle(namst.Data());
66 Reset();
67}
68
69//________________________________________________________________
70AliZDCRecParam::AliZDCRecParam(const AliZDCRecParam& calibda) :
a718c993 71TNamed(calibda),
72fZEMEndValue(calibda.GetZEMEndValue()),
73fZEMCutFraction(calibda.GetZEMCutFraction()),
74fDZEMSup(calibda.GetDZEMSup()),
75fDZEMInf(calibda.GetDZEMInf()),
76fEZN1MaxValue(0),
77fEZP1MaxValue(0),
78fEZDC1MaxValue(0),
79fEZN2MaxValue(0),
80fEZP2MaxValue(0),
81fEZDC2MaxValue(0)
6024ec85 82{
83 // Copy constructor
84 SetName(calibda.GetName());
85 SetTitle(calibda.GetName());
86 Reset();
6024ec85 87}
88
89//________________________________________________________________
90AliZDCRecParam &AliZDCRecParam::operator =(const AliZDCRecParam& calibda)
91{
92// assignment operator
93 SetName(calibda.GetName());
94 SetTitle(calibda.GetName());
95 Reset();
6024ec85 96 fZEMEndValue = calibda.GetZEMEndValue();
97 fZEMCutFraction = calibda.GetZEMCutFraction();
98
99 return *this;
100}
101
102//________________________________________________________________
103AliZDCRecParam::~AliZDCRecParam()
104{
105}
106
107//________________________________________________________________
108void AliZDCRecParam::Reset()
109{
110 // Reset
6024ec85 111}
112
113
114//________________________________________________________________
115void AliZDCRecParam::Print(Option_t *) const
116{
117 // Printing calibration object
118 printf("\n\n ####### Parameters from EZDC vs. ZEM correlation ####### \n");
119 printf(" ZEMEndPoint = %1.2f, ZEMCutFraction = %1.2f \n"
120 " DZEMInf = %1.2f, DZEMSup = %1.2f\n",
121 fZEMEndValue, fZEMCutFraction, fDZEMInf, fDZEMSup);
122
123 printf("\n\n ####### Parameters from EZDC vs. Nspec correlation ####### \n");
124 printf(" EZN1MaxValue = %1.2f, EZP1MaxValue = %1.2f, EZDC1MaxValue = %1.2f \n"
125 " EZN2MaxValue = %1.2f, EZP2MaxValue = %1.2f, EZDC2MaxValue = %1.2f \n\n",
126 fEZN1MaxValue, fEZP1MaxValue, fEZDC1MaxValue,
127 fEZN2MaxValue, fEZP2MaxValue, fEZDC2MaxValue);
128
129}
130