12 from basf2
import conditions
as b2conditions
38 print(
"Check the run number!!")
40 if searchbaseValue != -1:
41 myflag =
"searchBase" + str(searchbaseValue) +
"_thr" + str(setLauraThreshold)
44 outputfile =
"SVDHotStripFinderZS5_exp" + str(exp) +
"run" + str(run) +
"_V1_" + str(myflag) +
".root"
46 outputfile =
"SVDHotStripFinderZS5_exp" + str(exp) +
"run" + str(run) +
"_V2_" + str(myflag) +
".root"
48 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
49 b2conditions.prepend_globaltag(
"data_reprocessing_prompt")
50 b2conditions.prepend_globaltag(
"svd_basic")
52 main = b2.create_path()
61 inputFileName=
"/ghi/fs01/belle2/bdata/Data/Raw/e000" + \
62 str(exp) +
"/r0" + str(run) +
"/sub00/" + str(runType) +
".000" + str(exp) +
".0" + str(run) +
".HLT*",
63 branchNames=[
'RawSVDs'])
65 main.add_module(
'Gearbox')
66 main.add_module(
'Geometry')
69 main.add_module(
'SVDUnpacker', svdShaperDigitListName=
'SVDShaperDigits')
71 'SVDZeroSuppressionEmulator',
73 ShaperDigits=
'SVDShaperDigits',
74 ShaperDigitsIN=
'SVDShaperDigitsZS5',
78 main.add_module(
'SVDHotStripFinder', ShaperDigits=
'SVDShaperDigitsZS5', outputFileName=outputfile, searchBase=searchbaseValue,
79 threshold=1, absOccThreshold=0.20, relOccPrec=setLauraThreshold, useHSFinderV1=
not useLauraAlg)
81 main.add_module(
'Progress')