+
+//____________________________________________________________________________
+AliEMCALRecParam* AliEMCALLoader::ReconstructionParameters(Int_t eventType = 0)
+{
+ // Check if the instance of AliEMCALRecParam exists, if not, create it if
+ // the OCDB is available, and finally return it.
+ // The event type must be provided.
+
+ if(!fgRecParam && (AliCDBManager::Instance()->IsDefaultStorageSet()))
+ {
+ AliCDBEntry *entry = (AliCDBEntry*)
+ AliCDBManager::Instance()->Get("EMCAL/Calib/RecoParam");
+ if (entry) fgRecParam = (AliEMCALRecParam*)((TObjArray *) entry->GetObject())->At(eventType);
+
+ }
+
+ if(!fgRecParam)
+ AliFatal("Reconstruction parameters not found in CDB!");
+
+ return fgRecParam;
+
+}
+
+