19import modularAnalysis
as ma
21import stdV0s
as stdV0s
22import ksSelector
as ksSelector
24output_file =
'output.root'
27my_path = b2.create_path()
30ma.inputMdst(filename=b2.find_file(
'B02JpsiKs_Jpsi2mumu_Ks2pipi.root',
'examples',
False),
36b2.conditions.prepend_globaltag(ma.getAnalysisGlobaltag())
44 output_label_name=
'custom',
45 extraInfoName_V0Selector=
'V0_mva',
46 extraInfoName_LambdaVeto=
'Lam_mva',
47 useCustomThreshold=
True,
48 threshold_V0Selector=0.91,
49 threshold_LambdaVeto=0.19,
50 identifier_Ks=
"Ks_LGBM_V0Selector",
51 identifier_vLambda=
"Ks_LGBM_LambdaVeto",
55ma.matchMCTruth(list_name=
'K_S0:custom', path=my_path)
58vars = vc.kinematics + vc.mc_kinematics + vc.mc_truth
59vars += [
'extraInfo(V0_mva)']
60vars += [
'extraInfo(Lam_mva)']
63ma.variablesToNtuple(
'K_S0:custom',
ksSelector(particleListName, identifier_Ks="Ks_LGBM_V0Selector_MC16", identifier_vLambda="Ks_LGBM_LambdaVeto_MC16", output_label_name='', extraInfoName_V0Selector='KsSelector_V0Selector', extraInfoName_LambdaVeto='KsSelector_LambdaVeto', useCustomThreshold=False, threshold_V0Selector=0.92, threshold_LambdaVeto=0.11, path=None)
stdKshorts(prioritiseV0=True, fitter="TreeFit", path=None, updateAllDaughters=False, writeOut=False, addSuffix=False)