]>
Commit | Line | Data |
---|---|---|
1450a7cd | 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 | ||
803d1ab0 | 16 | /* $Id$ */ |
1450a7cd | 17 | |
18 | //////////////////////////////////////////////// | |
19 | // RecPoints classes for set ZDC // | |
93f80a6f | 20 | // This class reconstructs the space // |
21 | // points from digits // | |
22 | // for the ZDC calorimeter // | |
1450a7cd | 23 | //////////////////////////////////////////////// |
24 | ||
25 | ||
26 | #include "AliZDCReco.h" | |
27 | ||
28 | ClassImp(AliZDCReco) | |
29 | ||
cc2abffd | 30 | |
31 | //_____________________________________________________________________________ | |
32 | AliZDCReco::AliZDCReco() : | |
33 | ||
34 | TObject(), | |
646f1679 | 35 | fZN1Energy(0), |
36 | fZP1Energy(0), | |
37 | fZN2Energy(0), | |
38 | fZP2Energy(0), | |
39 | // | |
a85132e7 | 40 | fZEM1signal(0), |
41 | fZEM2signal(0), | |
646f1679 | 42 | // |
cc2abffd | 43 | fNDetSpecNLeft(0), |
44 | fNDetSpecPLeft(0), | |
45 | fNDetSpecNRight(0), | |
46 | fNDetSpecPRight(0), | |
646f1679 | 47 | fNTrueSpecNLeft(0), |
48 | fNTrueSpecPLeft(0), | |
49 | fNTrueSpecLeft(0), | |
50 | fNTrueSpecNRight(0), | |
51 | fNTrueSpecPRight(0), | |
52 | fNTrueSpecRight(0), | |
53 | fNPartLeft(0), | |
54 | fNPartRight(0), | |
cc2abffd | 55 | fImpPar(0) |
56 | ||
57 | { | |
58 | // | |
59 | // Default constructor | |
60 | // | |
84d6255e | 61 | for(Int_t i=0; i<5; i++){ |
62 | fZN1EnTow[i] = 0; | |
63 | fZP1EnTow[i] = 0; | |
64 | fZN2EnTow[i] = 0; | |
65 | fZP2EnTow[i] = 0; | |
66 | fZN1SigLowRes[i] = 0; | |
67 | fZP1SigLowRes[i] = 0; | |
68 | fZN2SigLowRes[i] = 0; | |
69 | fZP2SigLowRes[i] = 0; | |
70 | ||
71 | } | |
cc2abffd | 72 | } |
73 | ||
74 | ||
1450a7cd | 75 | //_____________________________________________________________________________ |
646f1679 | 76 | AliZDCReco::AliZDCReco(Float_t ezn1, Float_t ezp1, Float_t ezn2, Float_t ezp2, |
77 | // | |
78 | Float_t* ezn1tow, Float_t* ezp1tow, | |
79 | Float_t* ezn2tow, Float_t* ezp2tow, | |
84d6255e | 80 | Float_t* ezn1siglr, Float_t* ezp1siglr, |
81 | Float_t* ezn2siglr, Float_t* ezp2siglr, | |
a85132e7 | 82 | Float_t ezem1, Float_t ezem2, |
646f1679 | 83 | // |
84 | Int_t detspnLeft, Int_t detsppLeft, Int_t detspnRight, | |
85 | Int_t detsppRight, Int_t trspnLeft, Int_t trsppLeft, | |
86 | Int_t trspLeft, Int_t partLeft, Int_t trspnRight, | |
87 | Int_t trsppRight, Int_t trspRight, Int_t partRight, | |
88 | Float_t b) : | |
cc2abffd | 89 | |
90 | TObject(), | |
646f1679 | 91 | fZN1Energy(ezn1), |
92 | fZP1Energy(ezp1), | |
93 | fZN2Energy(ezn2), | |
94 | fZP2Energy(ezp2), | |
95 | // | |
a85132e7 | 96 | fZEM1signal(ezem1), |
97 | fZEM2signal(ezem2), | |
646f1679 | 98 | // |
cc2abffd | 99 | fNDetSpecNLeft(detspnLeft), |
100 | fNDetSpecPLeft(detsppLeft), | |
101 | fNDetSpecNRight(detspnRight), | |
102 | fNDetSpecPRight(detsppRight), | |
646f1679 | 103 | fNTrueSpecNLeft(trspnLeft), |
104 | fNTrueSpecPLeft(trsppLeft), | |
105 | fNTrueSpecLeft(trspLeft), | |
106 | fNTrueSpecNRight(trspnRight), | |
107 | fNTrueSpecPRight(trsppRight), | |
108 | fNTrueSpecRight(trspRight), | |
109 | fNPartLeft(partLeft), | |
110 | fNPartRight(partRight), | |
cc2abffd | 111 | fImpPar(b) |
112 | ||
1450a7cd | 113 | { |
93f80a6f | 114 | // |
cc2abffd | 115 | // Constructor |
93f80a6f | 116 | // |
646f1679 | 117 | for(Int_t j=0; j<5; j++){ |
118 | fZN1EnTow[j] = ezn1tow[j]; | |
119 | fZP1EnTow[j] = ezp1tow[j]; | |
120 | fZN2EnTow[j] = ezn2tow[j]; | |
121 | fZP2EnTow[j] = ezp2tow[j]; | |
84d6255e | 122 | fZN1SigLowRes[j] = ezn1siglr[j]; |
123 | fZP1SigLowRes[j] = ezp1siglr[j]; | |
124 | fZN2SigLowRes[j] = ezn2siglr[j]; | |
125 | fZP2SigLowRes[j] = ezp2siglr[j]; | |
646f1679 | 126 | } |
1450a7cd | 127 | |
128 | } | |
93f80a6f | 129 | |
cc2abffd | 130 | //______________________________________________________________________________ |
131 | AliZDCReco::AliZDCReco(const AliZDCReco &oldreco) : | |
132 | ||
133 | TObject() | |
134 | { | |
135 | // Copy constructor | |
136 | ||
646f1679 | 137 | fZN1Energy = oldreco.GetZN1Energy(); |
138 | fZP1Energy = oldreco.GetZP1Energy(); | |
139 | fZN2Energy = oldreco.GetZN2Energy(); | |
140 | fZP2Energy = oldreco.GetZP2Energy(); | |
141 | // | |
142 | for(Int_t i=0; i<5; i++){ | |
143 | fZN1EnTow[i] = oldreco.GetZN1EnTow(i); | |
144 | fZP1EnTow[i] = oldreco.GetZP1EnTow(i); | |
145 | fZN2EnTow[i] = oldreco.GetZN2EnTow(i); | |
146 | fZP2EnTow[i] = oldreco.GetZP2EnTow(i); | |
84d6255e | 147 | fZN1SigLowRes[i] = oldreco.GetZN1SigLowRes(i); |
148 | fZP1SigLowRes[i] = oldreco.GetZP1SigLowRes(i); | |
149 | fZN2SigLowRes[i] = oldreco.GetZN2SigLowRes(i); | |
150 | fZP2SigLowRes[i] = oldreco.GetZP2SigLowRes(i); | |
646f1679 | 151 | } |
152 | // | |
a85132e7 | 153 | fZEM1signal = oldreco.GetZEM1signal(); |
154 | fZEM2signal = oldreco.GetZEM2signal(); | |
646f1679 | 155 | // |
cc2abffd | 156 | fNDetSpecNLeft = oldreco.GetNDetSpecNLeft(); |
157 | fNDetSpecPLeft = oldreco.GetNDetSpecPLeft(); | |
158 | fNDetSpecNRight = oldreco.GetNDetSpecNRight(); | |
159 | fNDetSpecPRight = oldreco.GetNDetSpecPRight(); | |
646f1679 | 160 | fNTrueSpecNLeft = oldreco.GetNTrueSpecNLeft(); |
161 | fNTrueSpecPLeft = oldreco.GetNTrueSpecPLeft(); | |
162 | fNTrueSpecLeft = oldreco.GetNTrueSpecLeft(); | |
163 | fNTrueSpecNRight = oldreco.GetNTrueSpecNRight(); | |
164 | fNTrueSpecPRight = oldreco.GetNTrueSpecPRight(); | |
165 | fNTrueSpecRight = oldreco.GetNTrueSpecRight(); | |
166 | fNPartLeft = oldreco.GetNPartLeft(); | |
167 | fNPartRight = oldreco.GetNPartRight(); | |
cc2abffd | 168 | fImpPar = oldreco.GetImpPar(); |
169 | } | |
170 | ||
93f80a6f | 171 | //______________________________________________________________________________ |
172 | void AliZDCReco::Print(Option_t *) const { | |
173 | // | |
174 | // Printing Reconstruction Parameters | |
175 | // | |
a85132e7 | 176 | printf(" \t --- Reconstruction -> EZN1 = %f TeV, EZP1 = %f TeV, EZEM1 = %f GeV , EZEM2 = %f GeV \n " |
177 | "EZN2 = %f TeV, EZP2 = %f TeV \n" | |
646f1679 | 178 | " \t NDetSpecNLeft = %d, NDetSpecPLeft = %d, NspecnLeft = %d," |
179 | " NspecpLeft = %d, NpartLeft = %d" | |
180 | " \t NDetSpecNRight = %d, NDetSpecPRight = %d, NspecnRight = %d," | |
181 | " NspecpRight = %d, NpartRight = %d" | |
182 | " \t b = %f fm\n ", | |
a85132e7 | 183 | fZN1Energy,fZP1Energy,fZEM1signal,fZEM2signal, fZN2Energy, fZP2Energy, |
646f1679 | 184 | fNDetSpecNLeft,fNDetSpecPLeft,fNTrueSpecNLeft,fNTrueSpecPLeft,fNPartLeft, |
185 | fNDetSpecNRight,fNDetSpecPRight,fNTrueSpecNRight,fNTrueSpecPRight,fNPartRight, | |
186 | fImpPar); | |
93f80a6f | 187 | } |