From e0af7ed212f30f8490259d63ca423d24b07808a3 Mon Sep 17 00:00:00 2001 From: hristov Date: Tue, 20 Jun 2006 09:23:45 +0000 Subject: [PATCH] Corrected copy constructor and destructor --- STEER/AliESDCaloCluster.cxx | 46 ++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/STEER/AliESDCaloCluster.cxx b/STEER/AliESDCaloCluster.cxx index 55d938f2c9a..15315178c3f 100644 --- a/STEER/AliESDCaloCluster.cxx +++ b/STEER/AliESDCaloCluster.cxx @@ -66,7 +66,7 @@ AliESDCaloCluster::AliESDCaloCluster(const AliESDCaloCluster& clus) : fPrimaryIndex(clus.fPrimaryIndex), fM20(clus.fM20), fM02(clus.fM02), - fM11(clus.fNExMax), + fM11(clus.fM11), fNExMax(clus.fNExMax), fEmcCpvDistance(clus.fEmcCpvDistance), fNumberOfDigits(clus.fNumberOfDigits) @@ -80,10 +80,27 @@ AliESDCaloCluster::AliESDCaloCluster(const AliESDCaloCluster& clus) : for(Int_t i=0; i 0) { + if (clus.fDigitAmplitude) { + fDigitAmplitude = new UShort_t[clus.fNumberOfDigits]; + for (Int_t i=0; i