CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
loadConditions Namespace Reference

Functions

def readTagAndSince
 
def usage
 

Variables

dictionary analyzer_
 
tuple firstValue = cms.uint64(1)
 
tuple interval = cms.uint64(1)
 
tuple lastValue = cms.uint64(1)
 
tuple logconnect = cms.untracked.string('sqlite_file:log.db')
 
tuple loggingOn = cms.untracked.bool(True)
 
tuple options = VarParsing.VarParsing()
 
tuple process = cms.Process("LoadEcalConditions")
 
tuple record = cms.string(options.record+'Rcd')
 
tuple SinceAppendMode = cms.bool(True)
 
tuple Source
 
tuple timetype = cms.string('runnumber')
 
tuple toPut
 

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 triggerExpression.parse().

57 
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 
Evaluator * parse(const T &text)
def loadConditions.usage ( )

Definition at line 18 of file loadConditions.py.

18 
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 

Variable Documentation

dictionary loadConditions.analyzer_
Initial value:
1 = {'EcalGainRatios':'EcalGainRatiosAnalyzer', \
2  'EcalADCToGeVConstant':'EcalADCToGeVConstantAnalyzer', \
3  'EcalWeightXtalGroups':'EcalWeightGroupAnalyzer', \
4  'EcalChannelStatus':'EcalChannelStatusHandler', \
5  'EcalChannelStatus':'EcalChannelStatusAnalyzer', \
6  'EcalTBWeights':'EcalTBWeightsAnalyzer', \
7  'EcalIntercalibConstants':'EcalIntercalibConstantsAnalyzer', \
8  'EcalIntercalibConstantsMC':'EcalIntercalibConstantsMCAnalyzer', \
9  'EcalIntercalibErrors':'EcalIntercalibErrorsAnalyzer'
10  }

Definition at line 70 of file loadConditions.py.

Referenced by fwlite::AnalyzerWrapper< T >.analyze(), and edm::AnalyzerWrapper< T >.AnalyzerWrapper().

tuple loadConditions.firstValue = cms.uint64(1)

Definition at line 87 of file loadConditions.py.

tuple loadConditions.interval = cms.uint64(1)

Definition at line 89 of file loadConditions.py.

tuple loadConditions.lastValue = cms.uint64(1)

Definition at line 88 of file loadConditions.py.

tuple loadConditions.logconnect = cms.untracked.string('sqlite_file:log.db')

Definition at line 104 of file loadConditions.py.

tuple loadConditions.loggingOn = cms.untracked.bool(True)

Definition at line 110 of file loadConditions.py.

tuple loadConditions.options = VarParsing.VarParsing()

Definition at line 35 of file loadConditions.py.

tuple loadConditions.process = cms.Process("LoadEcalConditions")

Definition at line 83 of file loadConditions.py.

tuple loadConditions.record = cms.string(options.record+'Rcd')

Definition at line 109 of file loadConditions.py.

tuple loadConditions.SinceAppendMode = cms.bool(True)

Definition at line 111 of file loadConditions.py.

tuple loadConditions.Source
Initial value:
1 = cms.PSet(
2  xmlFile = cms.untracked.string(options.file),
3  since = cms.untracked.int64(int(since_)) #python will make the int as
4  #long as needed
5  )

Definition at line 112 of file loadConditions.py.

tuple loadConditions.timetype = cms.string('runnumber')

Definition at line 86 of file loadConditions.py.

tuple loadConditions.toPut
Initial value:
1 = cms.VPSet(cms.PSet(
2  record = cms.string(options.record+'Rcd'),
3  tag = cms.string(tag_)
4  ))

Definition at line 100 of file loadConditions.py.