Belle II Software light-2406-ragdoll
save_model_to_payload.py
1#!/usr/bin/env python
2
3
10
11
12import sys
13import basf2 as b2
14
15from ROOT import Belle2
16
17if __name__ == "__main__":
18 model_file = sys.argv[1]
19 config_file = sys.argv[2]
20
21 main = b2.create_path()
22
23 eventinfosetter = b2.register_module('EventInfoSetter')
24 eventinfosetter.param({'evtNumList': [1], 'expList': 0, 'runList': 0})
25 main.add_module(eventinfosetter)
26
28
30 db.addPayload('graFEIModelFile', model_file, iov)
31 db.addPayload('graFEIConfigFile', config_file, iov)
32
33 b2.process(main)
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42