Belle II Software development
ImportEventsOfDoomParameters.py
1#!/usr/bin/env python
2
3
10
11# Import EventsOfDoomParameters payloads
12
13from ROOT import Belle2 # noqa: make Belle2 namespace available
14from ROOT.Belle2 import EventsOfDoomParameters, Database, IntervalOfValidity
15
16parameters = EventsOfDoomParameters()
17parameters.setNCDCHitsMax(6000)
18parameters.setNSVDShaperDigitsMax(70000)
19
20database = Database.Instance()
21
22iov = IntervalOfValidity(0, 0, 0, -1)
23database.storeData('EventsOfDoomParameters', parameters, iov)
24iov = IntervalOfValidity(1002, 0, 1002, -1)
25database.storeData('EventsOfDoomParameters', parameters, iov)
26iov = IntervalOfValidity(1003, 0, 1003, -1)
27database.storeData('EventsOfDoomParameters', parameters, iov)