12import modularAnalysis
as ma
16def reconstructB2nunubar(path):
18 Defines the procedure to create a B0 list for the benchmark channel 'B0 -> nu_tau anti-nu_tau'
20 ma.fillParticleListFromMC(
'nu_tau:MC',
'', path=path)
21 ma.reconstructMCDecay(
'B0:sig -> nu_tau:MC anti-nu_tau:MC',
'', writeOut=
True, path=path)
26 Creates the rest of event for the signal particle list.'
29 ma.matchMCTruth(list_name=
'B0:sig', path=path)
32 ma.buildRestOfEvent(target_list_name=
'B0:sig', path=path)
35if __name__ ==
'__main__':
37 Samples a chunk of training data for TFlat
39 parser = argparse.ArgumentParser(description=
'Sample TFlat')
42 metavar=
'uniqueIdentifier',
43 dest=
'uniqueIdentifier',
45 default=
"TFlaT_MC16rd_light_2601_hyperion",
46 help=
'Name of both the config .yaml to be used and the produced weightfile'
48 args = parser.parse_args()
49 uniqueIdentifier = args.uniqueIdentifier
51 b2.set_log_level(b2.LogLevel.ERROR)
52 b2.conditions.prepend_globaltag(ma.getAnalysisGlobaltag())
55 ma.inputMdstList(environmentType=
"default", filelist=
'', path=path)
56 reconstructB2nunubar(path)
63 uniqueIdentifier=uniqueIdentifier,
65 ma.summaryOfLists(particleLists=[
'B0:sig'], path=path)