Definition at line 12 of file EcalCondDB.py.
References EcalCondTools.compare(), EcalCondTools.dumpXML(), spr.find(), EcalCondTools.histo(), EcalCondTools.listIovs(), EcalCondTools.listTags(), EcalCondTools.plot(), and edm.print().
15 print(
" EcalCondDB - inpect EcalCondDB")
18 print(
" EcalCondDB [options] [command] [command_options]")
22 print(
"Specify short options as '-o foo', long options as '--option=foo'")
24 print(
" -c, --connect= [connectstring]")
25 print(
" specify database, default frontier://FrontierProd/CMS_COND_31X_ECAL")
27 print(
" -P, --authpath= [authenticationpath], default /afs/cern.ch/cms/DB/conddb ")
29 print(
"COMMAND OPTIONS")
31 print(
" -t, --tag= [tag,file] specify tag or xml file (histo,compare)")
33 print(
" -s, --since= [runnumber] specify since")
37 print(
" -l, --listtags list all tags and exit")
39 print(
" -m, --listiovs list iovs for a given tag")
40 print(
" Example EcalCondDB.py -t tag")
42 print(
" -d, --dump= [file] dump record to xml file")
43 print(
" Example EcalCondDB.py -d file.xml -t tag -s since")
45 print(
" -p, --plot= [file] plot record to file, extension specifies ",\
46 "format (.root,.png,.jpg,.gif,.svg)")
47 print(
" Example: EcalCondDB.py -p=plot.png -t tag -s since")
50 print(
" -q, --compare= [file]")
51 print(
" compare two tags and write histograms to file, extension",\
54 print(
" EcalCondDB -q=h.root -t tag1 -s since1 -t tag2 -s since2")
56 print(
" -g, --histo= [file] make histograms and write to file")
58 print(
" EcalCondDB -g=h.png -t tag1 -s since1 ")
62 opts, args = getopt.getopt(sys.argv[1:],
63 "c:P:t:ld:p:q:g:ms:h",
64 [
"connect=",
"authpath=",
"tag=",
"listtags",\
65 "dump=",
"plot=",
"compare=",
"histo=",
"listiovs",\
S & print(S &os, JobReport::InputFile const &f)