29from generators
import add_evtgen_generator
30from modularAnalysis
import setupEventInfo
31from mdst
import add_mdst_output
32from optparse
import OptionParser
34parser = OptionParser()
35parser.add_option(
'-n',
'--nevents', dest=
'nevents', default=1000,
36 help=
'Number of events to process')
37parser.add_option(
'-f',
'--file', dest=
'filename',
38 default=
'B2Kpi_events.root')
39(options, args) = parser.parse_args()
42b2.set_log_level(b2.LogLevel.ERROR)
47mypath = b2.create_path()
48setupEventInfo(int(options.nevents), mypath)
49add_evtgen_generator(mypath,
'signal', b2.find_file(
'arich/examples/B2kpi.dec'))
52add_mdst_output(mypath,
True, options.filename)