Belle II Software development
eclCreateTimeWalkParams.py
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4
11
12import ROOT
13from ROOT import Belle2
14
15"""
16Create the payload with the object of ECLTimeWalkCorrection class.
17This payload is used for energy-depented time correction in eclDigitCalibrator module.
18"""
19
20FIRST_EXP = 0
21FIRST_RUN = 0
22LAST_EXP = -1
23LAST_RUN = -1
24DBOBJECT_NAME = 'ECLTimeWalkCorrection'
25
26
27def main():
28 """
29 """
30 # Initial set of parameters.
31 # params = [0, 88449., 0.20867E+06, 3.1482, 7.4747, 1279.3]
32 # Parameters recalculated with exp 24 data.
33 params = [-1.966, 46350., 264600., 1.813, 7.532, 428.3]
34
35 vec_params = ROOT.std.vector('double')()
36 vec_params += params
37
39 payload.setParams(vec_params)
40
42 iov = Belle2.IntervalOfValidity(FIRST_EXP, FIRST_RUN, LAST_EXP, LAST_RUN)
43 db.storeData(DBOBJECT_NAME, payload, iov)
44
45
46if __name__ == '__main__':
47 main()
This object contain parameters of the Time-Walk correction function of the ECL.
A class that describes the interval of experiments/runs for which an object in the database is valid.
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:41
Definition: main.py:1