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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // class for ZDC calibration //
22 ///////////////////////////////////////////////////////////////////////////////
24 #include "AliZDCRecParam.h"
26 #include "AliCDBEntry.h"
28 ClassImp(AliZDCRecParam)
30 //________________________________________________________________
31 AliZDCRecParam::AliZDCRecParam():
47 //________________________________________________________________
48 AliZDCRecParam::AliZDCRecParam(const char* name):
62 TString namst = "Calib_";
64 SetName(namst.Data());
65 SetTitle(namst.Data());
69 //________________________________________________________________
70 AliZDCRecParam::AliZDCRecParam(const AliZDCRecParam& calibda) :
72 fZEMEndValue(calibda.GetZEMEndValue()),
73 fZEMCutFraction(calibda.GetZEMCutFraction()),
74 fDZEMSup(calibda.GetDZEMSup()),
75 fDZEMInf(calibda.GetDZEMInf()),
84 SetName(calibda.GetName());
85 SetTitle(calibda.GetName());
89 //________________________________________________________________
90 AliZDCRecParam &AliZDCRecParam::operator =(const AliZDCRecParam& calibda)
92 // assignment operator
93 SetName(calibda.GetName());
94 SetTitle(calibda.GetName());
96 fZEMEndValue = calibda.GetZEMEndValue();
97 fZEMCutFraction = calibda.GetZEMCutFraction();
102 //________________________________________________________________
103 AliZDCRecParam::~AliZDCRecParam()
107 //________________________________________________________________
108 void AliZDCRecParam::Reset()
114 //________________________________________________________________
115 void AliZDCRecParam::Print(Option_t *) const
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);
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);