17 Function to find input directory with Tile Calorimeter input data files: calibrations, ...
21 project -- data project
22 suffix -- directory suffix
23 skipBadFiles -- skip known bad files
27 log = logging.getLogger(
'TileInputFiles.getInputDirectory' )
33 yr={ 2023:441536, 2022:408681, 2021:387034, 2020:374260,
34 2019:367983, 2018:342531, 2017:314451, 2016:288032, 2015:248505,
35 2014:224307, 2013:216705, 2012:194688, 2011:171194, 2010:142682,
36 2009:99717, 2008:35430, 2007:0}
37 for year,beg
in yr.items():
41 if stream
or project
or suffix:
43 stream =
'physics_Main'
44 log.warning(
'%s is not set up and will be used: %s' ,
'Run stream', stream)
45 elif stream ==
'Tile':
46 stream =
'calibration_Tile'
48 if 'calibration' in stream
and 'Tile' not in stream:
49 project = f
'data{year%100}_calib'
51 project = f
'data{year%100}_13p6TeV'
52 log.warning(
'%s is not set up and will be used: %s' ,
'Data project', project)
53 elif 'data' not in project:
54 project = f
'data{year%100}_{project}'
56 if stream ==
'physics_Main' or stream ==
'physics_MinBias' or stream.startswith(
'calibration'):
60 log.warning(
'%s is not set up and will be used: %s' ,
'Directory suffix', suffix)
63 directory = f
'/eos/atlas/atlastier0/rucio/{project}/{stream}/{run}/{project}.{run}.{stream}.{suffix}'
66 directory = f
'/eos/atlas/atlascerngroupdisk/det-tile/online/{year}/daq'