Belle II Software development
importTrackFitMomentumRange.py
1#!/usr/bin/env python
2
3
10
11# Import math Library
12import math
13
14# Import TrackFitMomentumRange payloads
15from ROOT import Belle2 # noqa: make the Belle2 namespace available
16from ROOT.Belle2 import TrackFitMomentumRange, Database, IntervalOfValidity
17
18parameters = TrackFitMomentumRange()
19parameters.setMomentumRange(11, math.inf)
20parameters.setMomentumRange(13, math.inf)
21parameters.setMomentumRange(211, math.inf)
22parameters.setMomentumRange(321, math.inf)
23parameters.setMomentumRange(2212, math.inf)
24parameters.setMomentumRange(1000010020, math.inf)
25
26database = Database.Instance()
27
28iov = IntervalOfValidity(0, 0, 0, -1)
29database.storeData('TrackFitMomentumRange', parameters, iov)
30iov = IntervalOfValidity(1002, 0, 1002, -1)
31database.storeData('TrackFitMomentumRange', parameters, iov)
32iov = IntervalOfValidity(1003, 0, 1003, -1)
33database.storeData('TrackFitMomentumRange', parameters, iov)