Belle II Software development
validationgenerators.py
1#!/usr/bin/env python3
2
3
10
11"""This file contains some functions used in the validation package to
12generate the Monte Carlo events in a reproducible manner."""
13
14
15from basf2 import find_file
16from pdg import load
17
18
19def add_evtgen_for_validation(path):
20 """
21 Add the EvtGenInput module with the correct decfile and pdl files to be used for the nightly validation.
22 """
23 # Load the appropriate pdl file
24 load(find_file("data/validation/validation.pdl"))
25 # And add EvtGen with the appropriate decfile
26 path.add_module(
27 "EvtGenInput",
28 DECFile=find_file("data/validation/validation.dec")
29 )