Skip to content
Snippets Groups Projects

allow for some types of algorithms to be completely removed from L1 menu (ATR-24352)

Merged Daniele Zanzi requested to merge dzanzi/athena:ATR-fixTopoConfig_dzanzi into master
2 files
+ 7
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -103,6 +103,8 @@ TrigConf::L1Menu::load()
auto topoCategories = isRun2() ? std::vector<std::string> {"R2TOPO"} : std::vector<std::string> {"TOPO", "MUTOPO", "MULTTOPO", "R2TOPO"};
for( const std::string& algoCategory : topoCategories ) {
auto & v = m_algorithmsByCategory[algoCategory] = std::vector<TrigConf::L1TopoAlgorithm>();
m_algorithmsByName.emplace(algoCategory, std::map<std::string, TrigConf::L1TopoAlgorithm*>());
m_algorithmsByOutput.emplace(algoCategory, std::map<std::string, TrigConf::L1TopoAlgorithm*>());
if(algoCategory == "MULTTOPO") {
for( auto & alg : data().get_child( "topoAlgorithms." + algoCategory + ".multiplicityAlgorithms" ) ) {
v.emplace_back( alg.first, L1TopoAlgorithm::AlgorithmType::MULTIPLICITY, algoCategory, alg.second );
Loading