CMS 3D CMS Logo

Functions | Variables
diffTreeTool Namespace Reference

Functions

def format (objDict, label, spacing=9, firstOnly=False)
 
def getDictFromObject (obj, varDict, prefix='')
 
def getPieceFromObject (obj, description)
 

Variables

 action
 
 args
 
 cFile
 
 default
 
 dest
 
 diff
 
 diffColl
 
 diffContRE
 
 epsilon
 
 firstOnly
 
 firstOnlyColl
 
 help
 
 index
 
 indexDoubleDict
 
 indexSingleDict
 
 info
 
 infoDoubleDict
 
 infoSingleDict
 
 match
 
 name
 
 options
 
 parser
 
 rootfile
 
 rootFilename
 
 runevent
 
 runeventDict
 
 secondOnly
 
 secondOnlyColl
 
 shlib
 
 size
 
 source
 
 stringSet
 
 tree
 
 typeFoundSet
 
 var
 
 variableREDict
 
 variables
 
 working
 

Function Documentation

def diffTreeTool.format (   objDict,
  label,
  spacing = 9,
  firstOnly = False 
)
return a formatted string for given object

Definition at line 27 of file diffTreeTool.py.

References funct.abs().

27 def format (objDict, label, spacing=9, firstOnly = False):
28  '''return a formatted string for given object'''
29  value = objDict[label]
30  if firstOnly:
31  diff = 0.
32  else:
33  diff = objDict['delta_' + label]
34 
35  problem = False
36  if isinstance (value, float):
37  formatString = '%%%d.%df' % (spacing, spacing - 5)
38  retval = formatString % value
39  if abs(diff) > epsilon:
40  if options.delta:
41  retval += ' [' + formatString % (diff) + ']'
42  else:
43  retval += ' (' + formatString % (value + diff) + ')'
44  elif not firstOnly:
45  retval += ' ' * (spacing + 3)
46  return retval
47  else:
48  formatString = '%%%ds' % spacing
49  retval = formatString % value
50  if diff:
51  if isinstance (value, str):
52  retval += ' (' + formatString % diff + ')'
53  elif options.delta:
54  retval += ' [' + formatString % diff + ']'
55  else:
56  retval += ' (' + formatString % (value + diff) + ')'
57  elif not firstOnly:
58  retval += ' ' * (spacing + 3)
59  return retval
60 
61 
def format(objDict, label, spacing=9, firstOnly=False)
Definition: diffTreeTool.py:27
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def diffTreeTool.getDictFromObject (   obj,
  varDict,
  prefix = '' 
)
Given a object and a prefix, fills an return dictionary with the
proper values

Definition at line 16 of file diffTreeTool.py.

16 def getDictFromObject (obj, varDict, prefix = ''):
17  """Given a object and a prefix, fills an return dictionary with the
18  proper values"""
19  if prefix:
20  obj = getPieceFromObject (obj, prefix)
21  retval = {}
22  for key, description in six.iteritems(varDict):
23  retval[key] = getPieceFromObject (obj, description)
24  return retval
25 
26 
def getDictFromObject(obj, varDict, prefix='')
Definition: diffTreeTool.py:16
def diffTreeTool.getPieceFromObject (   obj,
  description 
)
Returns piece from object 

Definition at line 11 of file diffTreeTool.py.

11 def getPieceFromObject (obj, description):
12  """Returns piece from object """
13  parsed = GenObject.parseVariableTofill (description)
14  return GenObject.evaluateFunction (obj, parsed)
15 
def getPieceFromObject(obj, description)
Definition: diffTreeTool.py:11

Variable Documentation

diffTreeTool.action

Definition at line 65 of file diffTreeTool.py.

diffTreeTool.args

Definition at line 70 of file diffTreeTool.py.

diffTreeTool.cFile

Definition at line 81 of file diffTreeTool.py.

diffTreeTool.default

Definition at line 65 of file diffTreeTool.py.

diffTreeTool.dest

Definition at line 64 of file diffTreeTool.py.

diffTreeTool.diff

Definition at line 195 of file diffTreeTool.py.

Referenced by edm::CountAndLimit.add(), BetaCalculatorECAL.addStepToXtal(), L1Scalers.analyze(), ExampleMuonAnalyzer.analyze(), L1TRPCTF.analyze(), IsolatedTracksNxN.analyze(), tauImpactParameter::LagrangeMultipliersFitter.applyLagrangianConstraints(), ME0SegAlgoRU.areHitsCloseInEta(), FWTrackResidualDetailView.build(), BxTiming.calcBxDiff(), GsfVertexWeightCalculator.calculate(), ClusterShapeAlgo.Calculate_EnergyDepTopology(), HcalLogicalMap.checkElectronicsHashIds(), HcalLogicalMap.checkHashIds(), l1t::ConditionEvaluation.checkRangeDeltaEta(), BasicMultiTrajectoryState.combine(), MuonGeometryArrange.compareGeometries(), TrackerGeometryCompare.compareGeometries(), VertexDistance3D.compatibility(), VertexDistanceXY.compatibility(), MuonTrackResidualAnalyzer.computeResolution(), SiTrackerMultiRecHitUpdator.ComputeWeight(), CaloTowersCreationAlgo.convert(), rpcrawtodigi::EventRecords.dataToTriggerDelay(), l1t.deltaGctPhi(), AlphaTVarProducer.deltaHt(), HLTHemiDPhiFilter.deltaPhi(), HLTEcalResonanceFilter.DeltaPhi(), IsolatedGenParticles.deltaPhi(), IsolatedTracksCone.deltaPhi(), IsolatedTracksNxN.deltaPhi(), ALIUtils.diff2pi(), OpticalObject.diff2pi(), TrackerGeometryCompare.diffCommonTrackerSystem(), TangentCircle.direction(), VertexDistanceXY.distance(), VertexDistance3D.distance(), CSCOfflineMonitor.doEfficiencies(), CSCValidation.doEfficiencies(), CSCOfflineMonitor.doOccupancies(), CSCValidation.doOccupancies(), CSCOfflineMonitor.doStripDigis(), CSCValidation.doStripDigis(), ECALpedestalPCLHarvester.dqmEndJob(), DTTrigGeom.dumpLUT(), HOCalibAnalyzer.endJob(), fireworks.energyTower3DCorners(), ALIUtils.eq2ang(), OpticalObject.eq2ang(), fireworks.etTower3DCorners(), DaqScopeModeTask.fill(), PedestalsTask.fill(), fillEBMap_DiffIOV(), fillEEMap_DiffIOV(), CSCEfficiency.fillStrips_info(), MuonTimingFiller.fillTimeFromMeasurements(), HLTPixelActivityHFSumEnergyFilter.filter(), DTHVStatusHandler.filterData(), TwoTrackMinimumDistanceHelixLine.finalPoints(), CSCMake2DRecHit.findWireBx(), emtf::Huber.fit(), models.generate(), FullModelReactionDynamics.GenerateXandPt(), MuonKinkFinder.getChi2(), MatcherUsingTracksAlgorithm.getChi2(), EcalClusterToolsT< noZS >.getEnergyDepTopology(), DTTimeBoxFitter.getFitSeeds(), Basic2DGenericPFlowClusterizer.growPFClusters(), PFlow2DClusterizerWithTime.growPFClusters(), ThirdHitPredictionFromCircle.invCenterOnAxis(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy.iterativeSearch(), SiStripHotStripAlgorithmFromClusterOccupancy.iterativeSearch(), GlobalTrackQualityProducer.kink(), MuonGeometryArrange.makeGraph(), MatcherByPullsAlgorithm.match(), FastTrackerRecHitMatcher.match(), SiStripRecHitMatcher.match(), alpha_T.minimum_deltaSumPT(), RKOne4OrderStep< T, N >.operator()(), CSCThrTurnOnFcn.operator()(), MicroME.operator<(), CSCTFPtMethods.Pt2StnChiSq(), CSCTFPtMethods.Pt3StnChiSq(), DTSurvey.ReadChambers(), FedRawDataInputSource.readWorker(), L1MuDTEUX.run(), L1MuBMEUX.run(), SimpleL1MuGMTCand.setEta(), SimpleL1MuGMTCand.setPhi(), SimpleL1MuGMTCand.setPt(), HGCalImagingAlgo.shareEnergy(), CSCSegAlgoShowering.showerSeg(), VertexDistanceXY.signedDistance(), VertexDistance3D.signedDistance(), edm::service::ConcurrentModuleTimer.start(), RK4PreciseStep.stepWithAccuracy(), edm::service::ConcurrentModuleTimer.stop(), ThirdHitPredictionFromCircle.ThirdHitPredictionFromCircle(), CSCFitAFEBThr.ThresholdNoise(), CSCSegment.time(), timeDiffMS(), FullModelReactionDynamics.TwoCluster(), GflashG4Watcher.update(), reco::GhostTrackVertexFinder.vertexCompat(), vtxMean(), SiPixelTemplate.xtemp3d_int(), and SiPixelTemplate.ytemp3d_int().

diffTreeTool.diffColl

Definition at line 186 of file diffTreeTool.py.

diffTreeTool.diffContRE

Definition at line 87 of file diffTreeTool.py.

diffTreeTool.epsilon

Definition at line 9 of file diffTreeTool.py.

diffTreeTool.firstOnly

Definition at line 159 of file diffTreeTool.py.

diffTreeTool.firstOnlyColl

Definition at line 150 of file diffTreeTool.py.

diffTreeTool.help

Definition at line 66 of file diffTreeTool.py.

diffTreeTool.index

Definition at line 160 of file diffTreeTool.py.

diffTreeTool.indexDoubleDict

Definition at line 136 of file diffTreeTool.py.

diffTreeTool.indexSingleDict

Definition at line 135 of file diffTreeTool.py.

diffTreeTool.info

Definition at line 162 of file diffTreeTool.py.

diffTreeTool.infoDoubleDict

Definition at line 138 of file diffTreeTool.py.

diffTreeTool.infoSingleDict

Definition at line 137 of file diffTreeTool.py.

diffTreeTool.match

Definition at line 100 of file diffTreeTool.py.

diffTreeTool.name

Definition at line 96 of file diffTreeTool.py.

diffTreeTool.options

Definition at line 70 of file diffTreeTool.py.

diffTreeTool.parser

Definition at line 63 of file diffTreeTool.py.

diffTreeTool.rootfile

Definition at line 127 of file diffTreeTool.py.

diffTreeTool.rootFilename

Definition at line 75 of file diffTreeTool.py.

diffTreeTool.runevent

Definition at line 147 of file diffTreeTool.py.

diffTreeTool.runeventDict

Definition at line 134 of file diffTreeTool.py.

diffTreeTool.secondOnly

Definition at line 177 of file diffTreeTool.py.

diffTreeTool.secondOnlyColl

Definition at line 168 of file diffTreeTool.py.

diffTreeTool.shlib

Definition at line 76 of file diffTreeTool.py.

diffTreeTool.size

Definition at line 133 of file diffTreeTool.py.

diffTreeTool.source

Definition at line 93 of file diffTreeTool.py.

diffTreeTool.stringSet

Definition at line 94 of file diffTreeTool.py.

diffTreeTool.tree

Definition at line 130 of file diffTreeTool.py.

diffTreeTool.typeFoundSet

Definition at line 95 of file diffTreeTool.py.

diffTreeTool.var

Definition at line 164 of file diffTreeTool.py.

diffTreeTool.variableREDict

Definition at line 89 of file diffTreeTool.py.

diffTreeTool.variables

Definition at line 77 of file diffTreeTool.py.

diffTreeTool.working

Definition at line 116 of file diffTreeTool.py.