ATLAS Offline Software
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 
6 import commands, argparse, sys
7 parser = argparse.ArgumentParser()
8 parser.add_argument('-o', help='outfilename')
9 parser.add_argument('infiles', nargs='+', help='infilenames')
10 args=parser.parse_args()
11 
12 with open('merge.txt', 'w') as txtfile:
13  for f in args.infiles:
14  txtfile.write(f + '\n')
15 
16 status, output = commands.getstatusoutput('DQHistogramMerge.py merge.txt %s' % args.o)
17 print(output)
18 sys.exit(status)
19 
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
Trk::open
@ open
Definition: BinningType.h:40