Commit c43cfbc8 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'ATR-fixTopoConfig_dzanzi' into 'master'

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

See merge request atlas/athena!47405
parents 05b81c78 17d6bab7
......@@ -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 );
......
......@@ -57,7 +57,11 @@ class MenuTopoAlgorithmsCollection(object):
self.topoAlgos = odict()
for cat in AlgCategory:
self.topoAlgos[cat] = odict()
if cat in [AlgCategory.TOPO, AlgCategory.MUCTPI, AlgCategory.LEGACY]:
self.topoAlgos[cat][AlgType.DEC] = odict()
self.topoAlgos[cat][AlgType.SORT] = odict()
elif cat in [AlgCategory.MULTI]:
self.topoAlgos[cat][AlgType.MULT] = odict()
def addAlgo(self, algo, category):
if type(category) != AlgCategory:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment