5 a test of the ParticleLoader using the small test file for running quickly
6 there is a clone of this file which requires the presence of mdst12.root (a
7 larger file) that is present on the buildbot server but not bamboo
11 from basf2
import set_random_seed, create_path, process
15 set_random_seed(
"1337")
17 fsps = [
'e+',
'pi+',
'K+',
'p+',
'mu+',
'K_S0 -> pi+ pi-',
'Lambda0 -> p+ pi-',
'K_L0',
'gamma',
'n0']
21 testpath = create_path()
22 testpath.add_module(
'RootInput', inputFileNames=testinput)
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,
'')],
39 roe_side =
'Upsilon(4S)'
40 testpath.add_module(
'RestOfEventBuilder', particleList=signal_side,
41 particleListsInput=[
'pi+',
'gamma',
'K_L0'])
43 testpath.add_module(
'ParticleLoader', decayStringsWithCuts=[(roe_side,
'')],
44 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)