]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODCaloCluster.cxx
Fix for #82970: Change of module sequence in AliReconstruction
[u/mrichter/AliRoot.git] / STEER / AliAODCaloCluster.cxx
index 908188a24f157ee1fe5e8fd51cb82add9b163f61..e04ab505e92f0d3401d4e5efdaedce286ea402a8 100644 (file)
@@ -101,9 +101,17 @@ AliAODCaloCluster::~AliAODCaloCluster()
 {
   // destructor
   if(fCellsAmpFraction) delete[] fCellsAmpFraction; fCellsAmpFraction=0;
-  if(fCellsAbsId) delete[] fCellsAbsId;  fCellsAbsId = 0;
+  if(fCellsAbsId)       delete[] fCellsAbsId;       fCellsAbsId = 0;
 }
 
+//______________________________________________________________________________
+void AliAODCaloCluster::Clear(const Option_t*) 
+{
+  // clear
+  RemoveLabel();
+  if(fCellsAmpFraction) delete[] fCellsAmpFraction; fCellsAmpFraction=0;
+  if(fCellsAbsId)       delete[] fCellsAbsId;       fCellsAbsId = 0;
+}
 
 //______________________________________________________________________________
 AliAODCaloCluster::AliAODCaloCluster(const AliAODCaloCluster& clus) :
@@ -203,7 +211,7 @@ void AliAODCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) {
   //" Double_t vertex[3] ; esd->GetVertex()->GetXYZ(vertex) ; "
 
   Double32_t energy = E();
-  Double32_t pos[3];
+  Float_t    pos[3];
   GetPosition(pos);
   
   if(vertex){//calculate direction from vertex