17from ROOT
import Belle2
24now = datetime.datetime.now()
28 """ argument parser """
30 parser = argparse.ArgumentParser(description=__doc__)
31 parser.add_argument(
'-j',
'--json',
33 help=
'input json file',
38if __name__ ==
"__main__":
41 args = arg_parser().parse_args()
48 print(
"--> json INFO:")
49 print(
" "+str(param[
"_COMMENT"]))
54 uniqueID =
"SVDAbsoluteClusterTimeShift_" + str(now.isoformat())
55 uniqueID +=
"_in-" + param[
"uniqueID"][
"INFO"][
"source"]
58 uniqueID +=
"_" + param[
"uniqueID"][
"INFO"][
"tag"]
59 print(
"uniqueID ->", uniqueID)
64 for alg
in param[
"shiftValue"]:
65 for sType
in param[
"shiftValue"][alg]:
66 shiftVal = param[
"shiftValue"][alg][sType]
67 if math.fabs(shiftVal) > 10:
68 b2.B2WARNING(f
"cluster time shift ({shiftVal}) is very large for ({alg} : {sType})")
69 payload.setClusterTimeShift(alg, sType, shiftVal)
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
This class store the shift of the cluster time w.r.t a full calibration.
static Database & Instance()
Instance of a singleton Database.