12 """This steering file creates ECL DQM histograms from
15 The user should provide input and output file names and
16 control 'ECLDQM' module parameters.
19 $ basf2 -i <path_to_input_files> -o <path_to_output_files>
27 mainPath = b2.create_path()
29 b2.set_log_level(b2.LogLevel.ERROR)
32 seqRootInput = b2.register_module(
'SeqRootInput')
33 mainPath.add_module(seqRootInput)
36 eclUnpacker = b2.register_module(
'ECLUnpacker')
37 eclUnpacker.param(
'storeTrigTime',
True)
38 mainPath.add_module(eclUnpacker)
41 eclDigitCalibrator = b2.register_module(
'ECLDigitCalibrator')
42 mainPath.add_module(eclDigitCalibrator)
45 histoManager = b2.register_module(
'HistoManager')
46 mainPath.add_module(histoManager)
49 triggerSkim = b2.register_module(
'TriggerSkim')
50 triggerSkim.param(
'triggerLines',
51 [
'software_trigger_cut&all&total_result'])
52 triggerSkim.if_value(
'==0', b2.Path(), b2.AfterConditionPath.END)
53 mainPath.add_module(triggerSkim)
56 eclDQM = b2.register_module(
'ECLDQM')
57 eclDQM.param(
'histogramDirectoryName',
'ECL')
58 eclDQM.param(
'EnergyUpperThr', 1.5)
59 eclDQM.param(
'PedestalMeanUpperThr', 7000)
60 eclDQM.param(
'PedestalMeanLowerThr', -1000)
61 eclDQM.param(
'PedestalRmsUpperThr', 100.)
62 mainPath.add_module(eclDQM)
65 mainPath.add_module(
'Progress')