]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDZDC.h
New class for debugging of the memory consumption and other run time parameters ...
[u/mrichter/AliRoot.git] / STEER / AliESDZDC.h
CommitLineData
d5ebf00e 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
18class AliESDZDC: public TObject {
19public:
20 AliESDZDC();
21 AliESDZDC(const AliESDZDC& zdc);
22 AliESDZDC& operator=(const AliESDZDC& zdc);
23
a7b0ef8a 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;}
cd888a89 29 Short_t GetZDCParticipants() const {return fZDCParticipants;}
7b4458a2 30 const Double_t * GetZN1TowerEnergy() const {return fZN1TowerEnergy;}
31 const Double_t * GetZN2TowerEnergy() const {return fZN2TowerEnergy;}
32 void SetZDC(Double_t n1Energy, Double_t p1Energy, Double_t emEnergy,
cd888a89 33 Double_t n2Energy, Double_t p2Energy, Short_t participants)
d5ebf00e 34 {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy; fZDCEMEnergy=emEnergy;
35 fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy; fZDCParticipants=participants;}
7b4458a2 36 void SetZN1TowerEnergy(Double_t tow1[4]){
37 for(Int_t i=0; i<4; i++) fZN1TowerEnergy[i] = tow1[i];
38 }
39 void SetZN2TowerEnergy(Double_t tow2[4]){
40 for(Int_t i=0; i<4; i++) fZN2TowerEnergy[i] = tow2[i];
41 }
d5ebf00e 42
43 void Reset();
44 void Print(const Option_t *opt=0) const;
45
46private:
47
a7b0ef8a 48 Double32_t fZDCN1Energy; // reconstructed energy in the neutron ZDC
49 Double32_t fZDCP1Energy; // reconstructed energy in the proton ZDC
50 Double32_t fZDCN2Energy; // reconstructed energy in the neutron ZDC
51 Double32_t fZDCP2Energy; // reconstructed energy in the proton ZDC
7b4458a2 52 Double32_t fZDCEMEnergy; // signal in the electromagnetic ZDC
53 Double32_t fZN1TowerEnergy[4];// reconstructed energy in 4 neutron ZDC towers
54 Double32_t fZN2TowerEnergy[4];// reconstructed energy in 4 neutron ZDC towers
cd888a89 55 Short_t fZDCParticipants; // number of participants estimated by the ZDC
56 ClassDef(AliESDZDC,4)
d5ebf00e 57};
58
59#endif
7b4458a2 60