177 """Check overlay metadata"""
178 if flags.Overlay.ByteStream:
179 files = flags.Input.Files
180 filesPileup = flags.Input.SecondaryFiles
182 files = flags.Input.SecondaryFiles
183 filesPileup = flags.Input.Files
186 signalMetadata =
GetFileMD(files, maxLevel=
"full")
187 signalSimulationMetadata = signalMetadata.get(
"/Simulation/Parameters", {})
188 signalTagInfoMetadata = signalMetadata.get(
"/TagInfo", {})
194 logger.info(
"Simulation metadata check not done due to no inputs")
197 if not flags.Overlay.DataOverlay
and filesPileup:
198 pileupMetaDataCheck =
GetFileMD(filesPileup, maxLevel=
"full")
199 pileupDigitizationMetadata = pileupMetaDataCheck.get(
"/Digitization/Parameters", {})
200 pileupSimulationMetadata = pileupMetaDataCheck.get(
"/Simulation/Parameters", {})
201 pileupTagInfoMetadata = pileupMetaDataCheck.get(
"/TagInfo", {})
203 logger.info(
"Checking Presampled pile-up metadata against Signal Simulation metadata...")
206 logger.info(
"Completed all checks against Presampled pile-up Simulation metadata.")
208 if pileupDigitizationMetadata: