CMS 3D CMS Logo

Functions
EcalCondDB Namespace Reference

Functions

def usage ()
 

Function Documentation

def EcalCondDB.usage ( )

Definition at line 11 of file EcalCondDB.py.

References EcalCondTools.compare(), EcalCondTools.dumpXML(), spr.find(), EcalCondTools.histo(), EcalCondTools.listIovs(), EcalCondTools.listTags(), and EcalCondTools.plot().

11 def usage():
12  print
13  print "NAME "
14  print " EcalCondDB - inpect EcalCondDB"
15  print
16  print "SYNOPSIS"
17  print " EcalCondDB [options] [command] [command_options]"
18  print
19  print "OPTIONS"
20  print
21  print "Specify short options as '-o foo', long options as '--option=foo'"
22  print
23  print " -c, --connect= [connectstring]"
24  print " specify database, default frontier://FrontierProd/CMS_COND_31X_ECAL"
25  print
26  print " -P, --authpath= [authenticationpath], default /afs/cern.ch/cms/DB/conddb "
27  print
28  print "COMMAND OPTIONS"
29  print
30  print " -t, --tag= [tag,file] specify tag or xml file (histo,compare)"
31  print
32  print " -s, --since= [runnumber] specify since"
33 
34  print "COMMANDS"
35 
36  print " -l, --listtags list all tags and exit"
37  print
38  print " -m, --listiovs list iovs for a given tag"
39  print " Example EcalCondDB.py -t tag"
40  print
41  print " -d, --dump= [file] dump record to xml file"
42  print " Example EcalCondDB.py -d file.xml -t tag -s since"
43  print
44  print " -p, --plot= [file] plot record to file, extension specifies ",\
45  "format (.root,.png,.jpg,.gif,.svg)"
46  print " Example: EcalCondDB.py -p=plot.png -t tag -s since"
47  print
48 
49  print " -q, --compare= [file]"
50  print " compare two tags and write histograms to file, extension",\
51  " specifies format."
52  print " Example:"
53  print " EcalCondDB -q=h.root -t tag1 -s since1 -t tag2 -s since2"
54  print
55  print " -g, --histo= [file] make histograms and write to file"
56  print " Example : "
57  print " EcalCondDB -g=h.png -t tag1 -s since1 "
58  print
59 
60 try:
61  opts, args = getopt.getopt(sys.argv[1:],
62  "c:P:t:ld:p:q:g:ms:h",
63  ["connect=","authpath=","tag=","listtags",\
64  "dump=","plot=","compare=","histo=","listiovs",\
65  "since=","help"])
66 
67  if not len(opts):
68  usage()
69  sys.exit(0)
70 
def usage()
Definition: EcalCondDB.py:11