CMS 3D CMS Logo

Functions
EcalCondDB Namespace Reference

Functions

def usage ()
 

Function Documentation

def EcalCondDB.usage ( )

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().

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