Skip to content

Commit 5b94c33

Browse files
authored
[EMCAL-530] Use GRPGeomHelper for access of the geometry (#2057)
1 parent f97f0f8 commit 5b94c33

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

Modules/EMCAL/src/ClusterTask.cxx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ void ClusterTask::startOfCycle()
300300
{
301301
ILOG(Debug, Devel) << "startOfCycle" << ENDM;
302302

303-
if (!o2::base::GeometryManager::isGeometryLoaded()) {
304-
ILOG(Info, Support) << "Loading geometry" << ENDM;
305-
TaskInterface::retrieveConditionAny<TObject>("GLO/Config/Geometry");
306-
ILOG(Info, Support) << "Geometry loaded" << ENDM;
307-
}
303+
// if (!o2::base::GeometryManager::isGeometryLoaded()) {
304+
// ILOG(Info, Support) << "Loading geometry" << ENDM;
305+
// TaskInterface::retrieveConditionAny<TObject>("GLO/Config/Geometry");
306+
// ILOG(Info, Support) << "Geometry loaded" << ENDM;
307+
// }
308308

309309
// Loading EMCAL calibration objects
310310
if (mTaskParameters.mInternalClusterizer && mTaskParameters.mCalibrate) {
@@ -328,6 +328,14 @@ void ClusterTask::startOfCycle()
328328

329329
void ClusterTask::monitorData(o2::framework::ProcessingContext& ctx)
330330
{
331+
if (!o2::base::GeometryManager::isGeometryLoaded()) {
332+
static bool displayGeometryError = true;
333+
if (displayGeometryError) {
334+
ILOG(Error, Support) << "Cluster QC needs access to the Geometry - please initialize the GRPGeomHelper in your task configuration" << ENDM;
335+
displayGeometryError = false;
336+
}
337+
return;
338+
}
331339
auto cell = ctx.inputs().get<gsl::span<o2::emcal::Cell>>(mTaskInputBindings.mCellBinding.data());
332340
auto cellTR = ctx.inputs().get<gsl::span<o2::emcal::TriggerRecord>>(mTaskInputBindings.mCellTriggerRecordBinding.data());
333341

0 commit comments

Comments
 (0)