CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 58 of file loadConditions.py.

References dumpparser.parse().

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

Definition at line 19 of file loadConditions.py.

References print().

19 
20 def usage():
21 
22  print("Usage: cmsRun loadConditions.py file=FILENAME record=RECORD db=CONNECTSTRING")
23  print(" file=FILE")
24  print(" specify xml file to load to DB")
25  print()
26  print(" record=RECORD")
27  print(" specify record to be loaded (EcalChannelStatus, etc)")
28  print()
29  print(" db=CONNECTSTRING")
30  print(" specify connection string, e.g. sqlite_file=file.db")
31  print()
32 
33 
34 usage()
35 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

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

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

tuple loadConditions.firstValue = cms.uint64(1)

Definition at line 88 of file loadConditions.py.

tuple loadConditions.interval = cms.uint64(1)

Definition at line 90 of file loadConditions.py.

tuple loadConditions.lastValue = cms.uint64(1)

Definition at line 89 of file loadConditions.py.

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

Definition at line 105 of file loadConditions.py.

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

Definition at line 111 of file loadConditions.py.

tuple loadConditions.options = VarParsing.VarParsing()

Definition at line 36 of file loadConditions.py.

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

Definition at line 84 of file loadConditions.py.

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

Definition at line 110 of file loadConditions.py.

tuple loadConditions.SinceAppendMode = cms.bool(True)

Definition at line 112 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 113 of file loadConditions.py.

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

Definition at line 87 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 101 of file loadConditions.py.