17from basf2
import conditions
as b2conditions
20inputFile = sys.argv[1]
21exp_nr = int(re.findall(
r'\d+', inputFile)[0])
22run_nr = int(re.findall(
r'\d+', inputFile)[1])
23nevt = int(sys.argv[2])
27b2conditions.override_globaltags()
28b2conditions.globaltags = [
"online"]
30inroot = b2.register_module(
'DQMHistAnalysisInputRootFile')
31inroot.param(
'FileList', inputFile)
32inroot.param(
'SelectHistograms', [
'EventT0*/*'])
33inroot.param(
'Experiment', exp_nr)
34inroot.param(
'RunList', [run_nr])
35inroot.param(
'EventsList', [nevt])
36mypath.add_module(inroot)
39dqmEff = b2.register_module(
'DQMHistAnalysisEventT0')
40dqmEff.set_log_level(b2.LogLevel.INFO)
41dqmEff.param(
"printCanvas",
True)
42mypath.add_module(dqmEff)
44outroot = b2.register_module(
'DQMHistAnalysisOutputMonObj')
45outroot.param(
'ProcID',
'online')
46outroot.param(
'exp', exp_nr)
47outroot.param(
'run', run_nr)
48outroot.param(
'nevt', nevt)
49outroot.param(
'TreeFile',
'run_tree_eventT0.root')
50mypath.add_module(outroot)