Little changes needed for running with new AliESDEvent
[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(),
35 fZN1energy(0),
36 fZP1energy(0),
37 fZDC1energy(0),
38 fZN2energy(0),
39 fZP2energy(0),
40 fZDC2energy(0),
41 fZEMenergy(0),
42 fNDetSpecNLeft(0),
43 fNDetSpecPLeft(0),
44 fNDetSpecNRight(0),
45 fNDetSpecPRight(0),
46 fNTrueSpecN(0),
47 fNTrueSpecP(0),
48 fNTrueSpec(0),
49 fNPart(0),
50 fImpPar(0)
51
52{
53 //
54 // Default constructor
55 //
56}
57
58
1450a7cd 59//_____________________________________________________________________________
980685f2 60AliZDCReco::AliZDCReco(Float_t ezn1, Float_t ezp1, Float_t ezdc1, Float_t ezem,
61 Float_t ezn2, Float_t ezp2, Float_t ezdc2,
62 Int_t detspnLeft, Int_t detsppLeft, Int_t detspnRight, Int_t detsppRight,
cc2abffd 63 Int_t trspn, Int_t trspp, Int_t trsp, Int_t part,
64 Float_t b) :
65
66 TObject(),
67 fZN1energy(ezn1),
68 fZP1energy(ezp1),
69 fZDC1energy(ezdc1),
70 fZN2energy(ezn2),
71 fZP2energy(ezp2),
72 fZDC2energy(ezdc2),
73 fZEMenergy(ezem),
74 fNDetSpecNLeft(detspnLeft),
75 fNDetSpecPLeft(detsppLeft),
76 fNDetSpecNRight(detspnRight),
77 fNDetSpecPRight(detsppRight),
78 fNTrueSpecN(trspn),
79 fNTrueSpecP(trspp),
80 fNTrueSpec(trsp),
81 fNPart(part),
82 fImpPar(b)
83
1450a7cd 84{
93f80a6f 85 //
cc2abffd 86 // Constructor
93f80a6f 87 //
1450a7cd 88
89}
93f80a6f 90
91//______________________________________________________________________________
cc2abffd 92AliZDCReco::AliZDCReco(const AliZDCReco &oldreco) :
93
94 TObject()
95{
96 // Copy constructor
97
98 fZN1energy = oldreco.GetZN1energy();
99 fZP1energy = oldreco.GetZP1energy();
100 fZDC1energy = oldreco.GetZDC1energy();
101 fZN2energy = oldreco.GetZN2energy();
102 fZP2energy = oldreco.GetZP2energy();
103 fZDC2energy = oldreco.GetZDC2energy();
104 fZEMenergy = oldreco.GetZEMenergy();
105 fNDetSpecNLeft = oldreco.GetNDetSpecNLeft();
106 fNDetSpecPLeft = oldreco.GetNDetSpecPLeft();
107 fNDetSpecNRight = oldreco.GetNDetSpecNRight();
108 fNDetSpecPRight = oldreco.GetNDetSpecPRight();
109 fNTrueSpecN = oldreco.GetNTrueSpecN();
110 fNTrueSpecP = oldreco.GetNTrueSpecP();
111 fNTrueSpec = oldreco.GetNTrueSpec();
112 fNPart = oldreco.GetNPart();
113 fImpPar = oldreco.GetImpPar();
114}
115
116//______________________________________________________________________________
93f80a6f 117void AliZDCReco::Print(Option_t *) const {
118 //
119 // Printing Reconstruction Parameters
120 //
121 printf(" --- Reconstruction -> EZN = %f TeV, EZP = %f TeV, EZDC = %f TeV,"
122 " EZEM = %f GeV \n NDetSpecN = %d, NDetSpecP = %d, Nspecn = %d,"
123 " Nspecp = %d, Npart = %d, b = %f fm.\n ",
980685f2 124 fZN1energy,fZP1energy,fZDC1energy,fZEMenergy,fNDetSpecNLeft,
125 fNDetSpecPLeft,fNTrueSpecN,fNTrueSpecP,fNPart,fImpPar);
93f80a6f 126}