15import modularAnalysis
as ma
20os.environ[
'PGUSER'] =
'g0db'
22b2.conditions.prepend_globaltag(ma.getAnalysisGlobaltag())
25path = b2.create_path()
30 'analysis/mdstBelle1_exp65_charged.root',
36 enableNisKsFinder=
False,
41ma.setAnalysisConfigParams({
'mcMatchingVersion':
'Belle'}, path)
45particles = fei.get_default_channels()
48configuration = fei.config.FeiConfiguration(prefix=
'FEI_B2BII_light-2012-minos',
49 training=
False, monitor=
False, cache=0)
52feistate = fei.get_path(particles, configuration)
55path.add_path(feistate.path)
58path.add_module(
'MCMatcherParticles', listName=
'B+:generic', looseMCMatching=
True)
59path.add_module(
'MCMatcherParticles', listName=
'B+:semileptonic', looseMCMatching=
True)
60path.add_module(
'MCMatcherParticles', listName=
'B0:generic', looseMCMatching=
True)
61path.add_module(
'MCMatcherParticles', listName=
'B0:semileptonic', looseMCMatching=
True)
64ma.variablesToNtuple(
'B+:generic',
68 'extraInfo(decayModeID)',
69 'extraInfo(uniqueSignal)',
70 'extraInfo(SignalProbability)',
72 filename=
'B_charged_hadronic.root',
74ma.variablesToNtuple(
'B+:semileptonic',
75 [
'cosThetaBetweenParticleAndNominalB',
77 'extraInfo(decayModeID)',
78 'extraInfo(uniqueSignal)',
79 'extraInfo(SignalProbability)',
80 'isSignalAcceptMissingNeutrino'],
81 filename=
'B_charged_semileptonic.root',
84ma.variablesToNtuple(
'B0:generic',
88 'extraInfo(decayModeID)',
89 'extraInfo(uniqueSignal)',
90 'extraInfo(SignalProbability)',
92 filename=
'B_mixed_hadronic.root',
94ma.variablesToNtuple(
'B0:semileptonic',
95 [
'cosThetaBetweenParticleAndNominalB',
97 'extraInfo(decayModeID)',
98 'extraInfo(uniqueSignal)',
99 'extraInfo(SignalProbability)',
100 'isSignalAcceptMissingNeutrino'],
101 filename=
'B_mixed_semileptonic.root',
105b2.process(path, max_event=100)
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)