6from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InViewRecoCA
16 """ Creates PrecisionCalo sequence """
17 TrigEgammaKeys = getTrigEgammaKeys(flags, variant, ion=ion)
18 hiInfo =
'HI' if ion
else ''
20 InViewRoIs=
"PrecisionCaloRoIs"+ variant
21 roiTool = CompFactory.ViewCreatorPreviousROITool()
25 roiTool.RoISGKey =
"HLT_Roi_FastElectron"
27 recoAcc = InViewRecoCA(
tag(ion)+variant,InViewRoIs=InViewRoIs, RoITool = roiTool, RequireParentView =
True, isProbe=is_probe_leg)
29 from TriggerMenuMT.HLT.Electron.PrecisionCaloRecoSequences
import precisionCaloRecoSequence
30 recoAcc.mergeReco(precisionCaloRecoSequence(flags, InViewRoIs,
'ePrecisionCaloRecoSequence'+hiInfo+variant, ion=ion, variant=variant))
32 selAcc = SelectionCA(
'ePrecisionCaloMenuSequence'+hiInfo+variant, isProbe=is_probe_leg)
40 from TriggerMenuMT.HLT.HeavyIon.HeavyIonMenuSequences
import egammaFSHIEventShapeMakerCfg
41 pedestalCA = egammaFSHIEventShapeMakerCfg(flags)
43 selAcc.mergeReco(recoAcc, upSequenceCA=pedestalCA)
45 hypoAlg = CompFactory.TrigEgammaPrecisionCaloHypoAlg(
'Electron' +
tag(ion) +
'Hypo' + variant)
47 hypoAlg.CaloClusters = TrigEgammaKeys.precisionElectronCaloClusterContainer
49 selAcc.addHypoAlgo(hypoAlg)
51 from TrigEgammaHypo.TrigEgammaPrecisionCaloHypoTool
import TrigEgammaPrecisionCaloHypoToolFromDict
53 return MenuSequence(flags, selAcc, HypoToolGen=TrigEgammaPrecisionCaloHypoToolFromDict)