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