default importer of strip occupancy
Definition at line 27 of file SVDDefaultOccupancyImporter.py.
◆ beginRun()
begin run
Definition at line 30 of file SVDDefaultOccupancyImporter.py.
36 str(now.isoformat()) +
"_INFO:_testJamesBranch")
40 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
41 layerNumber = layer.getLayerNumber()
42 for ladder
in geoCache.getLadders(layer):
43 ladderNumber = ladder.getLadderNumber()
44 for sensor
in geoCache.getSensors(ladder):
45 sensorNumber = sensor.getSensorNumber()
48 print(
"setting Occupancy for " +
49 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
52 occupancy = occupancy_L3
55 occupancy = occupancy_allOtherLayers
58 occupancy = occupancy_L3
60 occupancy = occupancy_allOtherLayers
62 print(
"WARNING: sensors end!...")
66 for strip
in range(0, Nstrips):
67 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, occupancy)
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.
The documentation for this class was generated from the following file: