ATLAS Offline Software
Loading...
Searching...
No Matches
HitDVConfiguration.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaCommon.Logging import logging
4
5logging.getLogger().info("Importing %s",__name__)
6log = logging.getLogger(__name__)
7
8from TrigCaloRec.TrigCaloRecConfig import jetmetTopoClusteringCfg
9from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InEventRecoCA
10from AthenaCommon.CFElements import seqAND
11from AthenaConfiguration.ComponentFactory import CompFactory
12from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
13
14
15
17
18 topoClusterSequence = jetmetTopoClusteringCfg(flags,RoIs = '')
19
20 from TrigStreamerHypo.TrigStreamerHypoConfig import StreamerHypoToolGenerator
21
22 from ..Jet.JetRecoSequencesConfig import JetRecoDataDeps, JetRecoCfg
23 from ..Jet.JetRecoCommon import extractRecoDict
24 from ..Menu.SignatureDicts import JetChainParts_Default
25
26 jetRecoDict = extractRecoDict([JetChainParts_Default])
27 jetRecoDict.update(
28 {'recoAlg': 'a4', 'constitType': 'tc', 'clusterCalib': 'em', 'constitMod': '', 'trkopt': 'notrk'}
29 )
30
31 jetDefDict = JetRecoDataDeps(flags, **jetRecoDict)
32 JetCA = JetRecoCfg(flags, **jetDefDict)
33 HypoAlg = CompFactory.TrigStreamerHypoAlg("UTTJetRecDummyStream")
34
35 from TrigT2CaloCommon.CaloDef import clusterFSInputMaker
36 IMalg = clusterFSInputMaker()
37
38 selAcc = SelectionCA('UTTJetRecoSeq')
39 reco = InEventRecoCA('UTTJetRecoStep',inputMaker=IMalg)
40
41 acc = ComponentAccumulator()
42 jetseq = seqAND('UTTJetPartSeq')
43 acc.addSequence(jetseq)
44 acc.merge(topoClusterSequence)
45 acc.merge(JetCA)
46
47 reco.mergeReco(acc)
48
49 selAcc.mergeReco(reco)
50 selAcc.addHypoAlgo(HypoAlg)
51
52 return MenuSequence(flags,
53 selAcc,
54 HypoToolGen = StreamerHypoToolGenerator
55 )
56
57
59 from TrigLongLivedParticlesHypo.TrigHitDVHypoConfig import TrigHitDVHypoToolFromDict
60 from TrigLongLivedParticlesHypo.TrigHitDVHypoConfig import TrigHitDVHypoAlgCfg
61
62# Sequence = seqAND("HitDVEmptyStep",[DummyInputMakerAlg]),
63
64 selAcc = SelectionCA('HitDVSeq')
65
66
67 theHitDVHypo = TrigHitDVHypoAlgCfg(flags, "HitDV")
68
69
70
71 DummyInputMakerAlg = CompFactory.InputMakerForRoI( "IM_HitDV_HypoOnlyStep" )
72 DummyInputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
73 reco = InEventRecoCA('HitDVEmptyStep',inputMaker=DummyInputMakerAlg)
74
75 selAcc.mergeReco(reco)
76 selAcc.mergeHypo(theHitDVHypo)
77
78
79 return MenuSequence( flags,
80 selAcc,
81 HypoToolGen = TrigHitDVHypoToolFromDict
82 )