Belle II Software development
ImportCKFToPXDFiltersSetting.py
1#!/usr/bin/env python
2
3
10
11# Import CkfToPXDFiltersSetting payloads
12
13from ROOT import Belle2 # noqa: make the Belle2 namespace available
14from ROOT.Belle2 import CkfToPXDFiltersSetting, Database, IntervalOfValidity
15
16ckfToPXDFiltersSetting_sensor = CkfToPXDFiltersSetting()
17ckfToPXDFiltersSetting_sensor.setHitFilterName("sensor")
18ckfToPXDFiltersSetting_sensor.setSeedFilterName("sensor")
19
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")
33
34database = Database.Instance()
35
36payloadname = "ckf_ToPXD_FiltersSetting"
37print("Storing payload under name: " + payloadname)
38
39iov = IntervalOfValidity(0, 0, 0, -1)
40database.storeData(payloadname, ckfToPXDFiltersSetting_sensor, iov)
41iov = IntervalOfValidity(1003, 0, 1003, -1)
42database.storeData(payloadname, ckfToPXDFiltersSetting_sensor, iov)
43
44iov = IntervalOfValidity(1004, 0, 1004, -1)
45database.storeData(payloadname, ckfToPXDFiltersSetting_intercept, iov)