ATLAS Offline Software
Generators
PowhegControl
python
algorithms
postprocessors
output_tarball_preparer.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaCommon
import
Logging
4
from
...decorators
import
timed
5
import
subprocess
6
7
8
logger = Logging.logging.getLogger(
"PowhegControl"
)
9
10
11
@
timed
(
"output tarball preparer"
)
12
def
output_tarball_preparer
(output_events_name, output_tarball_name):
13
"""! Tar events if LHE output is requested.
14
15
@param output_events_name LHE events file name.
16
@param output_tarball_name Tar-ed LHE file name.
17
18
@author James Robinson <james.robinson@cern.ch>
19
"""
20
logger.info(
"Tar-ing output events into {}"
.
format
(output_tarball_name))
21
for
line
in
subprocess.check_output([
"tar"
,
"cvzf"
, output_tarball_name, output_events_name], stderr=subprocess.STDOUT).splitlines():
22
logger.info(line)
python.algorithms.postprocessors.output_tarball_preparer.output_tarball_preparer
def output_tarball_preparer(output_events_name, output_tarball_name)
Tar events if LHE output is requested.
Definition:
output_tarball_preparer.py:12
python.decorators.timed.timed
def timed(name)
Decorator to output function execution time.
Definition:
timed.py:12
vtune_athena.format
format
Definition:
vtune_athena.py:14
Generated on Sat Oct 5 2024 21:23:19 for ATLAS Offline Software by
1.8.18