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