Belle II Software development
sampleCosmicsB0.py
1#!/usr/bin/env python3
2
3
10
11import basf2
12import simulation
13
14main = basf2.create_path()
15
16main.add_module('EventInfoSetter')
17main.add_module('Cosmics')
18main.add_module('Gearbox')
19main.add_module('Geometry', excludedComponents=['MagneticField'])
20
22
23main.add_module('RootOutput')
24main.add_module('Progress')
25
26basf2.process(main)
27print(basf2.statistics)
def add_simulation(path, components=None, bkgfiles=None, bkgOverlay=True, forceSetPXDDataReduction=False, usePXDDataReduction=True, cleanupPXDDataReduction=True, generate_2nd_cdc_hits=False, simulateT0jitter=True, isCosmics=False, FilterEvents=False, usePXDGatedMode=False, skipExperimentCheckForBG=False, save_slow_pions_in_mc=False)
Definition: simulation.py:126