5 from __future__
import print_function
6 import DataQualityUtils.hancoolmod
as mod
12 cmdi = sys.argv[0].rfind(
"/")
13 cmd = sys.argv[0][cmdi+1:]
15 print(
"Usage: ", cmd,
"<runnumber> <path> <dbConnection> <detstatus> <dbtag>")
17 print(
"Usage: ", cmd,
"(picking up default settings)")
21 if __name__ ==
"__main__":
23 if (
not ((len(sys.argv) == 1)
or (len(sys.argv) == 5)
or (len(sys.argv) == 6))):
33 if (len(sys.argv) == 6):
34 runNumber =
int(sys.argv[1])
35 filePath = sys.argv[2]
36 dbConnection = sys.argv[3]
40 elif (len(sys.argv) == 5):
41 runNumber =
int(sys.argv[1])
42 filePath = sys.argv[2]
43 dbConnection = sys.argv[3]
49 filePath =
"/afs/cern.ch/user/a/atlasdqm/dqmdisk/han_results/tier0/FDR2a/1/physics_Express/"
50 dbConnection =
"sqlite://;schema=MyCOOL_histo.db;dbname=CONDBR2"
51 dqmfOfl =
"/GLOBAL/DETSTATUS/DQMFOFL"
54 mod.hancool(runNumber,filePath,dbConnection)