]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCReco.cxx
Update of ZDC Shuttle preprocessor (II/II) -> test macro
[u/mrichter/AliRoot.git] / ZDC / AliZDCReco.cxx
CommitLineData
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
28ClassImp(AliZDCReco)
29
cc2abffd 30
31//_____________________________________________________________________________
32AliZDCReco::AliZDCReco() :
33
34 TObject(),
646f1679 35 fZN1Energy(0),
36 fZP1Energy(0),
37 fZN2Energy(0),
38 fZP2Energy(0),
39 //
40// fZN1EnTow(0x0),
41// fZP1EnTow(0x0),
42// fZN2EnTow(0x0),
43// fZP2EnTow(0x0),
44 //
f5d41205 45 fZEMsignal(0),
646f1679 46 //
cc2abffd 47 fNDetSpecNLeft(0),
48 fNDetSpecPLeft(0),
49 fNDetSpecNRight(0),
50 fNDetSpecPRight(0),
646f1679 51 fNTrueSpecNLeft(0),
52 fNTrueSpecPLeft(0),
53 fNTrueSpecLeft(0),
54 fNTrueSpecNRight(0),
55 fNTrueSpecPRight(0),
56 fNTrueSpecRight(0),
57 fNPartLeft(0),
58 fNPartRight(0),
cc2abffd 59 fImpPar(0)
60
61{
62 //
63 // Default constructor
64 //
65}
66
67
1450a7cd 68//_____________________________________________________________________________
646f1679 69AliZDCReco::AliZDCReco(Float_t ezn1, Float_t ezp1, Float_t ezn2, Float_t ezp2,
70 //
71 Float_t* ezn1tow, Float_t* ezp1tow,
72 Float_t* ezn2tow, Float_t* ezp2tow,
f5d41205 73 Float_t ezem,
646f1679 74 //
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,
79 Float_t b) :
cc2abffd 80
81 TObject(),
646f1679 82 fZN1Energy(ezn1),
83 fZP1Energy(ezp1),
84 fZN2Energy(ezn2),
85 fZP2Energy(ezp2),
86 //
f5d41205 87 fZEMsignal(ezem),
646f1679 88 //
cc2abffd 89 fNDetSpecNLeft(detspnLeft),
90 fNDetSpecPLeft(detsppLeft),
91 fNDetSpecNRight(detspnRight),
92 fNDetSpecPRight(detsppRight),
646f1679 93 fNTrueSpecNLeft(trspnLeft),
94 fNTrueSpecPLeft(trsppLeft),
95 fNTrueSpecLeft(trspLeft),
96 fNTrueSpecNRight(trspnRight),
97 fNTrueSpecPRight(trsppRight),
98 fNTrueSpecRight(trspRight),
99 fNPartLeft(partLeft),
100 fNPartRight(partRight),
cc2abffd 101 fImpPar(b)
102
1450a7cd 103{
93f80a6f 104 //
cc2abffd 105 // Constructor
93f80a6f 106 //
646f1679 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];
112 }
1450a7cd 113
114}
93f80a6f 115
cc2abffd 116//______________________________________________________________________________
117AliZDCReco::AliZDCReco(const AliZDCReco &oldreco) :
118
119 TObject()
120{
121 // Copy constructor
122
646f1679 123 fZN1Energy = oldreco.GetZN1Energy();
124 fZP1Energy = oldreco.GetZP1Energy();
125 fZN2Energy = oldreco.GetZN2Energy();
126 fZP2Energy = oldreco.GetZP2Energy();
127 //
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);
133 }
134 //
f5d41205 135 fZEMsignal = oldreco.GetZEMsignal();
646f1679 136 //
cc2abffd 137 fNDetSpecNLeft = oldreco.GetNDetSpecNLeft();
138 fNDetSpecPLeft = oldreco.GetNDetSpecPLeft();
139 fNDetSpecNRight = oldreco.GetNDetSpecNRight();
140 fNDetSpecPRight = oldreco.GetNDetSpecPRight();
646f1679 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();
cc2abffd 149 fImpPar = oldreco.GetImpPar();
150}
151
93f80a6f 152//______________________________________________________________________________
153void AliZDCReco::Print(Option_t *) const {
154 //
155 // Printing Reconstruction Parameters
156 //
f5d41205 157 printf(" \t --- Reconstruction -> EZN = %f TeV, EZP = %f TeV, EZEM = %f GeV \n "
646f1679 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"
162 " \t b = %f fm\n ",
f5d41205 163 fZN1Energy,fZP1Energy,fZEMsignal,
646f1679 164 fNDetSpecNLeft,fNDetSpecPLeft,fNTrueSpecNLeft,fNTrueSpecPLeft,fNPartLeft,
165 fNDetSpecNRight,fNDetSpecPRight,fNTrueSpecNRight,fNTrueSpecPRight,fNPartRight,
166 fImpPar);
93f80a6f 167}