14 <output>EvtGenSimRec_B2Kpi.root</output>
15 <contact>marko.staric@ijs.si</contact>
16 <description>Generates signal MC of B0 -> K-pi+, 200 events</description>
22 from simulation
import add_simulation
23 from reconstruction
import add_reconstruction
24 from ROOT
import Belle2
27 b2.set_random_seed(123451)
29 main = b2.create_path()
32 eventinfosetter = b2.register_module(
'EventInfoSetter')
33 eventinfosetter.param(
'evtNumList', [1000])
34 main.add_module(eventinfosetter)
37 evtgeninput = b2.register_module(
'EvtGenInput')
39 main.add_module(evtgeninput)
43 if 'BELLE2_BACKGROUND_DIR' in os.environ:
44 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
45 add_simulation(main, bkgfiles=bg)
48 add_reconstruction(main)
51 output = b2.register_module(
'RootOutput')
52 output.param(
'outputFileName',
'../EvtGenSimRec_B2Kpi.root')
53 output.param(
'branchNames', [
'MCParticles',
'MCInitialParticles',
'Tracks',
'TrackFitResults',
54 'TOPLikelihoods',
'TOPBarHits',
'ExtHits',
'TOPRecBunch'])
55 main.add_module(output)
57 main.add_module(
'Progress')
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...