22import simulation
as sim
27Usage: basf2 svdPerformanceTree.py -i <input_file>
35main = b2.create_path()
43 bkgFiles = glob.glob(
'/sw/belle2/bkg/*.root')
45 simulateJitter =
False
48 eventinfosetter = b2.register_module(
'EventInfoSetter')
49 eventinfosetter.param(
'expList', expList)
50 eventinfosetter.param(
'runList', [0])
51 eventinfosetter.param(
'evtNumList', [numEvents])
52 main.add_module(eventinfosetter)
54 main.add_module(
'EvtGenInput')
59 forceSetPXDDataReduction=
True,
60 usePXDDataReduction=ROIfinding,
61 simulateT0jitter=simulateJitter)
71 main.add_module(
'RootInput', branchNames=[
'RawPXDs',
'RawSVDs',
'RawCDCs'])
72 raw.add_unpackers(main, components=[
'PXD',
'SVD',
'CDC'])
81trk.add_tracking_reconstruction(
83 mcTrackFinding=MCTracking,
84 trackFitHypotheses=[211],
85 append_full_grid_cdc_eventt0=
True,
86 skip_full_grid_cdc_eventt0_if_svd_time_present=
False)
92b2.set_module_parameters(main,
"SVDClusterizer", returnClusterRawTime=
True)
95main.add_module(
'HistoManager', histoFileName=
"histos.root")
98main.add_module(
'SVDPerformanceTTree', outputFileName=
"SVDPerformanceTree"+str(tag)+
".root")
99main.add_module(
'OverlapResiduals', ExpertLevel=
True)
101main.add_module(
'Progress')
def add_svd_create_recodigits(path, recocreatorName="SVDRecoDigitCreator", shaperDigitsName="")