11SVD Default Detecotr Configuration importer.
15from ROOT
import Belle2
16from basf2
import conditions
as b2conditions
19now = datetime.datetime.now()
23calibrationTimeUnits =
'2'
31apvClockTimeUnits =
'16'
38 '''default importer for the detector configuration'''
46 "LocalConfiguration_default_" + str(now.isoformat()) +
47 "_INFO:_injCharge=" + str(injCharge) +
"_calTimeUnits=" + str(calibrationTimeUnits))
50 "GlobalConfiguration_default_" + str(now.isoformat()) +
51 "_INFO:_latency=" + str(latency) +
52 "_maskFilter=" + str(maskFilter) +
"_ZS=" + str(zeroSuppress) +
53 "_apvClkUnits=" + str(apvClockTimeUnits))
55 local_payload.setCalibrationTimeInRFCUnits(calibrationTimeUnits)
56 local_payload.setCalibDate(calibDate)
57 local_payload.setInjectedCharge(injCharge)
58 global_payload.setLatency(latency)
59 global_payload.setZeroSuppression(zeroSuppress)
60 global_payload.setMaskFilter(maskFilter)
61 global_payload.setAPVClockInRFCUnits(apvClockTimeUnits)
62 global_payload.setHV(hv)
63 global_payload.setRelativeTimeShift(relativeShift)
64 global_payload.setNrFrames(nrFrames)
70b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
72main = b2.create_path()
75eventinfosetter = b2.register_module(
'EventInfoSetter')
76eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
77main.add_module(eventinfosetter)
79main.add_module(
"Gearbox")
80main.add_module(
"Geometry")
85progress = b2.register_module(
'Progress')
86main.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.