/* $Id$ */
// --- AliRoot header files ---
+#include "TObjArray.h"
+#include "AliCDBManager.h"
+#include "AliCDBEntry.h"
#include "AliEMCALRecParam.h"
#include "AliLog.h"
ClassImp(AliEMCALRecParam)
+TObjArray* AliEMCALRecParam::fgkMaps =0; //ALTRO mappings
+
//-----------------------------------------------------------------------------
// Container of EMCAL reconstruction parameters
// The purpose of this object is to store it to OCDB
AliEMCALRecParam::AliEMCALRecParam():
fClusteringThreshold(0.5),fW0(4.5),fMinECut(0.45), //clustering
fTrkCutX(6.0), fTrkCutY(6.0), fTrkCutZ(6.0), fTrkCutR(10.0),//track matching
- fTrkCutAlphaMin(-50.0), fTrkCutAlphaMax(50.0), fTrkCutAngle(10000.0) //track matching
+ fTrkCutAlphaMin(-50.0), fTrkCutAlphaMax(50.0), fTrkCutAngle(10000.0), //track matching
+ fHighLowGainFactor(16.0), fOrderParameter(2), fTau(2.35), fNoiseThreshold(3), fNPedSamples(5) //raw signal
{
// default reco values
fPiZero10to60[5][0] = 0.002942;
fPiZero10to60[5][1] = -3.976e-05;
- //track matching
-
-
-
}
//-----------------------------------------------------------------------------
printf("\n");
+ AliInfo(Form("Raw signal parameters: \n gain factor=%f, order=%d, tau=%f, noise threshold=%d, nped samples=%d \n",
+ fHighLowGainFactor,fOrderParameter,fTau,fNoiseThreshold,fNPedSamples));
+
+}
+
+//-----------------------------------------------------------------------------
+const TObjArray* AliEMCALRecParam::GetMappings()
+{
+ //Returns array of AliAltroMappings for RCU0..RCUX.
+ //If not found, read it from OCDB.
+
+ //Quick check as follows:
+ // root [0]
+ //AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
+ // root [1] AliCDBManager::Instance()->SetRun(1);
+ // root [2] TObjArray* maps = AliEMCALRecParam::GetMappings();
+ // root [3] maps->Print();
+
+ if(fgkMaps) return fgkMaps;
+
+ AliCDBEntry* entry = AliCDBManager::Instance()->Get("EMCAL/Calib/Mapping");
+ if(entry)
+ fgkMaps = (TObjArray*)entry->GetObject();
+
+ return fgkMaps;
+
}