Skip to content
Snippets Groups Projects
Commit 0fb6d62f authored by Tomasz Bold's avatar Tomasz Bold
Browse files

Enable L1 menu info decoding for MET

parent 07ce9286
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "TrigConfL1Data/ThresholdConfig.h" #include "TrigConfL1Data/ThresholdConfig.h"
#include "TrigT1Result/JetEnergyResult.h" #include "TrigT1Result/JetEnergyResult.h"
#include "TrigT1Result/RoIBResult.h" #include "TrigT1Result/RoIBResult.h"
#include "TrigConfL1Data/CTPConfig.h"
#include "METRoIsUnpackingTool.h" #include "METRoIsUnpackingTool.h"
METRoIsUnpackingTool::METRoIsUnpackingTool( const std::string& type, METRoIsUnpackingTool::METRoIsUnpackingTool( const std::string& type,
...@@ -26,8 +27,14 @@ StatusCode METRoIsUnpackingTool::initialize() ...@@ -26,8 +27,14 @@ StatusCode METRoIsUnpackingTool::initialize()
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
StatusCode METRoIsUnpackingTool::updateConfiguration( const IRoIsUnpackingTool::SeedingMap& ) { StatusCode METRoIsUnpackingTool::updateConfiguration( const IRoIsUnpackingTool::SeedingMap& seeding ) {
using namespace TrigConf; using namespace TrigConf;
ATH_CHECK( decodeMapping( [](const TriggerThreshold* th){ return L1DataDef::TE == th->ttype() or L1DataDef::XE == th->ttype() or L1DataDef::XS == th->ttype(); },
m_configSvc->ctpConfig()->menu().itemVector(),
seeding ) );
const ThresholdConfig* thresholdConfig = m_configSvc->thresholdConfig(); const ThresholdConfig* thresholdConfig = m_configSvc->thresholdConfig();
std::vector<const TriggerThreshold*> filtered; std::vector<const TriggerThreshold*> filtered;
{ {
......
...@@ -30,13 +30,16 @@ StatusCode RoIsUnpackingToolBase::decodeMapping( std::function< bool(const TrigC ...@@ -30,13 +30,16 @@ StatusCode RoIsUnpackingToolBase::decodeMapping( std::function< bool(const TrigC
auto itemsIterator = l1Items.get<TrigConf::tag_name_hash>().find(itemName); auto itemsIterator = l1Items.get<TrigConf::tag_name_hash>().find(itemName);
if ( itemsIterator != l1Items.get<TrigConf::tag_name_hash>().end() ) { if ( itemsIterator != l1Items.get<TrigConf::tag_name_hash>().end() ) {
const TrigConf::TriggerItem* item = *itemsIterator; const TrigConf::TriggerItem* item = *itemsIterator;
const TrigConf::TriggerItemNode* node = item->topNode(); const TrigConf::TriggerItemNode* node = item->topNode();
std::vector<TrigConf::TriggerThreshold*> itemThresholds; std::vector<TrigConf::TriggerThreshold*> itemThresholds;
node->getAllThresholds(itemThresholds); node->getAllThresholds(itemThresholds);
ATH_MSG_DEBUG( "Item " << item->name() << " with thresholds " << itemThresholds.size() );
for ( const TrigConf::TriggerThreshold* th: itemThresholds ) { for ( const TrigConf::TriggerThreshold* th: itemThresholds ) {
if ( filter(th) ) { if ( filter(th) ) {
m_thresholdToChainMapping[HLT::Identifier(th->name())].push_back( HLT::Identifier(chainName) ); m_thresholdToChainMapping[HLT::Identifier(th->name())].push_back( HLT::Identifier(chainName) );
ATH_MSG_DEBUG( "Associating " << chainName << " with threshold " << th->name() );
} }
} }
} else { } else {
......
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