]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional pritection. Do not delete the mapping, it is owned by another class
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Dec 2007 13:58:11 +0000 (13:58 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Dec 2007 13:58:11 +0000 (13:58 +0000)
EMCAL/AliEMCALRawUtils.cxx

index 4e0e4f44d6863ee460e4c2049d475f0b22cc2179..ae4abb97f5829c7548099e575e47f229041ca612 100644 (file)
@@ -17,6 +17,9 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.9  2007/12/06 02:19:51  jklay
+ * incorporated fitting procedure from testbeam analysis into AliRoot
+ *
  * Revision 1.8  2007/12/05 02:30:51  jklay
  * modification to read Altro mappings into AliEMCALRecParam and pass to AliEMCALRawUtils from AliEMCALReconstructor; add option to AliEMCALRawUtils to set old RCU format (for testbeam) or not
  *
@@ -143,6 +146,8 @@ void AliEMCALRawUtils::Digits2Raw(AliAltroMapping **mapping)
     else if(8<=iphi&&iphi<16 && 24<=ieta&&ieta<48) iRCU=1; // second half; 
     //second cable row
     else if(16<=iphi&&iphi<24) iRCU=1; // third cable row
+    if (iRCU<0) 
+      Fatal("Digits2Raw()","Non-existent RCU number: %d", iRCU);
     
     //Which DDL?
     Int_t iDDL = fgDDLPerSuperModule* nSM + iRCU;
@@ -181,8 +186,8 @@ void AliEMCALRawUtils::Digits2Raw(AliAltroMapping **mapping)
       delete buffers[i];
     }
   }
-  mapping[0]->Delete();
-  mapping[1]->Delete();
+//PH   mapping[0]->Delete();
+//PH   mapping[1]->Delete();
   loader->UnloadDigits();
 }