CMS 3D CMS Logo

Functions | Variables
loadConditions Namespace Reference

Functions

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

Variables

dictionary analyzer_
 
 authenticationPath
 
 connect
 
 firstValue
 
 interval
 
 lastValue
 
 logconnect
 
 loggingOn
 
 options = VarParsing.VarParsing ()
 
 p
 
 PoolDBOutputService
 
 popconAnalyzer
 
 process = cms.Process("LoadEcalConditions")
 
 record
 
 since_
 
 SinceAppendMode
 
 source
 
 Source
 
 tag_
 
 timetype
 
 toPut
 

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 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

Variable Documentation

◆ analyzer_

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

◆ authenticationPath

loadConditions.authenticationPath

Definition at line 96 of file loadConditions.py.

◆ connect

loadConditions.connect

Definition at line 95 of file loadConditions.py.

◆ firstValue

loadConditions.firstValue

Definition at line 88 of file loadConditions.py.

◆ interval

loadConditions.interval

Definition at line 90 of file loadConditions.py.

◆ lastValue

loadConditions.lastValue

Definition at line 89 of file loadConditions.py.

◆ logconnect

loadConditions.logconnect

Definition at line 105 of file loadConditions.py.

◆ loggingOn

loadConditions.loggingOn

Definition at line 111 of file loadConditions.py.

◆ options

loadConditions.options = VarParsing.VarParsing ()

Definition at line 36 of file loadConditions.py.

◆ p

loadConditions.p

Definition at line 121 of file loadConditions.py.

◆ PoolDBOutputService

loadConditions.PoolDBOutputService

Definition at line 98 of file loadConditions.py.

◆ popconAnalyzer

loadConditions.popconAnalyzer

Definition at line 109 of file loadConditions.py.

◆ process

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

Definition at line 84 of file loadConditions.py.

◆ record

loadConditions.record

Definition at line 110 of file loadConditions.py.

◆ since_

loadConditions.since_

Definition at line 68 of file loadConditions.py.

◆ SinceAppendMode

loadConditions.SinceAppendMode

Definition at line 112 of file loadConditions.py.

◆ source

loadConditions.source

Definition at line 86 of file loadConditions.py.

◆ Source

loadConditions.Source

Definition at line 113 of file loadConditions.py.

◆ tag_

loadConditions.tag_

◆ timetype

loadConditions.timetype

Definition at line 87 of file loadConditions.py.

◆ toPut

loadConditions.toPut

Definition at line 101 of file loadConditions.py.