ATLAS Offline Software
Loading...
Searching...
No Matches
FastPhotonMenuSequences Namespace Reference

Functions

 fastPhotonSequenceGenCfg (flags, is_probe_leg=False)

Function Documentation

◆ fastPhotonSequenceGenCfg()

FastPhotonMenuSequences.fastPhotonSequenceGenCfg ( flags,
is_probe_leg = False )
Creates secpond step photon sequence

Definition at line 10 of file FastPhotonMenuSequences.py.

10def fastPhotonSequenceGenCfg(flags,is_probe_leg=False):
11 """Creates secpond step photon sequence"""
12
13 TrigEgammaKeys = getTrigEgammaKeys(flags)
14
15 InViewRoIs = "EMIDRoIs"
16 # Spawn View on SuperRoI encompassing all clusters found within the L1 RoI
17 roiTool = CompFactory.ViewCreatorCentredOnClusterROITool()
18 roiTool.AllowMultipleClusters = False # If True: SuperROI mode. If False: highest eT cluster in the L1 ROI
19 roiTool.RoisWriteHandleKey = TrigEgammaKeys.fastPhotonRoIContainer
20 # not running the tracking here, so do not need to set this size
21 # from the ID Trigger configuration, however, if we want overlap
22 # of the Rois then we would need to use the electron instance size
23 # for consistency
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)