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 58 of file loadConditions.py.

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

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

Definition at line 19 of file loadConditions.py.

References edm.print().

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