ATLAS Offline Software
Trigger
TrigTools
TrigByteStreamTools
bin
trigbs_failedStreamSelection.py
Go to the documentation of this file.
1
#!/usr/bin/env tdaq_python
2
3
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4
5
# Create an empty outfile if no events are selected for a given stream name in trigbs_extractStream.py
6
7
import
sys
8
9
def
empty_writer
():
10
"""Creates an empty BSfile"""
11
12
import
eformat
13
#retrieve input BSFile and corresponding runNumber
14
inputFile = sys.argv[1]
15
runnumber = eformat.EventStorage.pickDataReader(inputFile).
runNumber
()
16
#create the empty BSFile with the name: 'T0debug.runnumber.unknown_debug.unknown.RAW._lb0000._TRF._0001.data'
17
of = eformat.EventStorage.RawFileName(
'T0debug'
,runnumber,
'unknown'
,
'debug'
,0,
'TRF'
,
'unknown'
)
18
eformat.ostream(directory=
'.'
, core_name=of.fileNameCore())
19
sys.exit(0)
20
21
if
__name__ ==
"__main__"
:
22
empty_writer
()
trigbs_failedStreamSelection.empty_writer
def empty_writer()
Definition:
trigbs_failedStreamSelection.py:9
DeMoAtlasDataLoss.runNumber
string runNumber
Definition:
DeMoAtlasDataLoss.py:64
Generated on Thu Nov 7 2024 21:29:23 for ATLAS Offline Software by
1.8.18