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.

References createfilelist.int, and 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 
vector< string > parse(string line, const string &delimiter)
def readTagAndSince(filename, headertag='EcalCondHeader')

◆ usage()

def loadConditions.usage ( )

Definition at line 19 of file loadConditions.py.

References 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 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
void usage()
Definition: array2xmlEB.cc:14