3 from AthenaCommon.Logging
import logging
4 logging.getLogger().
info(
"Importing %s",__name__)
5 log = logging.getLogger(__name__)
7 from TriggerMenuMT.HLT.Config.ChainConfigurationBase
import ChainConfigurationBase
9 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from TrigStreamerHypo.TrigStreamerHypoConfig
import StreamerHypoToolGenerator
11 from TrigInDetConfig.utils
import getFlagsForActiveConfig
12 from TrigInDetConfig.TrigInDetConfig
import trigInDetFastTrackingCfg
13 from ..Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA, InViewRecoCA
14 from TriggerMenuMT.HLT.CommonSequences.RejectSequences
import RejectSequence
21 if(signature ==
"FS"):
22 _signature =
"beamSpotFS"
24 beamspotSequence = InViewRecoCA(
'beamspotSequence_'+signature)
28 roisKey=beamspotSequence.inputMaker().InViewRoIs,
29 signatureName=_signature))
31 from TrigT2BeamSpot.T2VertexBeamSpotConfig
import T2VertexBeamSpot_activeAllTE
33 vertexAlg.TrackCollection = flagsWithTrk.Tracking.ActiveConfig.trkTracks_FTF
36 beamspotSequence.addRecoAlgo(vertexAlg)
37 beamspotViewsSequence = SelectionCA(
'beamspotViewsSequence'+_signature)
38 beamspotViewsSequence.mergeReco(beamspotSequence)
42 beamspotHypoAlg = CompFactory.TrigStreamerHypoAlg(
"BeamspotHypoAlg_"+_signature)
43 beamspotHypoAlg.RuntimeValidation =
False
45 beamspotViewsSequence.addHypoAlgo(beamspotHypoAlg)
48 beamspotHypoToolGen = StreamerHypoToolGenerator
50 return MenuSequence( flags,
51 beamspotViewsSequence,
52 HypoToolGen = beamspotHypoToolGen )
56 signature =
"BeamspotJet"
59 inputMakerAlg = CompFactory.InputMakerForRoI(
"IM_beamspotJet_"+signature)
60 inputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
63 from TrigT2BeamSpot.T2VertexBeamSpotConfig
import T2VertexBeamSpot_activeAllTE
65 vertexAlg.TrackCollection = flags.Trigger.InDetTracking.fullScan.trkTracks_FTF
68 beamspotSequence = InEventRecoCA(
'beamspotJetSequence_'+signature,inputMaker=inputMakerAlg)
69 beamspotSequence.addRecoAlgo(vertexAlg)
70 beamspotViewsSequence = SelectionCA(
'beamspotJetViewsSequence'+signature)
71 beamspotViewsSequence.mergeReco(beamspotSequence)
74 HypoName =
"BeamspotHypoAlg_"+signature
86 ChainConfigurationBase.__init__(self,chainDict)
92 log.debug(
"Assembling chain for %s", self.chainName)
96 if self.chainPart[
'beamspotChain'] !=
'':
97 stepName = f
"Step4_{self.jc_name}_beamspotJet"
98 chainSteps = [self.getStep(flags, stepName, [getBeamspotVtxSequenceGenCfg])]
101 key = self.chainPart[
'addInfo'][0] +
"_" + self.chainPart[
'l2IDAlg'][0]
103 steps=stepDictionary[key]
105 chainstep = getattr(self, step)(flags)
106 chainSteps+=[chainstep]
108 myChain = self.buildChain(chainSteps)
116 "allTE_trkfast":[
'getAllTEStep'],
117 "trkFS_trkfast":[
'getTrkFSStep'],
119 return stepDictionary
125 return self.getStep(flags,
"trkFS_trkfast",[allTE_trkfastSequenceGenCfg],signature=
"FS")
131 return self.getStep(flags,
"allTE_trkfast",[allTE_trkfastSequenceGenCfg],signature=
"beamSpot")