5 from __future__
import print_function
6 import DataQualityUtils.hancool_histo_mod
as mod
14 cmdi = sys.argv[0].rfind(
"/")
15 cmd = sys.argv[0][cmdi+1:]
17 print(
"Usage: ", cmd,
"<runnumber> <path> <dbConnection> <detstatus> <dbtag>")
19 print(
"Usage: ", cmd,
"(picking up default settings)")
27 if __name__ ==
"__main__":
29 if (
not ((len(sys.argv) == 1)
or (len(sys.argv) == 6)
or (len(sys.argv) == 3))):
35 dbConnectionHisto =
""
41 if (len(sys.argv) == 6):
42 inputFilePath=sys.argv[1]
43 input_run = sys.argv[2]
44 dbConnectionHisto = sys.argv[3]
45 dqmfOflHisto = sys.argv[4]
46 dbTagName = sys.argv[5]
48 elif (len(sys.argv) == 3):
49 inputFilePath=sys.argv[1]
50 input_run = sys.argv[2]
52 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"
53 dqmfOflHisto =
"/GLOBAL/DETSTATUS/DQMFOFLH"
54 dbTagName =
"DetStatusDQMFOFLH-FDR2-01"
58 inputFilePath =
"/afs/cern.ch/user/a/atlasdqm/dqmdisk1/han_results/tier0/FDR2b/1/physics_Express/"
60 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"
61 dqmfOflHisto =
"/GLOBAL/DETSTATUS/DQMFOFLH"
62 dbTagName =
"DetStatusDQMFOFLH-FDR2-02"
64 mod.hancool_histo( inputFilePath, input_run, dbConnectionHisto,dqmfOflHisto, dbTagName)