ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
DataQualityUtils
scripts
hancool_histo.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
import
DataQualityUtils.hancool_histo_mod
as
mod
6
7
import
sys
8
9
10
11
12
def
usage
():
13
cmdi = sys.argv[0].rfind(
"/"
)
14
cmd = sys.argv[0][cmdi+1:]
15
print
(
""
)
16
print
(
"Usage: "
, cmd,
"<runnumber> <path> <dbConnection> <detstatus> <dbtag>"
)
17
print
(
"or"
)
18
print
(
"Usage: "
, cmd,
"(picking up default settings)"
)
19
print
(
""
)
20
21
22
25
26
if
__name__ ==
"__main__"
:
27
28
if
(
not
((len(sys.argv) == 1)
or
(len(sys.argv) == 6)
or
(len(sys.argv) == 3))):
29
usage
()
30
sys.exit(0)
31
32
inputFilePath =
""
33
input_run = -1
34
dbConnectionHisto =
""
35
dqmfOflHisto =
""
36
dbTagName =
""
37
38
# Input
39
40
if
(len(sys.argv) == 6):
41
inputFilePath=sys.argv[1]
# path name
42
input_run = sys.argv[2]
# run number
43
dbConnectionHisto = sys.argv[3]
# COOL db connection string
44
dqmfOflHisto = sys.argv[4]
# dqmfOfl
45
dbTagName = sys.argv[5]
# dbTagName
46
47
elif
(len(sys.argv) == 3):
48
inputFilePath=sys.argv[1]
# path name
49
input_run = sys.argv[2]
# run number
50
# dbConnectionHisto = "sqlite://;schema=/afs/cern.ch/user/a/atlasdqm/w0/users/onofrio/DQMFTutorial_2/14.0.0/WorkArea/MyCOOL_histo_FDR2b.db;dbname=OFLP200"
51
dbConnectionHisto =
"sqlite://;schema=/afs/cern.ch/user/a/atlasdqm/w0/users/onofrio/DQMF_08112008/14.2.10/WorkArea/python/MyCOOL_histo_FDR2c.db;dbname=OFLP200"
52
dqmfOflHisto =
"/GLOBAL/DETSTATUS/DQMFOFLH"
53
dbTagName =
"DetStatusDQMFOFLH-FDR2-01"
54
55
else
:
# set to defaults
56
input_run = 52280
57
inputFilePath =
"/afs/cern.ch/user/a/atlasdqm/dqmdisk1/han_results/tier0/FDR2b/1/physics_Express/"
58
# dbConnectionHisto = "sqlite://;schema=/afs/cern.ch/user/a/atlasdqm/w0/users/onofrio/DQMFTutorial_2/14.0.0/WorkArea/MyCOOL_histo_FDR2b.db;dbname=OFLP200"
59
dbConnectionHisto =
"sqlite://;schema=/afs/cern.ch/user/a/atlasdqm/w0/users/onofrio/DQMF_08112008/14.2.10/WorkArea/python/MyCOOL_histo_FDR2c.db;dbname=OFLP200"
60
dqmfOflHisto =
"/GLOBAL/DETSTATUS/DQMFOFLH"
61
dbTagName =
"DetStatusDQMFOFLH-FDR2-02"
62
63
mod.hancool_histo( inputFilePath, input_run, dbConnectionHisto,dqmfOflHisto, dbTagName)
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
hancool_histo.usage
usage()
Definition
hancool_histo.py:12
Generated on
for ATLAS Offline Software by
1.17.0