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