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 ////////////////////////////////////////////////
19 // RecPoints classes for set ZDC //
20 // This class reconstructs the space //
21 // points from digits //
22 // for the ZDC calorimeter //
23 ////////////////////////////////////////////////
26 #include "AliZDCReco.h"
31 //_____________________________________________________________________________
32 AliZDCReco::AliZDCReco() :
63 // Default constructor
68 //_____________________________________________________________________________
69 AliZDCReco::AliZDCReco(Float_t ezn1, Float_t ezp1, Float_t ezn2, Float_t ezp2,
71 Float_t* ezn1tow, Float_t* ezp1tow,
72 Float_t* ezn2tow, Float_t* ezp2tow,
75 Int_t detspnLeft, Int_t detsppLeft, Int_t detspnRight,
76 Int_t detsppRight, Int_t trspnLeft, Int_t trsppLeft,
77 Int_t trspLeft, Int_t partLeft, Int_t trspnRight,
78 Int_t trsppRight, Int_t trspRight, Int_t partRight,
89 fNDetSpecNLeft(detspnLeft),
90 fNDetSpecPLeft(detsppLeft),
91 fNDetSpecNRight(detspnRight),
92 fNDetSpecPRight(detsppRight),
93 fNTrueSpecNLeft(trspnLeft),
94 fNTrueSpecPLeft(trsppLeft),
95 fNTrueSpecLeft(trspLeft),
96 fNTrueSpecNRight(trspnRight),
97 fNTrueSpecPRight(trsppRight),
98 fNTrueSpecRight(trspRight),
100 fNPartRight(partRight),
107 for(Int_t j=0; j<5; j++){
108 fZN1EnTow[j] = ezn1tow[j];
109 fZP1EnTow[j] = ezp1tow[j];
110 fZN2EnTow[j] = ezn2tow[j];
111 fZP2EnTow[j] = ezp2tow[j];
116 //______________________________________________________________________________
117 AliZDCReco::AliZDCReco(const AliZDCReco &oldreco) :
123 fZN1Energy = oldreco.GetZN1Energy();
124 fZP1Energy = oldreco.GetZP1Energy();
125 fZN2Energy = oldreco.GetZN2Energy();
126 fZP2Energy = oldreco.GetZP2Energy();
128 for(Int_t i=0; i<5; i++){
129 fZN1EnTow[i] = oldreco.GetZN1EnTow(i);
130 fZP1EnTow[i] = oldreco.GetZP1EnTow(i);
131 fZN2EnTow[i] = oldreco.GetZN2EnTow(i);
132 fZP2EnTow[i] = oldreco.GetZP2EnTow(i);
135 fZEMsignal = oldreco.GetZEMsignal();
137 fNDetSpecNLeft = oldreco.GetNDetSpecNLeft();
138 fNDetSpecPLeft = oldreco.GetNDetSpecPLeft();
139 fNDetSpecNRight = oldreco.GetNDetSpecNRight();
140 fNDetSpecPRight = oldreco.GetNDetSpecPRight();
141 fNTrueSpecNLeft = oldreco.GetNTrueSpecNLeft();
142 fNTrueSpecPLeft = oldreco.GetNTrueSpecPLeft();
143 fNTrueSpecLeft = oldreco.GetNTrueSpecLeft();
144 fNTrueSpecNRight = oldreco.GetNTrueSpecNRight();
145 fNTrueSpecPRight = oldreco.GetNTrueSpecPRight();
146 fNTrueSpecRight = oldreco.GetNTrueSpecRight();
147 fNPartLeft = oldreco.GetNPartLeft();
148 fNPartRight = oldreco.GetNPartRight();
149 fImpPar = oldreco.GetImpPar();
152 //______________________________________________________________________________
153 void AliZDCReco::Print(Option_t *) const {
155 // Printing Reconstruction Parameters
157 printf(" \t --- Reconstruction -> EZN = %f TeV, EZP = %f TeV, EZEM = %f GeV \n "
158 " \t NDetSpecNLeft = %d, NDetSpecPLeft = %d, NspecnLeft = %d,"
159 " NspecpLeft = %d, NpartLeft = %d"
160 " \t NDetSpecNRight = %d, NDetSpecPRight = %d, NspecnRight = %d,"
161 " NspecpRight = %d, NpartRight = %d"
163 fZN1Energy,fZP1Energy,fZEMsignal,
164 fNDetSpecNLeft,fNDetSpecPLeft,fNTrueSpecNLeft,fNTrueSpecPLeft,fNPartLeft,
165 fNDetSpecNRight,fNDetSpecPRight,fNTrueSpecNRight,fNTrueSpecPRight,fNPartRight,