ATLAS Offline Software
DataQuality
ZLumiScripts
grid
merge.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
# Simple script to invoke DQHistogramMerge for merging Grid output
4
5
from
__future__
import
print_function
6
7
import
commands, argparse, sys
8
parser = argparse.ArgumentParser()
9
parser.add_argument(
'-o'
, help=
'outfilename'
)
10
parser.add_argument(
'infiles'
, nargs=
'+'
, help=
'infilenames'
)
11
args=parser.parse_args()
12
13
with
open
(
'merge.txt'
,
'w'
)
as
txtfile:
14
for
f
in
args.infiles:
15
txtfile.write(f +
'\n'
)
16
17
status, output = commands.getstatusoutput(
'DQHistogramMerge.py merge.txt %s'
% args.o)
18
print
(output)
19
sys.exit(status)
20
Trk::open
@ open
Definition:
BinningType.h:40
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition:
SGImplSvc.cxx:70
Generated on Thu Nov 7 2024 21:20:54 for ATLAS Offline Software by
1.8.18