13from tools
import addLine, getBelleUrl_data, getMaxRunNo_data, readConfigFile_data
20 sys.exit(
'Need one argument: path of config file with job parameters !')
23runsPerJob, expNoList, skimTypeList, dataTypeList, belleLevelList =\
27if not os.path.exists(
'tables'):
32tableName =
'tables/lookUpTable_data_' + str(runsPerJob) +
'.txt'
33f = open(tableName,
'w')
37for expNo
in expNoList:
39 absMaxRunNo = getMaxRunNo_data(expNo)
40 if absMaxRunNo
is None:
41 sys.exit(
'ExpNo ' + str(expNo) +
' not found. Does it exist ?')
44 print(
'For expNo ' + str(expNo) +
' max runNo is ' + str(absMaxRunNo))
46 for skimType
in skimTypeList:
47 for dataType
in dataTypeList:
48 for belleLevel
in belleLevelList:
51 while minRunNo < absMaxRunNo:
53 maxRunNo = minRunNo + (runsPerJob - 1)
55 thisUrl = getBelleUrl_data(expNo, minRunNo, maxRunNo,
56 skimType, dataType, belleLevel)
59 print(
'Checking up url: ' + thisUrl)
61 addLine(f, [expNo, skimType, dataType,
62 belleLevel, minRunNo, maxRunNo])
64 minRunNo = maxRunNo + 1