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

adapttations after move of the serialiser tool

Former-commit-id: 95ccf236
parent 849d2df2
No related branches found
No related tags found
No related merge requests found
#include "../HLTResultCreatorByteStream.h"
#include "../HLTEDMCreator.h" #include "../HLTEDMCreator.h"
#include "../StreamTagMakerTool.h" #include "../StreamTagMakerTool.h"
#include "../HLTResultMTMakerAlg.h" #include "../HLTResultMTMakerAlg.h"
#include "../DecisionSummaryMakerAlg.h" #include "../DecisionSummaryMakerAlg.h"
#include "../TriggerBitsMakerTool.h" #include "../TriggerBitsMakerTool.h"
#include "../TriggerEDMSerialiserTool.h"
DECLARE_COMPONENT( HLTResultCreatorByteStream )
DECLARE_COMPONENT( HLTEDMCreator ) DECLARE_COMPONENT( HLTEDMCreator )
DECLARE_COMPONENT( HLTResultMTMakerAlg ) DECLARE_COMPONENT( HLTResultMTMakerAlg )
DECLARE_COMPONENT( StreamTagMakerTool ) DECLARE_COMPONENT( StreamTagMakerTool )
DECLARE_COMPONENT( DecisionSummaryMakerAlg ) DECLARE_COMPONENT( DecisionSummaryMakerAlg )
DECLARE_COMPONENT( TriggerBitsMakerTool ) DECLARE_COMPONENT( TriggerBitsMakerTool )
DECLARE_COMPONENT( TriggerEDMSerialiserTool )
...@@ -246,7 +246,7 @@ summary = TriggerSummaryAlg( "TriggerSummaryAlg" ) ...@@ -246,7 +246,7 @@ summary = TriggerSummaryAlg( "TriggerSummaryAlg" )
summary.InputDecision = "HLTChains" summary.InputDecision = "HLTChains"
summary.FinalDecisions = [ "ElectronL2Decisions", "MuonL2Decisions" ] summary.FinalDecisions = [ "ElectronL2Decisions", "MuonL2Decisions" ]
from TrigOutputHandling.TrigOutputHandlingConf import HLTEDMCreator, HLTResultCreatorByteStream from TrigOutputHandling.TrigOutputHandlingConf import HLTEDMCreator
egammaViewsMerger = HLTEDMCreator("egammaViewsMerger") egammaViewsMerger = HLTEDMCreator("egammaViewsMerger")
egammaViewsMerger.TrigCompositeContainer = [ "L2ElectronLinks", "filterCaloRoIsAlg", "EgammaCaloDecisions","ElectronL2Decisions", "MuonL2Decisions", "EMRoIDecisions", "METRoIDecisions", "MURoIDecisions", "HLTChainsResult", "JRoIDecisions", "MonitoringSummaryStep1", "RerunEMRoIDecisions", "RerunMURoIDecisions", "TAURoIDecisions", "L2CaloLinks", "FilteredEMRoIDecisions", "FilteredEgammaCaloDecisions" ] egammaViewsMerger.TrigCompositeContainer = [ "L2ElectronLinks", "filterCaloRoIsAlg", "EgammaCaloDecisions","ElectronL2Decisions", "MuonL2Decisions", "EMRoIDecisions", "METRoIDecisions", "MURoIDecisions", "HLTChainsResult", "JRoIDecisions", "MonitoringSummaryStep1", "RerunEMRoIDecisions", "RerunMURoIDecisions", "TAURoIDecisions", "L2CaloLinks", "FilteredEMRoIDecisions", "FilteredEgammaCaloDecisions" ]
...@@ -267,16 +267,8 @@ egammaViewsMerger.OutputLevel = VERBOSE ...@@ -267,16 +267,8 @@ egammaViewsMerger.OutputLevel = VERBOSE
svcMgr.StoreGateSvc.OutputLevel = INFO svcMgr.StoreGateSvc.OutputLevel = INFO
streamingTool = HLTResultCreatorByteStream(OutputLevel=VERBOSE)
summary.OutputTools = [ egammaViewsMerger ]
streamingTool.CollectionsToSerialize = [ "xAOD::TrigCompositeContainer_v1#EgammaCaloDecisions",
"xAOD::TrigCompositeAuxContainer_v1#EgammaCaloDecisionsAux.",
"xAOD::TrigElectronContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFex",
"xAOD::TrigElectronAuxContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFexAux." ]
summary.OutputTools = [ egammaViewsMerger, streamingTool ]
summary.OutputLevel = DEBUG summary.OutputLevel = DEBUG
...@@ -343,7 +335,7 @@ StreamESD.ItemList += [ "ROIB::RoIBResult#*" ] ...@@ -343,7 +335,7 @@ StreamESD.ItemList += [ "ROIB::RoIBResult#*" ]
print "ESD file content " print "ESD file content "
print StreamESD.ItemList print StreamESD.ItemList
from TrigOutputHandling.TrigOutputHandlingConf import DecisionSummaryMakerAlg, HLTResultMTMakerAlg, StreamTagMakerTool, TriggerBitsMakerTool from TrigOutputHandling.TrigOutputHandlingConf import DecisionSummaryMakerAlg, HLTResultMTMakerAlg, StreamTagMakerTool, TriggerBitsMakerTool, TriggerEDMSerialiserTool
summMaker = DecisionSummaryMakerAlg() summMaker = DecisionSummaryMakerAlg()
summMaker.FinalDecisionKeys = [ theElectronHypo.HypoOutputDecisions ] summMaker.FinalDecisionKeys = [ theElectronHypo.HypoOutputDecisions ]
summMaker.FinalStepDecisions = dict( [ ( tool.getName(), theElectronHypo.HypoOutputDecisions ) for tool in theElectronHypo.HypoTools ] ) summMaker.FinalStepDecisions = dict( [ ( tool.getName(), theElectronHypo.HypoOutputDecisions ) for tool in theElectronHypo.HypoTools ] )
...@@ -353,6 +345,13 @@ print summMaker ...@@ -353,6 +345,13 @@ print summMaker
################################################################################ ################################################################################
# test online HLT Result maker # test online HLT Result maker
serialiser = TriggerEDMSerialiserTool(OutputLevel=VERBOSE)
serialiser.CollectionsToSerialize = [ "xAOD::TrigCompositeContainer_v1#EgammaCaloDecisions",
"xAOD::TrigCompositeAuxContainer_v1#EgammaCaloDecisionsAux.",
"xAOD::TrigElectronContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFex",
"xAOD::TrigElectronAuxContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFexAux." ]
stmaker = StreamTagMakerTool() stmaker = StreamTagMakerTool()
stmaker.OutputLevel = DEBUG stmaker.OutputLevel = DEBUG
stmaker.ChainDecisions = "HLTFinalDecisions" stmaker.ChainDecisions = "HLTFinalDecisions"
...@@ -364,7 +363,7 @@ bitsmaker.ChainToBit = dict( [ (chain, 10*num) for num,chain in enumerate(testCh ...@@ -364,7 +363,7 @@ bitsmaker.ChainToBit = dict( [ (chain, 10*num) for num,chain in enumerate(testCh
bitsmaker.OutputLevel = DEBUG bitsmaker.OutputLevel = DEBUG
hltResultMaker = HLTResultMTMakerAlg() hltResultMaker = HLTResultMTMakerAlg()
hltResultMaker.MakerTools = [ stmaker, bitsmaker ] hltResultMaker.MakerTools = [ stmaker, bitsmaker, serialiser ]
hltResultMaker.OutputLevel = DEBUG hltResultMaker.OutputLevel = DEBUG
from AthenaMonitoring.GenericMonitoringTool import GenericMonitoringTool, defineHistogram from AthenaMonitoring.GenericMonitoringTool import GenericMonitoringTool, defineHistogram
......
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