5 from daqdqm.commondqm
import add_common_dqm
8 def add_cosmic_dqm(path, components=None, dqm_environment="expressreco", dqm_mode="dont_care"):
10 This function adds DQMs for CRT
12 @param components: A list of the detector components which are available in this
14 @param dqm_environment: The environment the DQM modules are running in
15 "expressreco" (default) if running on the ExpressReco system
16 "hlt" if running on the HLT online reconstructon nodes
17 If running on the hlt, you may want to output less or other DQM plots
18 due to the limited bandwith of the HLT nodes.
19 @param dqm_mode: How to split up the path for online/HLT.
20 For dqm_mode == "dont_care" all the DQM modules should be added.
21 For dqm_mode == "all_events" only the DQM modules which should run on all events
22 (filtered and dismissed) should be added
23 For dqm_mode == "before_filter" only the DQM modules which should run before
25 For dqm_mode == "filtered" only the DQM modules which should run on filtered
26 events should be added
28 assert dqm_mode
in [
"dont_care",
"all_events",
"filtered",
"before_filter"]
30 add_common_dqm(path, components=components, dqm_environment=dqm_environment,
33 if dqm_environment ==
"expressreco" and (dqm_mode
in [
"dont_care"]):
35 if components
is None or 'PXD' in components:
38 path.add_module(
'PXDDQMEfficiency', histogramDirectoryName=
'PXDEFF', z0minCut=-9999, z0maxCut=9999, d0Cut=-9999)