10def fastPhotonSequenceGenCfg(flags,is_probe_leg=False):
11 """Creates secpond step photon sequence"""
12
13 TrigEgammaKeys = getTrigEgammaKeys(flags)
14
15 InViewRoIs = "EMIDRoIs"
16
17 roiTool = CompFactory.ViewCreatorCentredOnClusterROITool()
18 roiTool.AllowMultipleClusters = False
19 roiTool.RoisWriteHandleKey = TrigEgammaKeys.fastPhotonRoIContainer
20
21
22
23
24 roiTool.RoIEtaWidth = 0.05
25 roiTool.RoIPhiWidth = 0.10
26 reco = InViewRecoCA("EMPhoton",InViewRoIs=InViewRoIs, RoITool = roiTool, RequireParentView = True, isProbe=is_probe_leg)
27
28
29 from TriggerMenuMT.HLT.Photon.FastPhotonRecoSequences import fastPhotonRecoSequence
30 reco.mergeReco(fastPhotonRecoSequence(flags, InViewRoIs, "FastPhotonRecoSequence"))
31
32 thePhotonHypo = CompFactory.TrigEgammaFastPhotonHypoAlg()
33 thePhotonHypo.Photons = TrigEgammaKeys.fastPhotonContainer
34 thePhotonHypo.RunInView=True
35
36 from TrigEgammaHypo.TrigEgammaFastPhotonHypoTool import TrigEgammaFastPhotonHypoToolFromDict
37
38 selAcc = SelectionCA('FastPhotonMenuSequence',isProbe=is_probe_leg)
39 selAcc.mergeReco(reco)
40 selAcc.addHypoAlgo(thePhotonHypo)
41
42 return MenuSequence(flags,selAcc, HypoToolGen=TrigEgammaFastPhotonHypoToolFromDict)