Skip to content
Snippets Groups Projects
Commit 376feb17 authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Merge branch 'rm-fix-FT-warning' into 'master'

Remove warning from FT readout map (follow !4129)

See merge request !4145
parents 3e381a52 a4c1b038
No related branches found
No related tags found
1 merge request!4145Remove warning from FT readout map (follow !4129)
Pipeline #5696433 passed
......@@ -224,13 +224,11 @@ inline void FTReadoutMap::readFile1( const Gaudi::Algorithm* parent, const YAML:
m_sourceIDs.clear();
m_sourceIDs.reserve( sourceIDs.size() );
#ifdef USE_DD4HEP
// Warding against possibilities that no bank is activated.
// If no TELL40 sources are defined, this must mean that conditions are old.
// We can't do anything but enable all links for all sources.
bool ignore = std::none_of( sourceIDs.begin(), sourceIDs.end(),
[&]( auto const& id ) { return deLHCb.tell40links( id ).has_value(); } );
if ( ignore )
parent->warning() << "No SourceID activated for this run. This may mean that conditions are too old to support "
"automatic link/bank deactivation. Activating all banks/links."
<< endmsg;
const auto activatedBank = [&deLHCb, &ignore]( int sourceID ) {
return ( ignore || deLHCb.tell40links( sourceID ).has_value() );
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment