9 from ROOT
import Belle2
11 if 'BELLE2_VALIDATION_DATA_DIR' not in os.environ:
16 for data_file
in glob.glob(os.environ[
'BELLE2_VALIDATION_DATA_DIR'] +
'/rawdata/*HLT?.*.root'):
17 data_type = os.path.basename(data_file).split(
'.')[0]
18 exp_number = os.path.basename(data_file).split(
'.')[1]
19 run_number = os.path.basename(data_file).split(
'.')[2]
20 print(
"--> Testing reconstruction on: ", data_type, exp_number, run_number)
21 assert(0 == subprocess.check_call([
'basf2',
'-n',
'10',
'-i', data_file, steering, data_type]))