36if __name__ ==
"__main__":
37 variables = [
'p',
'pt',
'pz',
'phi',
41 'chiProb',
'dr',
'dz',
'dphi',
42 'daughter(0, dr)',
'daughter(1, dr)',
'daughter(0, dz)',
'daughter(1, dz)',
43 'daughter(0, dphi)',
'daughter(1, dphi)',
44 'daughter(0, chiProb)',
'daughter(1, chiProb)',
'daughter(2, chiProb)',
'daughter(2, M)',
45 'daughter(0, atcPIDBelle(3,2))',
'daughter(1, atcPIDBelle(3,2))',
47 'daughter(2, daughter(0, E))',
'daughter(2, daughter(1, E))',
48 'daughter(2, daughter(0, clusterLAT))',
'daughter(2, daughter(1, clusterLAT))',
49 'daughter(2, daughter(0, clusterHighestE))',
'daughter(2, daughter(1, clusterHighestE))',
50 'daughter(2, daughter(0, clusterNHits))',
'daughter(2, daughter(1, clusterNHits))',
51 'daughter(2, daughter(0, clusterE9E25))',
'daughter(2, daughter(1, clusterE9E25))',
52 'daughter(2, daughter(0, minC2TDist))',
'daughter(2, daughter(1, minC2TDist))',
56 general_options = basf2_mva.GeneralOptions()
57 general_options.m_datafiles = basf2_mva.vector(
"train_data.root")
58 general_options.m_identifier =
"MVASideband"
59 general_options.m_treename =
"tree"
60 general_options.m_variables = basf2_mva.vector(*variables)
61 general_options.m_target_variable =
"isSignal"
63 fastbdt_options = basf2_mva.FastBDTOptions()
65 meta_options = basf2_mva.MetaOptions()
66 meta_options.m_use_sideband_subtraction =
True
67 meta_options.m_sideband_variable =
'sideband'
68 meta_options.m_sideband_mc_files = basf2_mva.vector(
"train_mc.root")
70 basf2_mva.teacher(general_options, fastbdt_options, meta_options)