const TString AliEMCALLoader::fgkECASDigitsBranchName("SDIGITS");//Name for branch with ECA SDigits
AliEMCALCalibData* AliEMCALLoader::fgCalibData = 0; //calibration data
-//AliCaloCalibPedestal* AliEMCALLoader::fgCaloPed = 0; //dead map data
+AliCaloCalibPedestal* AliEMCALLoader::fgCaloPed = 0; //dead map data
AliEMCALSimParam* AliEMCALLoader::fgSimParam = 0; //simulation parameters
+AliEMCALRecParam* AliEMCALLoader::fgRecParam = 0; //reconstruction parameters
//____________________________________________________________________________
AliEMCALLoader::AliEMCALLoader()
}
//____________________________________________________________________________
-//AliCaloCalibPedestal* AliEMCALLoader::PedestalData()
-//{
-// // Check if the instance of AliCaloCalibPedestal exists, if not, create it if
-// // the OCDB is available, and finally return it.
-//
-// if(!fgCaloPed && (AliCDBManager::Instance()->IsDefaultStorageSet()))
-// {
-// AliCDBEntry *entry = (AliCDBEntry*)
-// AliCDBManager::Instance()->Get("EMCAL/Calib/Pedestals");
-// if (entry) fgCaloPed = (AliCaloCalibPedestal*) entry->GetObject();
-// }
-//
-// if(!fgCaloPed)
-// AliFatal("Pedestal info not found in CDB!");
-//
-// return fgCaloPed;
-//
-//}
+AliCaloCalibPedestal* AliEMCALLoader::PedestalData()
+{
+ // Check if the instance of AliCaloCalibPedestal exists, if not, create it if
+ // the OCDB is available, and finally return it.
+
+ if(!fgCaloPed && (AliCDBManager::Instance()->IsDefaultStorageSet()))
+ {
+ AliCDBEntry *entry = (AliCDBEntry*)
+ AliCDBManager::Instance()->Get("EMCAL/Calib/Pedestals");
+ if (entry) fgCaloPed = (AliCaloCalibPedestal*) entry->GetObject();
+ }
+
+ if(!fgCaloPed)
+ AliFatal("Pedestal info not found in CDB!");
+
+ return fgCaloPed;
+
+}
//____________________________________________________________________________
AliEMCALSimParam* AliEMCALLoader::SimulationParameters()
if(!fgSimParam && (AliCDBManager::Instance()->IsDefaultStorageSet()))
{
AliCDBEntry *entry = (AliCDBEntry*)
- AliCDBManager::Instance()->Get("EMCAL/Calib/SimParam");
+ AliCDBManager::Instance()->Get("EMCAL/Calib/SimParam");
if (entry) fgSimParam = (AliEMCALSimParam*) entry->GetObject();
}
}
+
+//____________________________________________________________________________
+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;
+
+}
+
+
//____________________________________________________________________________
Int_t AliEMCALLoader::GetEvent()
{
//Method to load all of the data
//members of the EMCAL for a given
//event from the Trees
-
+
AliLoader::GetEvent(); // First call AliLoader to do all the groundwork
// *** Hits ***