22from basf2
import conditions
as b2conditions
23from rawdata
import add_unpackers
24from simulation
import add_simulation
29fileout =
'SVDMaxStripTTree_exp10run'+str(run)+
'.root'
32files = [
'/group/belle2/dataprod/Data/Raw/e0010/r0'+str(run)+
'/sub00/physics.0010.0'+str(run)+
'.HLT*.root']
42bkg = glob.glob(
'/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root')
46 b2conditions.override_globaltags()
47 b2conditions.globaltags = [
'klm_alignment_testing',
'online']
49eventinfosetter = b2.register_module(
'EventInfoSetter')
50eventinfosetter.param(
'expList', [1003])
51eventinfosetter.param(
'runList', [1])
53evtgeninput = b2.register_module(
'EvtGenInput')
54evtgeninput.logging.log_level = b2.LogLevel.INFO
58main = b2.create_path()
64 main.add_module(
"RootInput", inputFileNames=files)
66 main.add_module(eventinfosetter)
67 main.add_module(evtgeninput)
70main.add_module(
'Gearbox')
71main.add_module(
'Geometry')
75 add_unpackers(main, components=[
'SVD'])
78 main.add_module(
'FullSim')
79 add_simulation(main, bkgfiles=bkg)
82 fileout =
'SVDMaxStripTTree_MC.root'
86 outputFileName=fileout,
87 ShaperDigits=
'SVDShaperDigits',
88 skipHLTRejectedEvents=
True)
91main.add_module(
'Progress')