14 <output>K_long_full_validation_sample.root</output>
15 <description>Generates particle gun Klong Events for Kl efficiency validation.\t
16 Output is not very meaningful but sufficient to check for regression.</description>
17 <contact>fnc@lnf.infn.it</contact>
18 <interval>nightly</interval>
23 import simulation
as sim
24 import reconstruction
as rec
30 if 'BELLE2_BACKGROUND_DIR' in os.environ:
31 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
33 b2.B2FATAL(
'The variable BELLE2_BACKGROUND_DIR is not set!')
35 b2.set_random_seed(
'L1V0RN0')
37 main = b2.create_path()
39 main.add_module(
'EventInfoSetter',
44 main.add_module(
'ParticleGun',
46 momentumGeneration=
'uniform',
47 momentumParams=[0.05, 5.0],
48 pdgCodes=[130, 321, 311, 2212, 2112, 211, 13, 11])
50 sim.add_simulation(path=main,
53 rec.add_reconstruction(path=main)
56 main.add_module(
'KlongValidation',
57 outputName=
'K_long_full_validation_sample.root',
62 main.add_module(
'Progress')