13Create the payload with an object of EventLimit class for use in EventLimiter
14module. The payload interval of validity is set equal to the specified experiment
15and run; payload file is created in localdb directory.
18from ROOT
import Belle2
21parser = argparse.ArgumentParser(description=__doc__)
22parser.add_argument(
'exp', type=int, help=
'Experiment number')
23parser.add_argument(
'run', type=int, help=
'Run number')
24parser.add_argument(
'limit', type=int, help=
'Event limit')
25args = parser.parse_args()
27DBOBJECT_NAME =
'EventLimit'
34db.storeData(DBOBJECT_NAME, payload, iov)
This dataobject is used by EventLimiter module to set event limit based on the value from the databas...
A class that describes the interval of experiments/runs for which an object in the database is valid.
static Database & Instance()
Instance of a singleton Database.