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