3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
10 if "TrigDecisionTool" not in kwargs:
11 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
12 kwargs.setdefault(
"TrigDecisionTool", acc.getPrimaryAndMerge(
15 if "TrackSelectionTool" not in kwargs:
16 from InDetConfig.InDetTrackSelectionToolConfig
import InDetTrackSelectionTool_LoosePrimary_Cfg
17 kwargs.setdefault(
"TrackSelectionTool", acc.getPrimaryAndMerge(
20 alg = CompFactory.ZdcNtuple(name, **kwargs)
27 if __name__ ==
'__main__':
29 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
30 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
39 zdcConfig =
"LHCf2022",
47 enableOutputTree =
True,
48 enableOutputSamples =
False,
51 enableClusters =
True,
52 writeOnlyTriggers =
True))
55 acc.addService(CompFactory.THistSvc(Output = [
"ANALYSIS DATAFILE='NTUP.root' OPT='RECREATE'"]))
57 acc.printConfig(withDetails=
True)
59 with open(
"config.pkl",
"wb")
as f:
62 if status.isFailure():