13from ROOT
import Belle2
14from ROOT.Belle2
import CkfToPXDFiltersSetting, Database, IntervalOfValidity
16ckfToPXDFiltersSetting_sensor = CkfToPXDFiltersSetting()
17ckfToPXDFiltersSetting_sensor.setHitFilterName(
"sensor")
18ckfToPXDFiltersSetting_sensor.setSeedFilterName(
"sensor")
20ckfToPXDFiltersSetting_intercept = CkfToPXDFiltersSetting()
21ckfToPXDFiltersSetting_intercept.setHitFilterName(
"intercept")
22ckfToPXDFiltersSetting_intercept.setSeedFilterName(
"intercept")
23ckfToPXDFiltersSetting_intercept.setPtThresholdTrackToHitCut(0.5)
24ckfToPXDFiltersSetting_intercept.setPhiInterceptToHitCut(0.2)
25ckfToPXDFiltersSetting_intercept.setEtaInterceptToHitCut(0.2)
26ckfToPXDFiltersSetting_intercept.setPhiRecoTrackToHitCut(0.5)
27ckfToPXDFiltersSetting_intercept.setEtaRecoTrackToHitCut(0.4)
28ckfToPXDFiltersSetting_intercept.setPhiHitHitCut(0.8)
29ckfToPXDFiltersSetting_intercept.setEtaHitHitCut(0.8)
30ckfToPXDFiltersSetting_intercept.setPhiOverlapHitHitCut(0.15)
31ckfToPXDFiltersSetting_intercept.setEtaOverlapHitHitCut(0.15)
32ckfToPXDFiltersSetting_intercept.setPXDInterceptsName(
"PXDIntercepts")
34database = Database.Instance()
36payloadname =
"ckf_ToPXD_FiltersSetting"
37print(
"Storing payload under name: " + payloadname)
39iov = IntervalOfValidity(0, 0, 0, -1)
40database.storeData(payloadname, ckfToPXDFiltersSetting_sensor, iov)
41iov = IntervalOfValidity(1003, 0, 1003, -1)
42database.storeData(payloadname, ckfToPXDFiltersSetting_sensor, iov)
44iov = IntervalOfValidity(1004, 0, 1004, -1)
45database.storeData(payloadname, ckfToPXDFiltersSetting_intercept, iov)