6 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InViewRecoCA
7 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys
import getTrigEgammaKeys
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
12 return 'precision' + (
'HI' if ion
is True else '') +
'CaloPhoton'
16 """ Creates PrecisionCalo sequence """
19 hiInfo =
'HI' if ion
else ''
21 InViewRoIs=
"PrecisionCaloRoIs"
22 roiTool = CompFactory.ViewCreatorPreviousROITool()
26 roiTool.RoISGKey =
"HLT_Roi_FastElectron"
28 recoAcc = InViewRecoCA(
tag(ion),InViewRoIs=InViewRoIs, RoITool = roiTool, RequireParentView =
True, isProbe=is_probe_leg)
30 from TriggerMenuMT.HLT.Photon.PrecisionCaloRecoSequences
import precisionCaloRecoSequence
33 selAcc = SelectionCA(
'gPrecisionCaloMenuSequence'+hiInfo, isProbe=is_probe_leg)
42 from TriggerMenuMT.HLT.HeavyIon.HeavyIonMenuSequences
import egammaFSHIEventShapeMakerCfg
45 selAcc.mergeReco(recoAcc, upSequenceCA=pedestalCA)
47 hypoAlg = CompFactory.TrigEgammaPrecisionCaloHypoAlg(
'Photon' +
tag(ion) +
'Hypo')
49 hypoAlg.CaloClusters = TrigEgammaKeys.precisionPhotonCaloClusterContainer
51 selAcc.addHypoAlgo(hypoAlg)
53 from TrigEgammaHypo.TrigEgammaPrecisionCaloHypoTool
import TrigEgammaPrecisionCaloHypoToolFromDict
55 return MenuSequence(flags, selAcc, HypoToolGen=TrigEgammaPrecisionCaloHypoToolFromDict)