17 if flags.Detector.GeometryITk:
18 kwargs[
"doTrackMatching"] =
True
19 kwargs[
"doCookieCutting"] =
True
21 if "forwardelectronIsEMselectors" not in kwargs:
24 "LooseForwardElectronSelector",
25 egammaPID.ForwardElectronIDLoose)
28 "MediumForwardElectronSelector",
29 egammaPID.ForwardElectronIDMedium)
32 "TightForwardElectronSelector",
33 egammaPID.ForwardElectronIDTight)
35 kwargs.setdefault(
"forwardelectronIsEMselectors",
36 [LooseFwdElectronSelector.popPrivateTools(),
37 MediumFwdElectronSelector.popPrivateTools(),
38 TightFwdElectronSelector.popPrivateTools()])
40 "forwardelectronIsEMselectorResultNames",
41 [
"Loose",
"Medium",
"Tight"])
43 acc.merge(LooseFwdElectronSelector)
44 acc.merge(MediumFwdElectronSelector)
45 acc.merge(TightFwdElectronSelector)
47 if "ObjectQualityTool" not in kwargs
and not flags.Common.isOnline:
49 kwargs[
"ObjectQualityTool"] = egOQ.popPrivateTools()
52 kwargs.setdefault(
"ElectronOutputName",
53 flags.Egamma.Keys.Output.ForwardElectrons)
54 kwargs.setdefault(
"TopoClusterName",
55 flags.Egamma.Keys.Internal.ForwardTopoClusters)
56 kwargs.setdefault(
"ClusterContainerName",
57 flags.Egamma.Keys.Output.ForwardClusters)
58 fwdAlg = CompFactory.egammaForwardBuilder(name, **kwargs)
60 acc.addEventAlgo(fwdAlg)