CMS 3D CMS Logo

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

Functions

def summaryOK
 

Variables

string action = "store_true"
 
list avoid = ['index', 'print']
 
string command = ''
 
string compRoot = ''
 
tuple compRootRE = re.compile(r' --compRoot=(\S+)')
 
tuple countRE = re.compile(r'^count_(\w+)')
 
tuple cppExceptionRE = re.compile(r'\(C\+\+ exception\)')
 
tuple creatingSoRE = re.compile(r'creating shared library (\S+)')
 
tuple cwd = os.getcwd()
 
tuple descriptionRE = re.compile(r'^edmOneToOneComparison.py (\w+).txt')
 
string diffCmd = 'diffTreeTool.py --skipUndefined %s %s %s'
 
dictionary diffOutput = {}
 
tuple dummyRE = re.compile(r'edm::Wrapper<dummyType>')
 
tuple edmCommandRE = re.compile(r'^(edmOneToOneComparison.py .+?)\s*$')
 
tuple files = glob(logfilePrefix)
 
tuple finishRE = re.compile(r'finish')
 
string goShlib = ''
 
string help = "Display counts only."
 
string key = ''
 
tuple labelErrorRE = re.compile(r"labelDict = GenObject._ntupleDict\[tupleName\]\['_label'\]")
 
tuple line = line.rstrip('\n')
 
tuple loadingSoRE = re.compile(r'loading (genobjectrootlibs/\w+)')
 
string logdir = ''
 
tuple logfilePrefix = percentRE.sub('*', args[0])
 
tuple match = edmCommandRE.search(line)
 
tuple mismatches = problemTypes.get('mismatch', 0)
 
tuple missingCfgRE = re.compile(r"raise.+Can't open configuration")
 
tuple missingLabelRE = re.compile(r'not able to get')
 
tuple noEdmWrapperRE = re.compile(r"'ROOT' has no attribute 'edm::Wrapper")
 
tuple nonSpacesRE = re.compile(r'\S')
 
string objectName = ''
 
tuple ok = summaryOK(summary)
 
 oldFiles = files
 
tuple parser = optparse.OptionParser("Usage: %prog logfilePrefix [directory]")
 
tuple percentRE = re.compile(r'%')
 
dictionary problemDict
 
dictionary problems = {}
 
tuple problemSet = set()
 
dictionary problemTypes = {}
 
 ran = False
 
 reading = False
 
string soName = ''
 
tuple source = open(log, 'r')
 
tuple startOutputRE = re.compile(r'^Summary$')
 
int succeeded = 0
 
 success = False
 
tuple success1RE = re.compile(r"{'eventsCompared':\s+(\d+),\s+'count_(\S+)':\s+(\d+)\s*}")
 
tuple success2RE = re.compile(r"{'count_(\S+)':\s+(\d+),\s+'eventsCompared':\s+(\d+)\s*}")
 
dictionary successes = {}
 
tuple summary = eval(summaryLines)
 
string summaryLines = ''
 
tuple terminatedRE = re.compile(r'Terminated\s+\$EXE\s+\$@')
 
int total = 0
 
tuple totalFiles = len(files)
 
tuple uint32RE = re.compile(r"Config file parser error 'operatoruint32_t")
 
list variables = ['eta', 'phi']
 
tuple varNames = summary.get(objectName, {})
 
int weird = 0
 

Function Documentation

def summarizeEdmComparisonLogfiles.summaryOK (   summary)
returns a tuple.  First value is true if summary hasn't found
any problems, else false.

Definition at line 12 of file summarizeEdmComparisonLogfiles.py.

12 
13 def summaryOK (summary):
14  """returns a tuple. First value is true if summary hasn't found
15  any problems, else false."""
16  retval = True
17  count = -1
18  compared = summary.get('eventsCompared', -1)
19  if len( summary.keys()) != 2:
20  retval = False
21  for key,value in summary.iteritems():
22  if countRE.search(key):
23  count = value
24  return (retval, {'count':count, 'compared':compared})

Variable Documentation

string summarizeEdmComparisonLogfiles.action = "store_true"

Definition at line 65 of file summarizeEdmComparisonLogfiles.py.

list summarizeEdmComparisonLogfiles.avoid = ['index', 'print']

Definition at line 10 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.command = ''

Definition at line 106 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.compRoot = ''

Definition at line 104 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.compRootRE = re.compile(r' --compRoot=(\S+)')

Definition at line 34 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.countRE = re.compile(r'^count_(\w+)')

Definition at line 9 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.cppExceptionRE = re.compile(r'\(C\+\+ exception\)')

Definition at line 41 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.creatingSoRE = re.compile(r'creating shared library (\S+)')

Definition at line 33 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.cwd = os.getcwd()

Definition at line 85 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.descriptionRE = re.compile(r'^edmOneToOneComparison.py (\w+).txt')

Definition at line 35 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.diffCmd = 'diffTreeTool.py --skipUndefined %s %s %s'

Definition at line 191 of file summarizeEdmComparisonLogfiles.py.

dictionary summarizeEdmComparisonLogfiles.diffOutput = {}

Definition at line 107 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.dummyRE = re.compile(r'edm::Wrapper<dummyType>')

Definition at line 44 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.edmCommandRE = re.compile(r'^(edmOneToOneComparison.py .+?)\s*$')

Definition at line 36 of file summarizeEdmComparisonLogfiles.py.

list summarizeEdmComparisonLogfiles.files = glob(logfilePrefix)

Definition at line 90 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.finishRE = re.compile(r'finish')

Definition at line 43 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.goShlib = ''

Definition at line 108 of file summarizeEdmComparisonLogfiles.py.

string summarizeEdmComparisonLogfiles.help = "Display counts only."

Definition at line 66 of file summarizeEdmComparisonLogfiles.py.

string summarizeEdmComparisonLogfiles.key = ''

Definition at line 160 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.labelErrorRE = re.compile(r"labelDict = GenObject._ntupleDict\[tupleName\]\['_label'\]")

Definition at line 38 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.line = line.rstrip('\n')

Definition at line 117 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.loadingSoRE = re.compile(r'loading (genobjectrootlibs/\w+)')

Definition at line 32 of file summarizeEdmComparisonLogfiles.py.

list summarizeEdmComparisonLogfiles.logdir = ''

Definition at line 86 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.logfilePrefix = percentRE.sub('*', args[0])

Definition at line 82 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.match = edmCommandRE.search(line)

Definition at line 118 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.mismatches = problemTypes.get('mismatch', 0)

Definition at line 203 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.missingCfgRE = re.compile(r"raise.+Can't open configuration")

Definition at line 42 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.missingLabelRE = re.compile(r'not able to get')

Definition at line 39 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.noEdmWrapperRE = re.compile(r"'ROOT' has no attribute 'edm::Wrapper")

Definition at line 45 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.nonSpacesRE = re.compile(r'\S')

Definition at line 47 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.objectName = ''

Definition at line 103 of file summarizeEdmComparisonLogfiles.py.

Referenced by CastorHardcodeCalibrations.CastorHardcodeCalibrations(), CastorTextCalibrations.CastorTextCalibrations(), MuonMillepedeAlgorithm.collect(), HcalHardcodeCalibrations.HcalHardcodeCalibrations(), HcalOmdsCalibrations.HcalOmdsCalibrations(), HcalTextCalibrations.HcalTextCalibrations(), and L1CaloHcalScaleConfigOnlineProd.newObject().

tuple summarizeEdmComparisonLogfiles.ok = summaryOK(summary)

Definition at line 165 of file summarizeEdmComparisonLogfiles.py.

summarizeEdmComparisonLogfiles.oldFiles = files

Definition at line 92 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.parser = optparse.OptionParser("Usage: %prog logfilePrefix [directory]")

Definition at line 63 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.percentRE = re.compile(r'%')

Definition at line 28 of file summarizeEdmComparisonLogfiles.py.

dictionary summarizeEdmComparisonLogfiles.problemDict
Initial value:
1 = { 'labelDict' : labelErrorRE,
2  'missingLabel' : missingLabelRE,
3  'terminate' : terminatedRE,
4  'uint32' : uint32RE,
5  'cppException' : cppExceptionRE,
6  'missingCfg' : missingCfgRE,
7  'noEdmWrapper' : noEdmWrapperRE,
8  'dummy' : dummyRE,
9  'operator' : re.compile (r"onfig file parser error 'operator"),
10  'useless' : re.compile (r'no member functions that are useful'),
11  'lazy' : re.compile (r': Assertion'),
12  'detset' : re.compile (r"AttributeError: 'edm::DetSet"),
13  'doubleint' : re.compile (r'AttributeError: (int|double)'),
14  'finish' : finishRE}

Definition at line 48 of file summarizeEdmComparisonLogfiles.py.

dictionary summarizeEdmComparisonLogfiles.problems = {}

Definition at line 98 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.problemSet = set()

Definition at line 110 of file summarizeEdmComparisonLogfiles.py.

dictionary summarizeEdmComparisonLogfiles.problemTypes = {}

Definition at line 101 of file summarizeEdmComparisonLogfiles.py.

summarizeEdmComparisonLogfiles.ran = False

Definition at line 112 of file summarizeEdmComparisonLogfiles.py.

summarizeEdmComparisonLogfiles.reading = False

Definition at line 114 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.soName = ''

Definition at line 105 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.source = open(log, 'r')

Definition at line 111 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.startOutputRE = re.compile(r'^Summary$')

Definition at line 29 of file summarizeEdmComparisonLogfiles.py.

int summarizeEdmComparisonLogfiles.succeeded = 0

Definition at line 99 of file summarizeEdmComparisonLogfiles.py.

Referenced by edm::EventProcessor.processEvent(), and FWEveView.saveImageTo().

summarizeEdmComparisonLogfiles.success = False

Definition at line 113 of file summarizeEdmComparisonLogfiles.py.

Referenced by HcalCovarianceMatrices.addValues(), HcalCholeskyMatrices.addValues(), CastorCondObjectContainer< Item >.addValues(), HcalCondObjectContainer< Item >.addValues(), FWPSetTableManager.applyEditor(), L1GctEmulator.configureGct(), L1GctPrintLuts.configureGct(), KalmanSmoothedVertexChi2Estimator< N >.estimate(), egHLT::OffHelper.getHandle(), HLTMuonIsoFilter.hltFilter(), L1GtVhdlTemplateFile.insert(), CommandLine.parse(), edm::CosMuoGenProducer.produce(), FastPixelHitMatcher.propagateToLayer(), TStorageFactoryFile.ReadBuffers(), XrdFile.readv_send(), TrajectoryManager.reconstruct(), L1GtVhdlTemplateFile.removeLineWithContent(), FSimTrack.setEcal(), FSimTrack.setHcal(), FSimTrack.setHcalExit(), FSimTrack.setHO(), FSimTrack.setLayer1(), FSimTrack.setLayer2(), FSimTrack.setVFcal(), L1GtVhdlTemplateFile.substitute(), SETFilter.transform(), and SETFilter.transformLight().

tuple summarizeEdmComparisonLogfiles.success1RE = re.compile(r"{'eventsCompared':\s+(\d+),\s+'count_(\S+)':\s+(\d+)\s*}")

Definition at line 30 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.success2RE = re.compile(r"{'count_(\S+)':\s+(\d+),\s+'eventsCompared':\s+(\d+)\s*}")

Definition at line 31 of file summarizeEdmComparisonLogfiles.py.

dictionary summarizeEdmComparisonLogfiles.successes = {}

Definition at line 102 of file summarizeEdmComparisonLogfiles.py.

summarizeEdmComparisonLogfiles.summary = eval(summaryLines)

Definition at line 164 of file summarizeEdmComparisonLogfiles.py.

string summarizeEdmComparisonLogfiles.summaryLines = ''

Definition at line 115 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.terminatedRE = re.compile(r'Terminated\s+\$EXE\s+\$@')

Definition at line 40 of file summarizeEdmComparisonLogfiles.py.

int summarizeEdmComparisonLogfiles.total = 0

Definition at line 211 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.totalFiles = len(files)

Definition at line 97 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.uint32RE = re.compile(r"Config file parser error 'operatoruint32_t")

Definition at line 46 of file summarizeEdmComparisonLogfiles.py.

list summarizeEdmComparisonLogfiles.variables = ['eta', 'phi']

Definition at line 187 of file summarizeEdmComparisonLogfiles.py.

tuple summarizeEdmComparisonLogfiles.varNames = summary.get(objectName, {})

Definition at line 185 of file summarizeEdmComparisonLogfiles.py.

Referenced by EmDQMPostProcessor.endRun().

int summarizeEdmComparisonLogfiles.weird = 0

Definition at line 100 of file summarizeEdmComparisonLogfiles.py.