Belle II Software  release-05-01-25
time_walk_cal_algo.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 import os
5 import sys
6 import datetime
7 from basf2 import *
8 import ROOT
9 from ROOT import Belle2
10 from caf.utils import IoV
11 
12 # logging.log_level = LogLevel.DEBUG
13 
14 reset_database()
15 use_database_chain()
16 use_central_database("332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000", LogLevel.INFO)
17 use_central_database("MagneticFieldPhase2QCSoff")
18 # use_local_database("localDB/database.txt", "localDB")
19 use_local_database("/home/belle/muchida/basf2/release/cdc/examples/caf/localDB/database.txt")
20 # use_local_database("/home/belle/muchida/basf2/work/caf/gcr2/test7/localDB/database.txt")
21 
22 
24 algo.setStoreHisto(True)
25 algo.setInputFileNames(['rootfile/*/CollectorOutput.root'])
26 # algo.setInputFileNames(['calib_result/10/rootfile/*/CollectorOutput.root'])
27 # algo.setInputFileNames(['5/output_cdc.*.root'])
28 
29 # Ture, f you set IOV for whole exp and runs.
30 # iov = Belle2.IntervalOfValidity.always()
31 # print("Result of calibration =", algo.execute([], 0, iov))
32 print("Result of calibration =", algo.execute())
33 algo.commit()
Belle2::CDC::TimeWalkCalibrationAlgorithm
Class for Time walk calibration.
Definition: TimeWalkCalibrationAlgorithm.h:37