19from ROOT
import Belle2
20from ROOT.Belle2
import SVDCrossTalkCalibrationsAlgorithm
22from caf.framework
import CAF, Calibration, CentralDatabase
23from caf
import backends
24from caf
import strategies
29b2.set_log_level(b2.LogLevel.INFO)
35def SVDCrossTalkCalibrations(files, tags):
38 path = b2.create_path()
40 path.add_module(
'Progress')
41 path.add_module(
'RootInput', branchNames=input_branches)
43 path.add_module(
"Gearbox")
44 path.add_module(
"Geometry")
46 raw.add_unpackers(path, components=[
'SVD'])
48 collector = b2.register_module(
'SVDCrossTalkCalibrationsCollector')
49 algorithm = SVDCrossTalkCalibrationsAlgorithm(
"SVDCrossTalkCAF")
55 pre_collector_path=path,
56 database_chain=[CentralDatabase(tag)
for tag
in tags],
58 max_files_per_collector_job=-1,
62 calibration.strategies = strategies.SequentialRunByRun
67if __name__ ==
"__main__":
71 .getInputFilesOverride()]
79 svdCrossTalkCAF = SVDCrossTalkCalibrations(input_files,
80 [
'data_reprocessing_prompt',
81 'svd_basic',
'online'])
84 cal_fw.add_calibration(svdCrossTalkCAF)
85 cal_fw.backend = backends.LSF()
88 if multiprocessing.cpu_count() < 10:
89 cal_fw.backend = backends.Local(8)
static Environment & Instance()
Static method to get a reference to the Environment instance.