20 data_path = sys.argv[1]
22 data_path =
"root_files/training/*.root"
24 identifier = sys.argv[2]
27 identifier =
"KLM_fBDT_10xbkg100k.xml"
34 training_string = (
'basf2_mva_teacher --datafiles {data_path} --treename KLMdata --identifier {identifier} ' +
35 '--variable "KLMnLayer" "KLMnInnermostlayer" "KLMglobalZ" "KLMtime" "KLMdistToNextCl" ' +
36 '"KLMenergy" "KLMTrackSepDist" "KLMInitialtrackSepAngle" "KLMTrackRotationAngle" ' +
37 '"KLMTrackSepAngle" "KLMhitDepth" "KLMECLenergy" "KLMECLE9oE25" "KLMECLtiming" ' +
38 '"KLMECLmintrackDist" "KLMECLZMVA" "KLMECLZ40" "KLMECLZ51" --target_variable isSignal ' +
39 '--method FastBDT --nTrees 400 --nCutLevels 8 --nLevels 4').format(data_path=data_path, identifier=identifier)
41 os.system(training_string)
45 (
'basf2_mva_upload --identifier {identifier} --db_identifier {identifier_db} ' +
46 '--begin_experiment {ex_b} --end_experiment {ex_e} --begin_run {run_b} --end_run {run_e}').format(
47 identifier=identifier,
48 identifier_db=identifier.split(
".xml")[0],