// -*- mode: C++ -*- #ifndef ALIESDZDC_H #define ALIESDZDC_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ //------------------------------------------------------------------------- // Implementation of Class AliESDZDC // This is a class that summarizes the ZDC data // for the ESD // Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch //------------------------------------------------------------------------- #include class AliESDZDC: public TObject { public: AliESDZDC(); AliESDZDC(const AliESDZDC& zdc); AliESDZDC& operator=(const AliESDZDC& zdc); Double_t GetZDCN1Energy() const {return fZDCN1Energy;} Double_t GetZDCP1Energy() const {return fZDCP1Energy;} Double_t GetZDCN2Energy() const {return fZDCN2Energy;} Double_t GetZDCP2Energy() const {return fZDCP2Energy;} Double_t GetZDCEMEnergy() const {return fZDCEMEnergy;} Short_t GetZDCParticipants() const {return fZDCParticipants;} const Double_t * GetZN1TowerEnergy() const {return fZN1TowerEnergy;} const Double_t * GetZN2TowerEnergy() const {return fZN2TowerEnergy;} void SetZDC(Double_t n1Energy, Double_t p1Energy, Double_t emEnergy, Double_t n2Energy, Double_t p2Energy, Short_t participants) {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy; fZDCEMEnergy=emEnergy; fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy; fZDCParticipants=participants;} void SetZN1TowerEnergy(Double_t tow1[4]){ for(Int_t i=0; i<4; i++) fZN1TowerEnergy[i] = tow1[i]; } void SetZN2TowerEnergy(Double_t tow2[4]){ for(Int_t i=0; i<4; i++) fZN2TowerEnergy[i] = tow2[i]; } void Reset(); void Print(const Option_t *opt=0) const; private: Double32_t fZDCN1Energy; // reconstructed energy in the neutron ZDC Double32_t fZDCP1Energy; // reconstructed energy in the proton ZDC Double32_t fZDCN2Energy; // reconstructed energy in the neutron ZDC Double32_t fZDCP2Energy; // reconstructed energy in the proton ZDC Double32_t fZDCEMEnergy; // signal in the electromagnetic ZDC Double32_t fZN1TowerEnergy[4];// reconstructed energy in 4 neutron ZDC towers Double32_t fZN2TowerEnergy[4];// reconstructed energy in 4 neutron ZDC towers Short_t fZDCParticipants; // number of participants estimated by the ZDC ClassDef(AliESDZDC,4) }; #endif