11"""This steering file shows how to use the EclDatabaseImport
12 to import dummy data (
as TH1) into a payload ROOT file.
14The user should provide input
and output root file name
as
15first
and second argument, respectively. Comment
in the
16importer you need at the end. Upload the local DB afterwards.
23from ROOT.Belle2 import ECLDatabaseImporter
27 print(f'Usage: basf2 {sys.argv[0]} inputFile outputFile')
30inputFile = sys.argv[1]
31outputFile = sys.argv[2]
34eventInfoSetter = b2.register_module(
'EventInfoSetter')
35eventInfoSetter.initialize()
38gearbox = b2.register_module(
'Gearbox')
41rootFiles = ROOT.vector(
'string')()
42[rootFiles.push_back(name)
for name
in glob.glob(inputFile)]
43eclDBImporter = ECLDatabaseImporter(rootFiles, outputFile)
45"""Import ECL energy calibration constants to the database
46(examples/CreateEclDigitTestPayload.C)
48eclDBImporter.importDigitEnergyCalibration()
50"""Import ECL time calibration constants to the database
51(input file from Chris Hearty)
55"""Import ECL shower shape corrections to second moment
56to the database (input file from Savino Longo)
60"""Import ECL leakage corrections to showers
61(input file from Suman Koirala)
65"""Import threshold values for track ECL cluster matching
66(input file from Frank Meier)
70"""Import RMS parameterizations for track ECL cluster matching
71(input file from Frank Meier)