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