ATLAS Offline Software
Loading...
Searching...
No Matches
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
7import sys
8
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
21if __name__ == "__main__":