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