12from daqdqm.commondqm
import add_common_dqm
13from IPDQM
import add_IP_dqm
14from V0DQM
import add_V0_dqm
17def add_collision_dqm(path, components=None, dqm_environment="expressreco", dqm_mode="dont_care", create_hlt_unit_histograms=False):
19 This function adds DQMs for collisions
21 @param components: A list of the detector components which are available
in this
23 @param dqm_environment: The environment the DQM modules are running
in
24 "expressreco" (default)
if running on the ExpressReco system
25 "hlt" if running on the HLT online reconstructon nodes
26 If running on the hlt, you may want to output less
or other DQM plots
27 due to the limited bandwidth of the HLT nodes.
28 @param dqm_mode: How to split up the path
for online/HLT.
29 For dqm_mode ==
"dont_care" all the DQM modules should be added.
30 For dqm_mode ==
"all_events" only the DQM modules which should run on all events
31 (filtered
and dismissed) should be added
32 For dqm_mode ==
"before_filter" only the DQM modules which should run before
34 For dqm_mode ==
"filtered" only the DQM modules which should run on filtered
35 events should be added
36 @param create_hlt_unit_histograms: Parameter
for SoftwareTiggerHLTDQMModule.
37 Should be
True only when running on the HLT servers
40 assert dqm_mode
in [
"dont_care",
"all_events",
"filtered",
"before_filter"]
42 add_common_dqm(path, components=components, dqm_environment=dqm_environment,
43 dqm_mode=dqm_mode, create_hlt_unit_histograms=create_hlt_unit_histograms)
45 if dqm_environment ==
"expressreco" and (dqm_mode
in [
"dont_care"]):
48 if components
is None or 'PXD' in components:
50 path.add_module(
'PXDDQMEfficiency', histogramDirectoryName=
'PXDEFF')
52 if dqm_mode
in [
"dont_care",
"filtered"]:
55 if components
is None or (
'CDC' in components
and 'SVD' in components):
56 add_IP_dqm(path, dqm_environment=dqm_environment)
59 if dqm_environment ==
"expressreco" and (dqm_mode
in [
"dont_care"]):
62 if components
is None or 'CDC' in components: