@@ -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
329329void 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