4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from MuonSelectorTools.MuonSelectorToolsConfig
import MuonSelectionToolCfg
20 from ElectronPhotonSelectorTools.AsgElectronLikelihoodToolsConfig
import AsgElectronLikelihoodToolCfg
21 from ElectronPhotonSelectorTools.ElectronLikelihoodToolMapping
import electronLHmenu
22 from ElectronPhotonSelectorTools.LikelihoodEnums
import LikeEnum
23 from AthenaConfiguration.Enums
import LHCPeriod
25 name=
"ElectronSelTool",
26 quality = LikeEnum.VeryLoose,
27 menu=electronLHmenu.offlineMC21
if flags.GeoModel.Run >= LHCPeriod.Run3
else electronLHmenu.offlineMC20)))
29 from TrkConfig.TrkVKalVrtFitterConfig
import TrkVKalVrtFitterCfg
30 kwargs.setdefault(
"VertexFitter", result.popToolsAndMerge(
32 kwargs.setdefault(
"MinMuonPt", 4000)
33 kwargs.setdefault(
"MinElecPt", 6000)
34 vtx_tool = CompFactory.DerivationFramework.FourLeptonVertexingAlgorithm(name , **kwargs)
35 result.addEventAlgo(vtx_tool, primary =
True)
38 if __name__ ==
"__main__":
39 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
41 args = flags.fillFromArgs()
43 flags.Input.Files = args.input
44 flags.Concurrency.NumThreads=args.threads
45 flags.Concurrency.NumConcurrentEvents=args.threads
50 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
52 msgService = cfg.getService(
'MessageSvc')
53 msgService.Format =
"S:%s E:%e % F%128W%S%7W%R%T %0W%M"
55 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
59 sc = cfg.run(flags.Exec.MaxEvents)
60 if not sc.isSuccess():