]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDZDC.h
Memory leak corrected (Ch. Klein-Boesing)
[u/mrichter/AliRoot.git] / STEER / AliESDZDC.h
1 // -*- mode: C++ -*- 
2 #ifndef ALIESDZDC_H
3 #define ALIESDZDC_H
4
5 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6  * See cxx source for full Copyright notice                               */
7
8 //-------------------------------------------------------------------------
9 //                      Implementation of   Class AliESDZDC
10 //   This is a class that summarizes the ZDC data
11 //   for the ESD   
12 //   Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch 
13 //-------------------------------------------------------------------------
14
15 #include <TObject.h>
16
17
18 class AliESDZDC: public TObject {
19 public:
20   AliESDZDC();
21   AliESDZDC(const AliESDZDC& zdc);
22   AliESDZDC& operator=(const AliESDZDC& zdc);
23
24   Double_t GetZDCN1Energy() const {return fZDCN1Energy;}
25   Double_t GetZDCP1Energy() const {return fZDCP1Energy;}
26   Double_t GetZDCN2Energy() const {return fZDCN2Energy;}
27   Double_t GetZDCP2Energy() const {return fZDCP2Energy;}
28   Double_t GetZDCEMEnergy() const {return fZDCEMEnergy;}
29   Int_t    GetZDCParticipants() const {return fZDCParticipants;}
30   void     SetZDC(Double_t n1Energy, Double_t p1Energy, Double_t emEnergy,
31                   Double_t n2Energy, Double_t p2Energy, Int_t participants) 
32    {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy; fZDCEMEnergy=emEnergy;
33     fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy; fZDCParticipants=participants;}
34
35   void    Reset();
36   void    Print(const Option_t *opt=0) const;
37
38 private:
39
40   Double32_t   fZDCN1Energy;      // reconstructed energy in the neutron ZDC
41   Double32_t   fZDCP1Energy;      // reconstructed energy in the proton ZDC
42   Double32_t   fZDCN2Energy;      // reconstructed energy in the neutron ZDC
43   Double32_t   fZDCP2Energy;      // reconstructed energy in the proton ZDC
44   Double32_t   fZDCEMEnergy;      // reconstructed energy in the electromagnetic ZDC
45   Int_t        fZDCParticipants;  // number of participants estimated by the ZDC
46
47   ClassDef(AliESDZDC,2)
48 };
49
50 #endif