Belle II Software
development
CDCHitsRemover.py
1
import
basf2
2
'''
3
Example script which takes background overlay file as an input, applies CDC hit filters, and writes the result out.
4
'''
5
6
# path to a background file
7
NAME =
''
8
path = basf2.create_path()
9
path.add_module(
"RootInput"
, inputFileNames=[NAME])
10
path.add_module(
"Progress"
)
11
path.add_module(
'Geometry'
, useDB=
True
)
12
path.add_module(
"TFCDC_WireHitPreparer"
, useBadWires=
True
, filter=
"cuts_from_DB"
, filterParameters={})
13
path.add_module(
"CDCHitsRemover"
, inputWireHits=
"CDCWireHitVector"
)
14
br = [
15
'ARICHDigits'
,
16
'CDCHits'
,
17
'ECLWaveforms'
,
18
'EventLevelTriggerInfo'
,
19
'EventMetaData'
,
20
'KLMDigits'
,
21
'SVDShaperDigits'
,
22
'TOPDigits'
,
23
'TRGECLBGTCHits'
]
24
path.add_module(
25
"RootOutput"
, outputFileName=
"beambg_filtered.root"
, branchNames=br, keepParents=
True
26
)
27
basf2.print_path(path)
28
basf2.process(path)
tracking
examples
CDCHitsRemover.py
Generated on Wed Feb 11 2026 03:01:34 for Belle II Software by
1.13.2