5 A clone of the test of the ParticleLoader using a larger test file (mdst12.root)
6 this is not present on the bamboo server so this test only runs on buildbot or
7 wherever the validation-data are visible (it's also a bit slower).
16 basf2.set_random_seed(
"1337")
17 fsps = [
'e+',
'pi+',
'K+',
'p+',
'mu+',
'K_S0 -> pi+ pi-',
'Lambda0 -> p+ pi-',
'K_L0',
'gamma',
'n0']
21 testpath = basf2.create_path()
22 testpath.add_module(
'RootInput', inputFileName=inputFile)
24 testpath.add_module(
'ParticleLoader', decayStringsWithCuts=[(fsp,
'')])
27 for i
in range(len(fsps)):
29 fsps[i] = fsps[i].split(
' ->', 1)[0]
32 mcps = [particle +
':frommc' for particle
in fsps + [
'B0',
'D0']]
34 testpath.add_module(
'ParticleLoader', decayStringsWithCuts=[(mcp,
'')],
38 roe_side =
'Upsilon(4S)'
39 testpath.add_module(
'RestOfEventBuilder', particleList=signal_side,
40 particleListsInput=[
'pi+',
'gamma',
'K_L0'])
42 testpath.add_module(
'ParticleLoader', decayStringsWithCuts=[(roe_side,
'')],
43 sourceParticleListName=signal_side, useROEs=
True)
46 testpath.add_module(
'ParticleStats', particleLists=fsps)
47 testpath.add_module(
'ParticleStats', particleLists=mcps)
48 testpath.add_module(
'ParticleStats', particleLists=[roe_side])
53 testpath.add_module(
'ParticlePrinter', listName=fsp, fullPrint=
True)