diff --git a/Database/IOVDbMetaDataTools/src/IOVDbMetaDataTool.cxx b/Database/IOVDbMetaDataTools/src/IOVDbMetaDataTool.cxx index 15349a25d9d45f38c25904f2f80792729582c4b0..8a2bb85e48e594287bff31a7a754df7a35084069 100755 --- a/Database/IOVDbMetaDataTools/src/IOVDbMetaDataTool.cxx +++ b/Database/IOVDbMetaDataTools/src/IOVDbMetaDataTool.cxx @@ -670,23 +670,24 @@ IOVDbMetaDataTool::overrideIOV (CondAttrListCollection*& coll) const coll->addNewStop (newRange.stop()); } else { - // Add in channels - unsigned int nchans = coll->size(); - for (unsigned int ichan = 0; ichan < nchans; ++ichan) { - // FIXME: O(N^2)! - CondAttrListCollection::ChanNum chan = coll->chanNum(ichan); - coll->add(chan, newRange); - ATH_MSG_DEBUG("overrideIOV: overriding the IOV of collection " << chan); - } + // Add in channels + unsigned int nchans = coll->size(); + for (unsigned int ichan = 0; ichan < nchans; ++ichan) { + // FIXME: O(N^2)! + CondAttrListCollection::ChanNum chan = coll->chanNum(ichan); + coll->add(chan, newRange); + ATH_MSG_DEBUG("overrideIOV: overriding the IOV of collection chan " << chan); + } + // must reset the collection range AFTER the channels, because the collection range will be + // 'narrowed' to that of the channels + coll->resetMinRange(); } - // must reset the collection range AFTER the channels, because the collection range will be - // 'narrowed' to that of the channels - coll->resetMinRange(); if (msgLvl(MSG::DEBUG)) { - std::ostringstream stream; - coll->dump(stream); - ATH_MSG_DEBUG(stream.str()); - } + ATH_MSG_DEBUG("overrideIOV: after overriding the IOV of collection"); + std::ostringstream stream; + coll->dump(stream); + ATH_MSG_DEBUG(stream.str()); + } } else ATH_MSG_DEBUG("overrideIOV: IOV is not run/event ");