10 from PyUtils.MetaReader
import read_metadata
12 from AthenaCommon.Logging
import logging
13 msg = logging.getLogger(
'MetaReaderPeeker')
17 from AthenaCommon.AthenaCommonFlags
import athenaCommonFlags
18 inFiles = athenaCommonFlags.FilesInput()
20 from AthenaCommon.AthenaCommonFlags
import athenaCommonFlags
21 if athenaCommonFlags.isOnline()
and (
not inFiles
or all([f.strip() ==
'' for f
in inFiles])):
25 'eventTypes':[
'IS_DATA',
'IS_ATLAS',
'IS_PHYSICS'],
30 msg.info(
"No input files specified yet! Cannot do anything.")
34 for inFile
in inFiles:
36 metadatas =
read_metadata(inFile, mode=
'peeker', promote=
True, ignoreNonExistingLocalFiles=
True)
38 for foundFile, metadata
in metadatas.items():
40 metadata[
'file_name'] = inFile
41 if metadata.get(
"nentries"):