12SVD Default Hit Time Selection importer.
15from ROOT
import Belle2
16from ROOT.Belle2
import SVDHitTimeSelectionFunction
17from basf2
import conditions
as b2conditions
33now = datetime.datetime.now()
38 Defining the python module to do the import.
43 call the functions to import the cluster parameters
48 hitTimeSelection = SVDHitTimeSelectionFunction()
50 hitTimeSelection.setFunctionID(clsTimeFunctionID)
52 hitTimeSelection.setMinTime(clsTimeMin)
54 hitTimeSelection.setDeltaTime(clsTimeDeltaT)
56 hitTimeSelection.setNsigma(clsTimeNSigma)
58 hitTimeSelection.setMaxUVTimeDifference(clsTimeDiff)
60 hitTimeSelection,
"HitTimeSelection_noCuts_" + str(now.isoformat()) +
61 "_INFO:_tmin=" + str(clsTimeMin) +
"_tDiff=" + str(clsTimeDiff))
65 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
66 layerNumber = layer.getLayerNumber()
67 for ladder
in geoCache.getLadders(layer):
68 ladderNumber = ladder.getLadderNumber()
69 for sensor
in geoCache.getSensors(ladder):
70 sensorNumber = sensor.getSensorNumber()
72 print(
"setting SVD Hit Time Selections for " +
73 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
78b2conditions.prepend_globaltag(
'svd_onlySVDinGeoConfiguration')
80main = b2.create_path()
83eventinfosetter = b2.register_module(
'EventInfoSetter')
84eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
85main.add_module(eventinfosetter)
87main.add_module(
"Gearbox")
88main.add_module(
"Geometry")
93progress = b2.register_module(
'Progress')
94main.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.