Belle II Software  release-08-01-10
dqm_utils.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 # Utilities to add SVD DQM modules to a path.
13 
14 
15 def add_svd_dqm_dose(path, offlineZSShaperDigits, **params):
16  """Adds the six default instances of SVDDQMDose to the given path.
17 
18  The argument offlineZSShaperDigits shall be the name of the
19  collection of digits to be used by the module (usually it will be
20  zero-suppressed digits with SVDZeroSuppressionEmulator and
21  SNthreshold=5).
22 
23  Extra parameters will be passed to all instances of SVDDQMDose.
24  """
25  path.add_module(
26  'SVDDQMDose', offlineZSShaperDigits=offlineZSShaperDigits, eventTypeFilter=1,
27  histogramDirectoryName="SVDDoseHERInjPois", **params).set_name("SVDDQMDose_HERInjPois")
28  path.add_module(
29  'SVDDQMDose', offlineZSShaperDigits=offlineZSShaperDigits, eventTypeFilter=2,
30  histogramDirectoryName="SVDDoseLERInjPois", **params).set_name("SVDDQMDose_LERInjPois")
31  path.add_module(
32  'SVDDQMDose', offlineZSShaperDigits=offlineZSShaperDigits, eventTypeFilter=4,
33  histogramDirectoryName="SVDDoseNoInjPois", **params).set_name("SVDDQMDose_NoInjPois")
34  params['trgTypes'] = []
35  path.add_module(
36  'SVDDQMDose', offlineZSShaperDigits=offlineZSShaperDigits, eventTypeFilter=1,
37  histogramDirectoryName="SVDDoseHERInjAll", **params).set_name("SVDDQMDose_HERInjAll")
38  path.add_module(
39  'SVDDQMDose', offlineZSShaperDigits=offlineZSShaperDigits, eventTypeFilter=2,
40  histogramDirectoryName="SVDDoseLERInjAll", **params).set_name("SVDDQMDose_LERInjAll")
41  path.add_module(
42  'SVDDQMDose', offlineZSShaperDigits=offlineZSShaperDigits, eventTypeFilter=4,
43  histogramDirectoryName="SVDDoseNoInjAll", **params).set_name("SVDDQMDose_NoInjAll")