]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDZDC.cxx
dc431b9ed5f1a676cf25efaa58d1e307e23291a6
[u/mrichter/AliRoot.git] / STEER / AliESDZDC.cxx
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
16
17 //-------------------------------------------------------------------------
18 //                      Implementation of   Class AliESDZDC
19 //   This is a class that summarizes the ZDC data
20 //   for the ESD   
21 //   Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch 
22 //-------------------------------------------------------------------------
23
24
25
26 #include "AliESDZDC.h"
27
28 ClassImp(AliESDZDC)
29
30 //______________________________________________________________________________
31 AliESDZDC::AliESDZDC() :
32   TObject(),
33   fZDCN1Energy(0),
34   fZDCP1Energy(0),
35   fZDCN2Energy(0),
36   fZDCP2Energy(0),
37   fZDCEMEnergy(0),
38   fZDCParticipants(0)
39 {
40   for(int i = 0;i<4;i++) fZN1TowerEnergy[i] = fZN2TowerEnergy[i] = 0.;
41 }
42
43 AliESDZDC::AliESDZDC(const AliESDZDC& zdc) :
44   TObject(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)
51 {
52   // copy constructor
53 }
54
55 AliESDZDC& AliESDZDC::operator=(const AliESDZDC&zdc)
56 {
57   // assigment operator
58   if(this!=&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];
69     }
70   } 
71   return *this;
72 }
73
74
75 //______________________________________________________________________________
76 void AliESDZDC::Reset()
77 {
78   // reset all data members
79   fZDCN1Energy=0;
80   fZDCP1Energy=0;
81   fZDCN2Energy=0;
82   fZDCP2Energy=0;
83   fZDCEMEnergy=0;
84   fZDCParticipants=0;  
85   for(int i=0; i<24; i++) fZN1TowerEnergy[i] = fZN2TowerEnergy[i] = 0.;
86
87 }
88
89 //______________________________________________________________________________
90 void AliESDZDC::Print(const Option_t *) const
91 {
92 }
93
94