Belle II Software development
ImportEventT0HitResolution.py
1#!/usr/bin/env python3
2
3
10
11# Import KLM EventT0 hit resolution payloads.
12# Default values use the same conservative fallbacks as KLMTimeAlgorithm
13# (10 ns per hit) when no calibration data is available.
14
15import sys
16from ROOT import Belle2
17
18mc = False
19if (len(sys.argv) >= 2):
20 if (sys.argv[1] == 'mc'):
21 mc = True
22
23hitResolution = Belle2.KLMEventT0HitResolution()
24hitResolution.setSigmaBKLMScint(10.0, 1.0)
25hitResolution.setSigmaRPC(10.0, 1.0)
26hitResolution.setSigmaRPCPhi(10.0, 1.0)
27hitResolution.setSigmaRPCZ(10.0, 1.0)
28hitResolution.setSigmaEKLMScint(10.0, 1.0)
29
31
32if (mc):
33 iov = Belle2.IntervalOfValidity(0, 0, 0, -1)
34 db.storeData("KLMEventT0HitResolution", hitResolution, iov)
35
36 iov = Belle2.IntervalOfValidity(1002, 0, 1002, -1)
37 db.storeData("KLMEventT0HitResolution", hitResolution, iov)
38
39 iov = Belle2.IntervalOfValidity(1003, 0, 1003, -1)
40 db.storeData("KLMEventT0HitResolution", hitResolution, iov)
41
42else:
43 iov = Belle2.IntervalOfValidity(0, 0, -1, -1)
44 db.storeData("KLMEventT0HitResolution", hitResolution, iov)
A class that describes the interval of experiments/runs for which an object in the database is valid.
Class to store per-hit time resolution (sigma) for KLM EventT0, separated by detector type.
static Database & Instance()
Instance of a singleton Database.
Definition Database.cc:41