12 SVD Default Detecotr Configuration importer.
16 from ROOT
import Belle2
17 from basf2
import conditions
as b2conditions
20 now = datetime.datetime.now()
24 calibrationTimeUnits =
'2'
25 calibDate =
'20190314'
32 apvClockTimeUnits =
'16'
39 '''default importer for the detector configuration'''
47 "LocalConfiguration_default_" + str(now.isoformat()) +
48 "_INFO:_injCharge=" + str(injCharge) +
"_calTimeUnits=" + str(calibrationTimeUnits))
51 "GlobalConfiguration_default_" + str(now.isoformat()) +
52 "_INFO:_latency=" + str(latency) +
53 "_maskFilter=" + str(maskFilter) +
"_ZS=" + str(zeroSuppress) +
54 "_apvClkUnits=" + str(apvClockTimeUnits))
56 local_payload.setCalibrationTimeInRFCUnits(calibrationTimeUnits)
57 local_payload.setCalibDate(calibDate)
58 local_payload.setInjectedCharge(injCharge)
59 global_payload.setLatency(latency)
60 global_payload.setZeroSuppression(zeroSuppress)
61 global_payload.setMaskFilter(maskFilter)
62 global_payload.setAPVClockInRFCUnits(apvClockTimeUnits)
63 global_payload.setHV(hv)
64 global_payload.setRelativeTimeShift(relativeShift)
65 global_payload.setNrFrames(nrFrames)
71 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
73 main = b2.create_path()
76 eventinfosetter = b2.register_module(
'EventInfoSetter')
77 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
78 main.add_module(eventinfosetter)
80 main.add_module(
"Gearbox")
81 main.add_module(
"Geometry")
86 progress = b2.register_module(
'Progress')
87 main.add_module(progress)
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
This class defines the payload which stores to the central DB the SVD global configuring parameters,...
This class defines the payload which stores to the central DB the SVD local configuring parameters,...
static Database & Instance()
Instance of a singleton Database.