51 """Fill default overlay flags for testing"""
53 flags.Digitization.EnableTruth =
False
55 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultConditionsTags
56 from AthenaConfiguration.Enums
import ProductionStep
57 flags.Common.ProductionStep = ProductionStep.Overlay
59 flags.Input.isMC =
False
60 flags.Input.Files = defaultTestFiles.HITS_DATA_OVERLAY
61 flags.Input.SecondaryFiles = defaultTestFiles.RAW_BKG
62 flags.Output.RDOFileName =
"dataOverlayRDO.pool.root"
63 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN2_DATA
64 flags.IOVDb.DatabaseInstance =
"CONDBR2"
65 flags.Overlay.DataOverlay =
True
66 flags.Overlay.ByteStream =
True
67 from Campaigns
import DataOverlayPPTest
70 if args.run
is LHCPeriod.Run2:
71 flags.Input.Files = defaultTestFiles.RDO_BKG_RUN2
72 flags.Input.SecondaryFiles = defaultTestFiles.HITS_RUN2
73 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN2_MC
74 from Campaigns
import MC20e
76 elif args.run
is LHCPeriod.Run3:
77 flags.Input.Files = defaultTestFiles.RDO_BKG_RUN3
78 flags.Input.SecondaryFiles = defaultTestFiles.HITS_RUN3
79 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
80 from Campaigns
import MC23a
82 elif args.run
is LHCPeriod.Run4:
83 flags.Input.Files = defaultTestFiles.RDO_BKG_RUN4
84 flags.Input.SecondaryFiles = defaultTestFiles.HITS_RUN4
85 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN4_MC
86 from Campaigns
import PhaseIIPileUp200
89 raise ValueError(
"Run not supported")
90 flags.Input.MCChannelNumber =
GetFileMD(flags.Input.SecondaryFiles, allowEmpty=
False).
get(
"mc_channel_number", 0)
91 flags.Output.RDOFileName =
"mcOverlayRDO.pool.root"
92 flags.Overlay.DataOverlay =
False
95 if args.output ==
'None':
96 flags.Output.RDOFileName =
''
98 flags.Output.RDOFileName = args.output
101 flags.Output.RDO_SGNLFileName = args.outputSig
103 if 'detectors' in args
and args.detectors:
104 detectors = args.detectors
108 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
113 from OverlayConfiguration.OverlayMetadata
import overlayMetadataCheck