19import modularAnalysis
as ma
20import stdV0s
as stdV0s
21import ksSelector
as ksSelector
24my_path = b2.create_path()
27ma.inputMdst(filename=b2.find_file(
'ccbar_background.root',
'examples',
False),
32ma.matchMCTruth(list_name=
'K_S0:merged', path=my_path)
36ma.cutAndCopyLists(
'K_S0:V0Selector',
'K_S0:merged', cut=
'mcPDG!=3122', path=my_path)
39ma.cutAndCopyLists(
'K_S0:LambdaVeto',
'K_S0:merged', cut=
'isSignal==1 or abs(mcPDG)==3122', path=my_path)
45vars = [
'ks_selector_info',
'isNotContinuumEvent',
'isSignal']
48ma.variablesToNtuple(
'K_S0:V0Selector',
50 filename=
'KsSelector_train_V0Selector.root',
54ma.variablesToNtuple(
'K_S0:LambdaVeto',
56 filename=
'KsSelector_train_LambdaVeto.root',
61b2.process(my_path, max_event=10000)
def add_variable_collection()
def stdKshorts(prioritiseV0=True, fitter='TreeFit', path=None, updateAllDaughters=False, writeOut=False)