18import modularAnalysis
as ma
20from variables
import variables
23parser = argparse.ArgumentParser()
24parser.add_argument(
'--belle1', action=
'store_true',
25 help=
'Belle 1 data analysis.')
26arguments = parser.parse_args()
29analysis_path = basf2.create_path()
34 basf2.find_file(
'analysis/mdstBelle1_exp65_charged.root',
'validation'),
37 ma.inputMdst(filename=basf2.find_file(
"mdst16.root",
"validation"),
41gamma_list =
'gamma:all'
42ma.fillParticleList(gamma_list,
'', path=analysis_path)
46mass_cut = f
'abs(dM) < {mass_window}'
47ma.cutAndCopyList(
'gamma:pi0', gamma_list,
'E > 0.02', path=analysis_path)
50ma.reconstructDecay(
'pi0:gamma -> gamma:pi0 gamma:pi0', mass_cut,
53 payload_name_suffix =
'Belle1'
54 tag = ma.getAnalysisGlobaltagB2BII()
56 payload_name_suffix =
'Belle2Release5'
57 tag = ma.getAnalysisGlobaltag()
61basf2.conditions.append_globaltag(tag)
63ma.lowEnergyPi0Identification(pi0_list,
'gamma:pi0', payload_name_suffix,
67variables.addAlias(
'identification',
'extraInfo(lowEnergyPi0Identification)')
68pi0_vars = vc.kinematics + [
'InvM',
'identification']
71filename =
'pi0_identification.root'
72ma.variablesToNtuple(
'pi0:gamma', pi0_vars, filename=filename, treename=
't1', path=analysis_path)
75analysis_path.add_module(
'Progress')
78basf2.process(analysis_path)
81print(basf2.statistics)
def convertBelleMdstToBelleIIMdst(inputBelleMDSTFile, applySkim=True, saveResultExtraInfo=False, useBelleDBServer=None, convertBeamParameters=True, generatorLevelReconstruction=False, generatorLevelMCMatching=False, path=None, entrySequences=None, matchType2E9oE25Threshold=-1.1, enableNisKsFinder=True, HadronA=True, HadronB=True, enableRecTrg=False, enableEvtcls=True, SmearTrack=2, enableLocalDB=True, convertNbar=False)