CMS 3D CMS Logo

Functions
loadConditions Namespace Reference

Functions

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

Function Documentation

◆ readTagAndSince()

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

Definition at line 58 of file loadConditions.py.

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 

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

◆ usage()

def loadConditions.usage ( )

Definition at line 19 of file loadConditions.py.

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 

References print().

loadConditions.readTagAndSince
def readTagAndSince(filename, headertag='EcalCondHeader')
Definition: loadConditions.py:58
dumpparser.parse
def parse(path, config)
Definition: dumpparser.py:13
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
usage
void usage()
Definition: array2xmlEB.cc:14