CMS 3D CMS Logo

Functions
loadConditions Namespace Reference

Functions

def readTagAndSince (filename, headertag='EcalCondHeader')
 
def usage ()
 

Function Documentation

def loadConditions.readTagAndSince (   filename,
  headertag = 'EcalCondHeader' 
)
Read tag and since from EcalCondHeader in XML file 

Definition at line 57 of file loadConditions.py.

References createfilelist.int, and dumpparser.parse().

57 def readTagAndSince(filename, headertag='EcalCondHeader'):
58  '''Read tag and since from EcalCondHeader in XML file '''
59  root = parse(filename).getroot()
60  header = root.find(headertag)
61  since = header.findtext('since')
62  tag = header.findtext('tag')
63 
64  return tag,since
65 
66 
def readTagAndSince(filename, headertag='EcalCondHeader')
def parse(path, config)
Definition: dumpparser.py:13
def loadConditions.usage ( )

Definition at line 18 of file loadConditions.py.

18 def usage():
19 
20  print "Usage: cmsRun loadConditions.py file=FILENAME record=RECORD db=CONNECTSTRING"
21  print " file=FILE"
22  print " specify xml file to load to DB"
23  print
24  print " record=RECORD"
25  print " specify record to be loaded (EcalChannelStatus, etc)"
26  print
27  print " db=CONNECTSTRING"
28  print " specify connection string, e.g. sqlite_file=file.db"
29  print
30 
31 
32 usage()
33 
34