6 <output>K_long_full_validation_sample.root</output>
7 <description>Generates particle gun Klong Events for Kl efficiency validation.\t
8 Output is not very meaningful but sufficient to check for regression.</description>
9 <contact>benjamin.oberhof@lnf.infn.it</contact>
10 <interval>nightly</interval>
15 import simulation
as sim
16 import reconstruction
as rec
22 if 'BELLE2_BACKGROUND_DIR' in os.environ:
23 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
25 b2.B2FATAL(
'The variable BELLE2_BACKGROUND_DIR is not set!')
27 b2.set_random_seed(
'L1V0RN0')
29 main = b2.create_path()
31 main.add_module(
'EventInfoSetter',
36 main.add_module(
'ParticleGun',
38 momentumGeneration=
'uniform',
39 momentumParams=[0.05, 5.0],
40 pdgCodes=[130, 321, 311, 2212, 2112, 211, 13, 11])
42 sim.add_simulation(path=main,
45 rec.add_reconstruction(path=main)
48 main.add_module(
'KlongValidation',
49 outputName=
'K_long_full_validation_sample.root',
54 main.add_module(
'Progress')