Belle II Software  release-05-01-25
xt_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 
13 reset_database()
14 use_database_chain()
15 use_central_database("332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000", LogLevel.INFO)
16 use_central_database("MagneticFieldPhase2QCSoff")
17 # use_local_database("localDB/database.txt", "localDB")
18 use_local_database("/home/belle/muchida/basf2/release/cdc/examples/caf/localDB/database.txt")
19 # use_local_database("/home/belle/muchida/basf2/work/caf/gcr2/test7/localDB/database.txt")
20 
22 algo.setInputFileNames(['rootfile/*/CollectorOutput.root'])
23 
24 # Ture, f you set IOV for whole exp and runs.
25 # iov = Belle2.IntervalOfValidity.always()
26 # print("Result of calibration =", algo.execute([], 0, iov))
27 print("Result of calibration =", algo.execute())
28 algo.commit()
Belle2::CDC::XTCalibrationAlgorithm
Class to perform xt calibration for drift chamber.
Definition: XTCalibrationAlgorithm.h:61