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
No related merge requests found
......@@ -18,7 +18,6 @@ using TrigCompositeUtils::createAndStore;
using TrigCompositeUtils::decisionIDs;
using TrigCompositeUtils::linkToPrevious;
using TrigCompositeUtils::newDecisionIn;
using TrigCompositeUtils::initialRoIString;
using TrigCompositeUtils::featureString;
using TrigCompositeUtils::roiString;
using TrigCompositeUtils::findLink;
......@@ -74,7 +73,7 @@ StatusCode PEBInfoWriterAlg::execute(const EventContext& eventContext) const {
size_t counter = 0;
for (const Decision* previousDecision: *previousDecisionsHandle) {
// Get RoI
auto roiELInfo = findLink<TrigRoiDescriptorCollection>(previousDecision, initialRoIString());
auto roiELInfo = findLink<TrigRoiDescriptorCollection>(previousDecision, roiString());
auto roiEL = roiELInfo.link;
ATH_CHECK(roiEL.isValid());
......
......@@ -7,7 +7,7 @@ from TriggerMenuMT.HLTMenuConfig.Menu import EventBuildingInfo
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import ChainStep, MenuSequence
from TrigPartialEventBuilding.TrigPartialEventBuildingConf import PEBInfoWriterAlg
from TrigPartialEventBuilding.TrigPartialEventBuildingConfig import StaticPEBInfoWriterToolCfg, RoIPEBInfoWriterToolCfg
from DecisionHandling.DecisionHandlingConf import InputMakerForRoI, ViewCreatorInitialROITool
from DecisionHandling import DecisionHandlingConf
from libpyeformat_helper import SubDetector
from AthenaCommon.CFElements import seqAND, findAlgorithm
from AthenaCommon.Logging import logging
......@@ -28,7 +28,7 @@ def addEventBuildingSequence(chain, eventBuildType, chainDict):
def pebInfoWriterToolGenerator(chainDict):
return pebInfoWriterTool(chainDict['chainName'], eventBuildType)
inputMaker = pebInputMaker(eventBuildType)
inputMaker = pebInputMaker(chain, eventBuildType)
seq = MenuSequence(
Sequence = pebSequence(eventBuildType, inputMaker),
Maker = inputMaker,
......@@ -114,10 +114,15 @@ def pebInfoWriterTool(name, eventBuildType):
return tool
def pebInputMaker(eventBuildType):
maker = InputMakerForRoI("IMpeb_"+eventBuildType)
maker.RoITool = ViewCreatorInitialROITool()
def pebInputMaker(chain, eventBuildType):
maker = DecisionHandlingConf.InputMakerForRoI("IMpeb_"+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
......
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