13from ..Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA, InViewRecoCA
21 if(signature ==
"FS"):
22 _signature =
"beamSpotFS"
24 beamspotSequence = InViewRecoCA(
'beamspotSequence_'+signature)
26 flagsWithTrk = getFlagsForActiveConfig(flags, _signature, log)
27 beamspotSequence.mergeReco(trigInDetFastTrackingCfg(flagsWithTrk,
28 roisKey=beamspotSequence.inputMaker().InViewRoIs,
29 signatureName=_signature))
31 from TrigT2BeamSpot.T2VertexBeamSpotConfig
import T2VertexBeamSpot_activeAllTE
32 vertexAlg = T2VertexBeamSpot_activeAllTE(flags,
"vertex_"+_signature )
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
64 vertexAlg = T2VertexBeamSpot_activeAllTE(flags,
"vertex_"+signature )
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
75 msca = RejectSequence(flags, HypoName, beamspotViewsSequence)