ATLAS Offline Software
DataQuality
DataQualityUtils
scripts
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
5
from
__future__
import
print_function
6
import
DataQualityUtils.DQHistogramMergeMod
as
mod
7
import
sys, os
8
9
10
os.environ[
'TDAQ_ERS_NO_SIGNAL_HANDLERS'
] =
'1'
11
12
def
usage
():
13
cmd = sys.argv[0].
split
(
"/"
)[-1]
14
print
(
"Usage: "
, cmd,
"<input_list_file_name> <merged_file_name> [directory_regexp] [histogram_regexp] [run_post_processing [is_incremental_merge]]"
)
15
print
(
"If you don't give any regular expressions, this script will act like DQHistogramMerge.py <infilelist> <outfile> False"
)
16
17
18
19
if
__name__ ==
"__main__"
:
20
argc = len(sys.argv)
21
22
if
argc < 3
or
argc > 7:
23
usage
()
24
sys.exit(0)
25
26
dirRegex =
".*"
27
if
argc >= 4:
28
dirRegex = sys.argv[3]
29
30
histRegex =
".*"
31
if
argc >= 5:
32
histRegex = sys.argv[4]
33
34
runPostProcessing =
False
35
if
argc >= 6:
36
runPostProcessing = sys.argv[5]
in
[
"True"
,
"1"
]
37
38
isIncremental =
False
39
if
argc >= 7:
40
isIncremental = sys.argv[6]
in
[
"True"
,
"1"
]
41
42
mod.DQHistogramMerge(sys.argv[1], sys.argv[2], runPostProcessing, dirRegex, histRegex, isIncremental=isIncremental)
DQHistogramMergeRegExp.usage
def usage()
Get usable signal handlers.
Definition:
DQHistogramMergeRegExp.py:12
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition:
SGImplSvc.cxx:70
Trk::split
@ split
Definition:
LayerMaterialProperties.h:38
Generated on Thu Nov 7 2024 21:13:49 for ATLAS Offline Software by
1.8.18