ATLAS Offline Software
DataQuality
DataQualityUtils
scripts
DQHistogramPrintStatistics.py
Go to the documentation of this file.
1
#!/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
os
7
8
CWD = os.getcwd()
# noqa: E402
9
10
import
sys
11
12
import
ROOT
# noqa: F401
13
16
from
ROOT
import
gSystem
17
os.chdir(CWD)
18
19
20
gSystem.Load(
'libDataQualityUtils'
)
21
from
ROOT
import
dqutils
22
23
24
def
DQHistogramPrintStatistics
( inputFileName ):
25
26
mf =
dqutils.MonitoringFile
(inputFileName)
27
mf.printStatistics()
28
29
30
def
usage
():
31
cmdi = sys.argv[0].rfind(
"/"
)
32
cmd = sys.argv[0][cmdi+1:]
33
print
(
"Usage: "
, cmd,
"<input_file_name>"
)
34
35
36
37
40
41
if
__name__ ==
"__main__"
:
42
43
if
len(sys.argv) != 2:
44
usage
()
45
sys.exit(0)
46
47
DQHistogramPrintStatistics
( sys.argv[1] )
dqutils::MonitoringFile
Definition:
MonitoringFile.h:54
DQHistogramPrintStatistics.usage
def usage()
Definition:
DQHistogramPrintStatistics.py:30
DQHistogramPrintStatistics.DQHistogramPrintStatistics
def DQHistogramPrintStatistics(inputFileName)
Definition:
DQHistogramPrintStatistics.py:24
DQHistogramPrintStatistics
Definition:
DQHistogramPrintStatistics.py:1
print
void print(char *figname, TCanvas *c1)
Definition:
TRTCalib_StrawStatusPlots.cxx:25
Generated on Sun Dec 22 2024 21:09:30 for ATLAS Offline Software by
1.8.18