ATLAS Offline Software
Loading...
Searching...
No Matches
DQHistogramMergeRegExp.py
Go to the documentation of this file.
1#!/usr/bin/env python
2
3# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4
5import DataQualityUtils.DQHistogramMergeMod as mod
6import sys, os
7
8
9os.environ['TDAQ_ERS_NO_SIGNAL_HANDLERS'] = '1'
10
11def usage():
12 cmd = sys.argv[0].split("/")[-1]
13 print("Usage: ", cmd, "<input_list_file_name> <merged_file_name> [directory_regexp] [histogram_regexp] [run_post_processing [is_incremental_merge]]")
14 print("If you don't give any regular expressions, this script will act like DQHistogramMerge.py <infilelist> <outfile> False")
15
16
17
18if __name__ == "__main__":
19 argc = len(sys.argv)
20
21 if argc < 3 or argc > 7:
22 usage()
23 sys.exit(0)
24
25 dirRegex = ".*"
26 if argc >= 4:
27 dirRegex = sys.argv[3]
28
29 histRegex = ".*"
30 if argc >= 5:
31 histRegex = sys.argv[4]
32
33 runPostProcessing = False
34 if argc >= 6:
35 runPostProcessing = sys.argv[5] in ["True", "1"]
36
37 isIncremental = False
38 if argc >= 7:
39 isIncremental = sys.argv[6] in ["True", "1"]
40
41 mod.DQHistogramMerge(sys.argv[1], sys.argv[2], runPostProcessing, dirRegex, histRegex, isIncremental=isIncremental)
void print(char *figname, TCanvas *c1)
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition hcg.cxx:177