AliAnalysisTaskSE(),
fOcdbPath(),
fOadbPath("$ALICE_ROOT/OADB/EMCAL"),
- fGeoPath("."),
+ fGeoPath("$ALICE_ROOT/OADB/EMCAL"),
+ fObjs("GRP ITS TPC TRD EMCAL"),
fIsInit(kFALSE)
{
// Constructor.
fOcdbPath(),
fOadbPath("$ALICE_ROOT/OADB/EMCAL"),
fGeoPath("$ALICE_ROOT/OADB/EMCAL"),
+ fObjs("GRP ITS TPC TRD EMCAL"),
fIsInit(kFALSE)
{
// Constructor.
GRPManager.SetMagField();
AliInfo(Form("Loading geometry from OCDB"));
AliGeomManager::LoadGeometry();
- AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC TRD EMCAL");
+ if (!fObjs.IsNull())
+ AliGeomManager::ApplyAlignObjsFromCDB(fObjs);
}
TGeoManager *geo = AliGeomManager::GetGeometry();
AliEmcalSetupTask(const char *name);
virtual ~AliEmcalSetupTask();
- void UserExec(Option_t *option);
void SetGeoPath(const char *n) { fGeoPath = n; }
void SetOadbPath(const char *n) { fOadbPath = n; }
void SetOcdbPath(const char *n) { fOcdbPath = n; }
+ void SetObjs(const char *n) { fObjs = n; }
+ void UserExec(Option_t *option);
protected:
TString fOcdbPath; // path to ocdb (def=none)
TString fOadbPath; // path to oadb
TString fGeoPath; // path to geometry
+ TString fObjs; // string of objects for alignment to apply
Bool_t fIsInit; //!=true then already initialized
private:
AliEmcalSetupTask(const AliEmcalSetupTask&); // not implemented
AliEmcalSetupTask &operator=(const AliEmcalSetupTask&); // not implemented
- ClassDef(AliEmcalSetupTask, 2); // Class to setup geometry for EMCal
+ ClassDef(AliEmcalSetupTask, 3); // Class to setup geometry for EMCal
};
#endif
AliEmcalSetupTask* AddTaskEmcalSetup(
const char *geop = 0,
const char *oadp = 0,
- const char *ocdp = 0
+ const char *ocdp = 0,
+ const char *objs = 0
)
{
// Get the pointer to the existing analysis manager via the static access method.
if (geop) eTask->SetGeoPath(geop);
if (oadp) eTask->SetOadbPath(oadp);
if (ocdp) eTask->SetOcdbPath(ocdp);
+ if (objs) eTask->SetObjs(objs);
//-------------------------------------------------------
// Final settings, pass to manager and set the containers