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() :
54 // Default constructor
59 //_____________________________________________________________________________
60 AliZDCReco::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,
63 Int_t trspn, Int_t trspp, Int_t trsp, Int_t part,
74 fNDetSpecNLeft(detspnLeft),
75 fNDetSpecPLeft(detsppLeft),
76 fNDetSpecNRight(detspnRight),
77 fNDetSpecPRight(detsppRight),
91 //______________________________________________________________________________
92 AliZDCReco::AliZDCReco(const AliZDCReco &oldreco) :
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();
116 //______________________________________________________________________________
117 void AliZDCReco::Print(Option_t *) const {
119 // Printing Reconstruction Parameters
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 ",
124 fZN1energy,fZP1energy,fZDC1energy,fZEMenergy,fNDetSpecNLeft,
125 fNDetSpecPLeft,fNTrueSpecN,fNTrueSpecP,fNPart,fImpPar);