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