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