Skip to content
Snippets Groups Projects
Commit dbaf06ad authored by Rafal Bielski's avatar Rafal Bielski :wave:
Browse files

Partial Event Building: use previous RoI instead of initial

except for streamers, where there is no previous RoI.
parent 778ad596
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!38008Partial Event Building: use previous RoI instead of initial
...@@ -18,7 +18,6 @@ using TrigCompositeUtils::createAndStore; ...@@ -18,7 +18,6 @@ using TrigCompositeUtils::createAndStore;
using TrigCompositeUtils::decisionIDs; using TrigCompositeUtils::decisionIDs;
using TrigCompositeUtils::linkToPrevious; using TrigCompositeUtils::linkToPrevious;
using TrigCompositeUtils::newDecisionIn; using TrigCompositeUtils::newDecisionIn;
using TrigCompositeUtils::initialRoIString;
using TrigCompositeUtils::featureString; using TrigCompositeUtils::featureString;
using TrigCompositeUtils::roiString; using TrigCompositeUtils::roiString;
using TrigCompositeUtils::findLink; using TrigCompositeUtils::findLink;
...@@ -74,7 +73,7 @@ StatusCode PEBInfoWriterAlg::execute(const EventContext& eventContext) const { ...@@ -74,7 +73,7 @@ StatusCode PEBInfoWriterAlg::execute(const EventContext& eventContext) const {
size_t counter = 0; size_t counter = 0;
for (const Decision* previousDecision: *previousDecisionsHandle) { for (const Decision* previousDecision: *previousDecisionsHandle) {
// Get RoI // Get RoI
auto roiELInfo = findLink<TrigRoiDescriptorCollection>(previousDecision, initialRoIString()); auto roiELInfo = findLink<TrigRoiDescriptorCollection>(previousDecision, roiString());
auto roiEL = roiELInfo.link; auto roiEL = roiELInfo.link;
ATH_CHECK(roiEL.isValid()); ATH_CHECK(roiEL.isValid());
......
...@@ -7,7 +7,7 @@ from TriggerMenuMT.HLTMenuConfig.Menu import EventBuildingInfo ...@@ -7,7 +7,7 @@ from TriggerMenuMT.HLTMenuConfig.Menu import EventBuildingInfo
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import ChainStep, MenuSequence from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import ChainStep, MenuSequence
from TrigPartialEventBuilding.TrigPartialEventBuildingConf import PEBInfoWriterAlg from TrigPartialEventBuilding.TrigPartialEventBuildingConf import PEBInfoWriterAlg
from TrigPartialEventBuilding.TrigPartialEventBuildingConfig import StaticPEBInfoWriterToolCfg, RoIPEBInfoWriterToolCfg from TrigPartialEventBuilding.TrigPartialEventBuildingConfig import StaticPEBInfoWriterToolCfg, RoIPEBInfoWriterToolCfg
from DecisionHandling.DecisionHandlingConf import InputMakerForRoI, ViewCreatorInitialROITool from DecisionHandling import DecisionHandlingConf
from libpyeformat_helper import SubDetector from libpyeformat_helper import SubDetector
from AthenaCommon.CFElements import seqAND, findAlgorithm from AthenaCommon.CFElements import seqAND, findAlgorithm
from AthenaCommon.Logging import logging from AthenaCommon.Logging import logging
...@@ -28,7 +28,7 @@ def addEventBuildingSequence(chain, eventBuildType, chainDict): ...@@ -28,7 +28,7 @@ def addEventBuildingSequence(chain, eventBuildType, chainDict):
def pebInfoWriterToolGenerator(chainDict): def pebInfoWriterToolGenerator(chainDict):
return pebInfoWriterTool(chainDict['chainName'], eventBuildType) return pebInfoWriterTool(chainDict['chainName'], eventBuildType)
inputMaker = pebInputMaker(eventBuildType) inputMaker = pebInputMaker(chain, eventBuildType)
seq = MenuSequence( seq = MenuSequence(
Sequence = pebSequence(eventBuildType, inputMaker), Sequence = pebSequence(eventBuildType, inputMaker),
Maker = inputMaker, Maker = inputMaker,
...@@ -114,10 +114,15 @@ def pebInfoWriterTool(name, eventBuildType): ...@@ -114,10 +114,15 @@ def pebInfoWriterTool(name, eventBuildType):
return tool return tool
def pebInputMaker(eventBuildType): def pebInputMaker(chain, eventBuildType):
maker = InputMakerForRoI("IMpeb_"+eventBuildType) maker = DecisionHandlingConf.InputMakerForRoI("IMpeb_"+eventBuildType)
maker.RoITool = ViewCreatorInitialROITool()
maker.RoIs = "pebInputRoI_" + eventBuildType maker.RoIs = "pebInputRoI_" + eventBuildType
if len(chain.steps) == 0:
# Streamers: use initial RoI
maker.RoITool = DecisionHandlingConf.ViewCreatorInitialROITool()
else:
# Other chains: use previous RoI
maker.RoITool = DecisionHandlingConf.ViewCreatorPreviousROITool()
return maker return maker
......
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