]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix: using the mapping from CDB
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Dec 2007 10:31:13 +0000 (10:31 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Dec 2007 10:31:13 +0000 (10:31 +0000)
EMCAL/AliEMCAL.cxx

index 71e42be5d2c06540fdd3c144ce42735270bf9fef..3b436b26130c74c19423905aa26f266380669d89 100644 (file)
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.53.10.1  2007/12/06 10:29:59  hristov
+ * Bug fix: using the mapping from CDB
+ *
+ * Revision 1.53  2007/03/17 19:56:38  mvl
+ * Moved signal shape routines from AliEMCAL to separate class AliEMCALRawUtils to streamline raw data reconstruction code.
+ *
  * Revision 1.52  2007/03/10 22:19:01  pavlinov
  * move one varibels from AliEMCALv2 to AliEMCAL
  *
@@ -67,6 +73,9 @@ class TFile;
 #include "AliEMCALDigitizer.h"
 #include "AliEMCALDigit.h"
 #include "AliEMCALRawUtils.h"
+#include "AliCDBManager.h"
+#include "AliCDBEntry.h"
+
 
 ClassImp(AliEMCAL)
 
@@ -268,7 +277,19 @@ void AliEMCAL::CreateMaterials()
 //____________________________________________________________________________
 void AliEMCAL::Digits2Raw() {
   static AliEMCALRawUtils rawUtil;
-  rawUtil.Digits2Raw();
+  //Get Mapping RCU files from the AliEMCALRecParam                                                          
+  AliCDBEntry* entry = AliCDBManager::Instance()->Get("EMCAL/Calib/Mapping");
+  const TObjArray* maps = 0x0;
+  if(entry)
+    maps = (TObjArray*)entry->GetObject();
+
+  if(!maps) AliFatal("Cannot retrieve ALTRO mappings!!");
+
+  AliAltroMapping * mapping[2] ; // For the moment only 2                                                    
+  for(Int_t i = 0; i < 2; i++) {
+    mapping[i] = (AliAltroMapping*)maps->At(i);
+  }
+  rawUtil.Digits2Raw(mapping);
 }
 //____________________________________________________________________________
 void AliEMCAL::Hits2SDigits()