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

Enable L1 menu info decoding for MET

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