12from rawdata
import add_unpackers
13from simulation
import add_simulation
14from tracking
import add_tracking_reconstruction
16from basf2
import conditions
as b2conditions
22 b2conditions.override_globaltags()
23 b2conditions.globaltags = [
'klm_alignment_testing',
'online']
28files = [
' /group/belle2/dataprod/Data/Raw/e0010/r04925/sub00/beam.0010.04925.HLT*.root']
34eventinfosetter = b2.register_module(
'EventInfoSetter')
35eventinfosetter.param(
'expList', [0])
36eventinfosetter.param(
'runList', [1])
37eventinfosetter.param(
'evtNumList', [numEvents])
39eventinfoprinter = b2.register_module(
'EventInfoPrinter')
41evtgeninput = b2.register_module(
'EvtGenInput')
42evtgeninput.logging.log_level = b2.LogLevel.INFO
46main = b2.create_path()
51 main.add_module(
"RootInput", inputFileNames=files)
54 main.add_module(eventinfosetter)
55 main.add_module(eventinfoprinter)
56 main.add_module(evtgeninput)
58main.add_module(
'Gearbox')
59main.add_module(
'Geometry')
62 add_unpackers(main, components=[
'SVD',
'CDC'])
64 main.add_module(
'FullSim')
67add_tracking_reconstruction(main, components=[
'SVD',
'CDC'])
70fil = b2.register_module(
'SVDShaperDigitsFromTracks')
71fil.param(
'outputINArrayName',
'SVDShaperDigitsFromTracks')
74fitter = b2.register_module(
'SVDCoGTimeEstimator')
75fitter.set_name(
'post_SVDCoGTimeEstimator')
76fitter.param(
'ShaperDigits',
'SVDShaperDigitsFromTracks')
77fitter.param(
'RecoDigits',
'SVDRecoDigitsFromTracks')
78main.add_module(fitter)
80clusterizer = b2.register_module(
'SVDSimpleClusterizer')
81clusterizer.set_name(
'post_SVDSimpleClusterizer')
82clusterizer.param(
'RecoDigits',
'SVDRecoDigitsFromTracks')
83clusterizer.param(
'Clusters',
'SVDClustersFromTracks')
84clusterizer.param(
'useDB',
True)
85main.add_module(clusterizer)
90 'SVDShaperDigitsFromTracks',
92 'SVDRecoDigitsFromTracks',
94 'SVDClustersFromTracks',
98 input_branches.append(
'SVDEventInfo')
100 input_branches.append(
'SVDEventInfoSim')
103 main.add_module(
"RootOutput", branchNames=input_branches, outputFileName=
"RootOutput_CoGerror_FromTracks_DATA.root")
105 main.add_module(
"RootOutput", branchNames=input_branches, outputFileName=
"RootOutput_CoGerror_FromTracks.root")