AliAnalysisTaskSE(name),
fOcdbPath(),
fOadbPath("$ALICE_ROOT/OADB/EMCAL"),
- fGeoPath("."),
+ fGeoPath("$ALICE_ROOT/OADB/EMCAL"),
fIsInit(kFALSE)
{
// Constructor.
Int_t runno = InputEvent()->GetRunNumber();
TString geoname("EMCAL_COMPLETE12SMV1");
- Int_t year = 2012;
+ Int_t year = 2013;
if (runno<=139517) {
year = 2010;
geoname = "EMCAL_FIRSTYEARV1";
- }
- else if ((runno>139517) && (runno<=170593)) {
+ } else if ((runno>139517) && (runno<=170593)) {
year = 2011;
geoname = "EMCAL_COMPLETEV1";
+ } else if ((runno>170593) && (runno<=193766)) {
+ year = 2012;
}
AliEMCALGeometry *geom = AliEMCALGeometry::GetInstance(geoname);
// $Id$
-AliEmcalSetupTask* AddTaskEmcalSetup()
+AliEmcalSetupTask* AddTaskEmcalSetup(
+ const char *geop = 0,
+ const char *oadp = 0,
+ const char *ocdp = 0
+)
{
// Get the pointer to the existing analysis manager via the static access method.
//==============================================================================
// Init the task and do settings
//-------------------------------------------------------
AliEmcalSetupTask *eTask = new AliEmcalSetupTask("EmcalSetupTask");
+ if (geop) eTask->SetGeoPath(geop);
+ if (oadp) eTask->SetOadbPath(oadp);
+ if (ocdp) eTask->SetOcdbPath(ocdp);
//-------------------------------------------------------
// Final settings, pass to manager and set the containers