12SVD Default Clustering Parameters importer.
15from ROOT
import Belle2
16from ROOT.Belle2
import SVDClusterCuts
17from basf2
import conditions
as b2conditions
29now = datetime.datetime.now()
34 Defining the python module to do the import.
39 call the functions to import the cluster parameters
44 clsParam = SVDClusterCuts()
45 clsParam.minSeedSNR = clsSeedSNR
46 clsParam.minAdjSNR = clsAdjSNR
47 clsParam.minClusterSNR = clsMinSNR
48 clsParam.UnfoldingCoeff = clsUnfoldingCoeffV
52 "Clustering_default_" +
62 str(clsUnfoldingCoeffU) +
64 str(clsUnfoldingCoeffV))
68 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
69 layerNumber = layer.getLayerNumber()
70 for ladder
in geoCache.getLadders(layer):
71 ladderNumber = ladder.getLadderNumber()
72 for sensor
in geoCache.getSensors(ladder):
73 sensorNumber = sensor.getSensorNumber()
75 print(
"setting SVD Clustering parameters for " +
76 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
78 clsParam.UnfoldingCoeff = clsUnfoldingCoeffU
80 clsParam.UnfoldingCoeff = clsUnfoldingCoeffV
81 print(clsParam.UnfoldingCoeff)
82 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
87b2conditions.prepend_globaltag(
'svd_onlySVDinGeoConfiguration')
89main = b2.create_path()
92eventinfosetter = b2.register_module(
'EventInfoSetter')
93eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
94main.add_module(eventinfosetter)
96main.add_module(
"Gearbox")
97main.add_module(
"Geometry")
102progress = b2.register_module(
'Progress')
103main.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.