Definition at line 13 of file EcalCondDB.py.
References EcalCondTools.compare(), EcalCondTools.dumpXML(), spr.find(), EcalCondTools.histo(), EcalCondTools.listIovs(), EcalCondTools.listTags(), EcalCondTools.plot(), and edm.print().
16 print(
" EcalCondDB - inpect EcalCondDB")
19 print(
" EcalCondDB [options] [command] [command_options]")
23 print(
"Specify short options as '-o foo', long options as '--option=foo'")
25 print(
" -c, --connect= [connectstring]")
26 print(
" specify database, default frontier://FrontierProd/CMS_COND_31X_ECAL")
28 print(
" -P, --authpath= [authenticationpath], default /afs/cern.ch/cms/DB/conddb ")
30 print(
"COMMAND OPTIONS")
32 print(
" -t, --tag= [tag,file] specify tag or xml file (histo,compare)")
34 print(
" -s, --since= [runnumber] specify since")
38 print(
" -l, --listtags list all tags and exit")
40 print(
" -m, --listiovs list iovs for a given tag")
41 print(
" Example EcalCondDB.py -t tag")
43 print(
" -d, --dump= [file] dump record to xml file")
44 print(
" Example EcalCondDB.py -d file.xml -t tag -s since")
46 print(
" -p, --plot= [file] plot record to file, extension specifies ",\
47 "format (.root,.png,.jpg,.gif,.svg)")
48 print(
" Example: EcalCondDB.py -p=plot.png -t tag -s since")
51 print(
" -q, --compare= [file]")
52 print(
" compare two tags and write histograms to file, extension",\
55 print(
" EcalCondDB -q=h.root -t tag1 -s since1 -t tag2 -s since2")
57 print(
" -g, --histo= [file] make histograms and write to file")
59 print(
" EcalCondDB -g=h.png -t tag1 -s since1 ")
63 opts, args = getopt.getopt(sys.argv[1:],
64 "c:P:t:ld:p:q:g:ms:h",
65 [
"connect=",
"authpath=",
"tag=",
"listtags",\
66 "dump=",
"plot=",
"compare=",
"histo=",
"listiovs",\
S & print(S &os, JobReport::InputFile const &f)