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 **************************************************************************/
17 //-------------------------------------------------------------------------
18 // Implementation of Class AliESDZDC
19 // This is a class that summarizes the ZDC data
21 // Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
22 //-------------------------------------------------------------------------
26 #include "AliESDZDC.h"
30 //______________________________________________________________________________
31 AliESDZDC::AliESDZDC() :
40 for(int i = 0;i<4;i++) fZN1TowerEnergy[i] = fZN2TowerEnergy[i] = 0.;
43 AliESDZDC::AliESDZDC(const AliESDZDC& zdc) :
45 fZDCN1Energy(zdc.fZDCN1Energy),
46 fZDCP1Energy(zdc.fZDCP1Energy),
47 fZDCN2Energy(zdc.fZDCN2Energy),
48 fZDCP2Energy(zdc.fZDCP2Energy),
49 fZDCEMEnergy(zdc.fZDCEMEnergy),
50 fZDCParticipants(zdc.fZDCParticipants)
55 AliESDZDC& AliESDZDC::operator=(const AliESDZDC&zdc)
59 TObject::operator=(zdc);
60 fZDCN1Energy = zdc.fZDCN1Energy;
61 fZDCP1Energy = zdc.fZDCP1Energy;
62 fZDCN2Energy = zdc.fZDCN2Energy;
63 fZDCP2Energy = zdc.fZDCP2Energy;
64 fZDCEMEnergy = zdc.fZDCEMEnergy;
65 fZDCParticipants = zdc.fZDCParticipants;
66 for(Int_t i=0; i<4; i++){
67 fZN1TowerEnergy[i] = zdc.fZN1TowerEnergy[i];
68 fZN2TowerEnergy[i] = zdc.fZN2TowerEnergy[i];
75 //______________________________________________________________________________
76 void AliESDZDC::Reset()
78 // reset all data members
85 for(int i=0; i<4; i++) fZN1TowerEnergy[i] = fZN2TowerEnergy[i] = 0.;
89 //______________________________________________________________________________
90 void AliESDZDC::Print(const Option_t *) const