11from ROOT
import Belle2
15 enableROI: bool =
True,
16 disableROIforEveryNth: int = -1) ->
None:
18 run this script to create db file storing the payload information of the ROISimulationParameters
19 see `simulation/dbobjects/include/ROISimulationParameters.h` for definition of the parameters
21 :param IoV: IoV
for the parameters
22 :param enableROI: Enable ROI finding
23 :param disableROIforEveryNth: Disable ROI selection
for every n-th event. -1 means ROI selection
is always used
if
24 the parameter enableROI
is True.
36 dbobj.setROIfinding(enableROI)
37 dbobj.setDisableROIforEveryNth(disableROIforEveryNth)
42 print(f
"Successfully wrote payload ROISimulationParameters with {IoV=} and \n\
43 parameters {enableROI=}, {disableROIforEveryNth=}")
46if __name__ ==
"__main__":
A class that describes the interval of experiments/runs for which an object in the database is valid.
The payload containing all PXD ROI parameters.
static Database & Instance()
Instance of a singleton Database.