CMS 3D CMS Logo

Functions
EcalCondDB Namespace Reference

Functions

def usage ()
 

Function Documentation

◆ usage()

def EcalCondDB.usage ( )

Definition at line 13 of file EcalCondDB.py.

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

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

edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
usage
void usage()
Definition: array2xmlEB.cc:14