Skip to content
Snippets Groups Projects
Commit 17d6bab7 authored by Daniele Zanzi's avatar Daniele Zanzi
Browse files

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

parent 2dd5f689
Branches svn/tags/GAUDI_v19r3@6013
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!47405allow for some types of algorithms to be completely removed from L1 menu (ATR-24352)
......@@ -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:
......
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