ATLAS Offline Software
Loading...
Searching...
No Matches
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
5import os
6
7CWD = os.getcwd() # noqa: E402
8
9import sys
10
11import ROOT # noqa: F401
12
15from ROOT import gSystem
16os.chdir(CWD)
17
18
19gSystem.Load('libDataQualityUtils')
20from ROOT import dqutils
21
22
23def DQHistogramPrintStatistics( inputFileName ):
24
25 mf = dqutils.MonitoringFile(inputFileName)
26 mf.printStatistics()
27
28
29def usage():
30 cmdi = sys.argv[0].rfind("/")
31 cmd = sys.argv[0][cmdi+1:]
32 print("Usage: ", cmd, "<input_file_name>")
33
34
35
36
39
40if __name__ == "__main__":
41
42 if len(sys.argv) != 2:
43 usage()
44 sys.exit(0)
45
46 DQHistogramPrintStatistics( sys.argv[1] )
void print(char *figname, TCanvas *c1)