13 SVD Default Hit Time Selection importer.
16 from ROOT
import Belle2
17 from ROOT.Belle2
import SVDHitTimeSelectionFunction
18 from basf2
import conditions
as b2conditions
34 now = datetime.datetime.now()
39 Defining the python module to do the import.
44 call the functions to import the cluster parameters
49 hitTimeSelection = SVDHitTimeSelectionFunction()
51 hitTimeSelection.setFunctionID(clsTimeFunctionID)
53 hitTimeSelection.setMinTime(clsTimeMin)
55 hitTimeSelection.setDeltaTime(clsTimeDeltaT)
57 hitTimeSelection.setNsigma(clsTimeNSigma)
59 hitTimeSelection.setMaxUVTimeDifference(clsTimeDiff)
61 hitTimeSelection,
"HitTimeSelection_noCuts_" + str(now.isoformat()) +
62 "_INFO:_tmin=" + str(clsTimeMin) +
"_tDiff=" + str(clsTimeDiff))
66 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
67 layerNumber = layer.getLayerNumber()
68 for ladder
in geoCache.getLadders(layer):
69 ladderNumber = ladder.getLadderNumber()
70 for sensor
in geoCache.getSensors(ladder):
71 sensorNumber = sensor.getSensorNumber()
73 print(
"setting SVD Hit Time Selections for " +
74 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
79 b2conditions.prepend_globaltag(
'svd_onlySVDinGeoConfiguration')
81 main = b2.create_path()
84 eventinfosetter = b2.register_module(
'EventInfoSetter')
85 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
86 main.add_module(eventinfosetter)
88 main.add_module(
"Gearbox")
89 main.add_module(
"Geometry")
94 progress = b2.register_module(
'Progress')
95 main.add_module(progress)
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
base class for calibrations classes
static GeoCache & getInstance()
Return a reference to the singleton instance.
static Database & Instance()
Instance of a singleton Database.