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

Cleaner code, added new components

parent 7ac91aa7
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,11 @@ StreamTagMakerTool::~StreamTagMakerTool() {
StatusCode StreamTagMakerTool::initialize() {
// decode mapping
for ( auto& chainAndStream: m_chainToStreamProperty ) {
struct { std::string chain, stream; } conf { chainAndStream.first, chainAndStream.second };
m_mapping[ HLT::Identifier( conf.chain ) ] = eformat::helper::StreamTag( conf.stream, "physics", true );
}
return StatusCode::SUCCESS;
}
......@@ -41,11 +46,7 @@ StatusCode StreamTagMakerTool::fill( HLT::HLTResultMT& resultToFill ) const {
}
// push back ST vector to HLTResultMT
// make sure thy are unique
// make sure ST vector contains only unique content
std::sort( streams.begin(), streams.end() );
streams.erase( std::unique( streams.begin(), streams.end() ), streams.end() );
......
......@@ -2,9 +2,11 @@
#include "../HLTEDMCreator.h"
#include "../StreamTagMakerTool.h"
#include "../HLTResultMTMakerAlg.h"
#include "../DecisionSummaryMakerAlg.h"
DECLARE_COMPONENT( HLTResultCreatorByteStream )
DECLARE_COMPONENT( HLTEDMCreator )
DECLARE_COMPONENT( HLTResultMTMakerAlg )
DECLARE_COMPONENT( StreamTagMakerTool )
DECLARE_COMPONENT( DecisionSummaryMakerAlg )
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