13 from rawdata
import add_unpackers
14 from simulation
import add_simulation
15 from tracking
import add_tracking_reconstruction
17 from basf2
import conditions
as b2conditions
23 b2conditions.override_globaltags()
24 b2conditions.globaltags = [
'klm_alignment_testing',
'online']
29 files = [
' /group/belle2/dataprod/Data/Raw/e0010/r04925/sub00/beam.0010.04925.HLT*.root']
35 eventinfosetter = b2.register_module(
'EventInfoSetter')
36 eventinfosetter.param(
'expList', [0])
37 eventinfosetter.param(
'runList', [1])
38 eventinfosetter.param(
'evtNumList', [numEvents])
40 eventinfoprinter = b2.register_module(
'EventInfoPrinter')
42 evtgeninput = b2.register_module(
'EvtGenInput')
43 evtgeninput.logging.log_level = b2.LogLevel.INFO
47 main = b2.create_path()
52 main.add_module(
"RootInput", inputFileNames=files)
55 main.add_module(eventinfosetter)
56 main.add_module(eventinfoprinter)
57 main.add_module(evtgeninput)
59 main.add_module(
'Gearbox')
60 main.add_module(
'Geometry')
63 add_unpackers(main, components=[
'SVD',
'CDC'])
65 main.add_module(
'FullSim')
68 add_tracking_reconstruction(main, components=[
'SVD',
'CDC'])
71 fil = b2.register_module(
'SVDShaperDigitsFromTracks')
72 fil.param(
'outputINArrayName',
'SVDShaperDigitsFromTracks')
75 fitter = b2.register_module(
'SVDCoGTimeEstimator')
76 fitter.set_name(
'post_SVDCoGTimeEstimator')
77 fitter.param(
'ShaperDigits',
'SVDShaperDigitsFromTracks')
78 fitter.param(
'RecoDigits',
'SVDRecoDigitsFromTracks')
79 main.add_module(fitter)
81 clusterizer = b2.register_module(
'SVDSimpleClusterizer')
82 clusterizer.set_name(
'post_SVDSimpleClusterizer')
83 clusterizer.param(
'RecoDigits',
'SVDRecoDigitsFromTracks')
84 clusterizer.param(
'Clusters',
'SVDClustersFromTracks')
85 clusterizer.param(
'useDB',
True)
86 main.add_module(clusterizer)
91 'SVDShaperDigitsFromTracks',
93 'SVDRecoDigitsFromTracks',
95 'SVDClustersFromTracks',
99 input_branches.append(
'SVDEventInfo')
101 input_branches.append(
'SVDEventInfoSim')
104 main.add_module(
"RootOutput", branchNames=input_branches, outputFileName=
"RootOutput_CoGerror_FromTracks_DATA.root")
106 main.add_module(
"RootOutput", branchNames=input_branches, outputFileName=
"RootOutput_CoGerror_FromTracks.root")