CMS 3D CMS Logo

Classes | Functions | Variables
matplotRender Namespace Reference

Classes

class  matplotRender
 

Functions

def guessInstLumiUnit (t)
 
def guessLumiUnit (t)
 

Variables

 batchonly
 
 delimiter
 
 dpi
 
 f
 
 fig
 
 figsize
 
 m
 
 maxRun
 
 minRun
 
 None
 
 nticks
 
 rawdata
 
 reader
 
 resultlines
 
 warn
 
 withannotation
 
 yscale
 

Detailed Description

Specs:
-- We use matplotlib OO class level api, we do not use its high-level helper modules. Favor endured stability over simplicity. 
-- PNG as default batch file format
-- we support http mode by sending string buf via meme type image/png. Sending a premade static plot to webserver is considered a uploading process instead of http dynamic graphical mode. 

Function Documentation

def matplotRender.guessInstLumiUnit (   t)
input : largest total lumivalue
output: (unitstring,denomitor)

Definition at line 34 of file matplotRender.py.

Referenced by matplotRender.matplotRender.plotPeakPerday_Time().

35  '''
36  input : largest total lumivalue
37  output: (unitstring,denomitor)
38  '''
39  unitstring='$\mu$b$^{-1}$s$^{-1}$'
40  denomitor=1.0
41  if t>=1.0e3 and t<1.0e06:
42  denomitor=1.0e3
43  unitstring='nb$^{-1}$s$^{-1}$'
44  elif t>=1.0e6 and t<1.0e9:
45  denomitor=1.0e6
46  unitstring='pb$^{-1}$s$^{-1}$'
47  elif t>=1.0e9 and t<1.0e12:
48  denomitor=1.0e9
49  unitstring='fb$^{-1}$s$^{-1}$'
50  elif t>=1.0e12 and t<1.0e15:
51  denomitor=1.0e12
52  unitstring='ab$^{-1}$s$^{-1}$'
53  elif t<=1.0e-3 and t>1.0e-6: #left direction
54  denomitor=1.0e-3
55  unitstring='mb$^{-1}$s$^{-1}$'
56  elif t<=1.0e-6 and t>1.0e-9:
57  denomitor=1.0e-6
58  unitstring='b$^{-1}$s$^{-1}$'
59  elif t<=1.0e-9 and t>1.0e-12:
60  denomitor=1.0e-9
61  unitstring='kb$^{-1}$s$^{-1}$'
62  return (unitstring,denomitor)
63 
def guessInstLumiUnit(t)
def matplotRender.guessLumiUnit (   t)
input : largest total lumivalue
output: (unitstring,denomitor)

Definition at line 64 of file matplotRender.py.

Referenced by matplotRender.matplotRender.plotInst_RunLS(), matplotRender.matplotRender.plotPerdayX_Time(), matplotRender.matplotRender.plotSumX_Fill(), matplotRender.matplotRender.plotSumX_Run(), and matplotRender.matplotRender.plotSumX_Time().

65  '''
66  input : largest total lumivalue
67  output: (unitstring,denomitor)
68  '''
69  unitstring='$\mu$b$^{-1}$'
70  denomitor=1.0
71  if t>=1.0e3 and t<1.0e06:
72  denomitor=1.0e3
73  unitstring='nb$^{-1}$'
74  elif t>=1.0e6 and t<1.0e9:
75  denomitor=1.0e6
76  unitstring='pb$^{-1}$'
77  elif t>=1.0e9 and t<1.0e12:
78  denomitor=1.0e9
79  unitstring='fb$^{-1}$'
80  elif t>=1.0e12 and t<1.0e15:
81  denomitor=1.0e12
82  unitstring='ab$^{-1}$'
83  elif t<=1.0e-3 and t>1.0e-6: #left direction
84  denomitor=1.0e-3
85  unitstring='mb$^{-1}$'
86  elif t<=1.0e-6 and t>1.0e-9:
87  denomitor=1.0e-6
88  unitstring='b$^{-1}$'
89  elif t<=1.0e-9 and t>1.0e-12:
90  denomitor=1.0e-9
91  unitstring='kb$^{-1}$'
92  return (unitstring,denomitor)
93 
def guessLumiUnit(t)

Variable Documentation

matplotRender.batchonly

Definition at line 12 of file matplotRender.py.

matplotRender.delimiter

Definition at line 814 of file matplotRender.py.

matplotRender.dpi

Definition at line 820 of file matplotRender.py.

matplotRender.f

Definition at line 813 of file matplotRender.py.

matplotRender.fig

Definition at line 820 of file matplotRender.py.

matplotRender.figsize

Definition at line 820 of file matplotRender.py.

matplotRender.m

Definition at line 821 of file matplotRender.py.

matplotRender.maxRun

Definition at line 822 of file matplotRender.py.

matplotRender.minRun

Definition at line 822 of file matplotRender.py.

matplotRender.None

Definition at line 822 of file matplotRender.py.

matplotRender.nticks

Definition at line 822 of file matplotRender.py.

matplotRender.rawdata
matplotRender.reader

Definition at line 814 of file matplotRender.py.

Referenced by MillePedeAlignmentAlgorithm.addPxbSurvey(), PhysicsTools::TreeTrainer.addTree(), SiStripBadFiberBuilder.algoAnalyze(), SiStripBadChannelBuilder.algoAnalyze(), AlpgenSource.AlpgenSource(), SiStripNoisesBuilder.analyze(), SiStripPedestalsBuilder.analyze(), SiStripThresholdBuilder.analyze(), SiStripApvGainBuilder.analyze(), SiStripNoiseNormalizedWithApvGainBuilder.analyze(), SiStripApvGainBuilderFromTag.analyze(), DetIdSelectorTest.analyze(), BTagSFProducer.BTagSFProducer(), SiStripDetVOffBuilder.BuildDetVOffObj(), EGEnergyCorrector.CorrectedEnergyWithError(), EGEnergyCorrector.CorrectedEnergyWithErrorV3(), jsoncollector::JSONSerializer.deserialize(), SiStripPopConNoisesHandlerFromDQM.dqmEndJob(), SiStripPopConPedestalsHandlerFromDQM.dqmEndJob(), SiStripPopConBadComponentsHandlerFromDQM.dqmEndJob(), OccupancyPlots.endRun(), SiStripPI.fillBCArrays(), SiStripGain.fillNewGain(), popcon::SiStripPopConHandlerUnitTest< T >.fillObject(), popcon::SiStripPopConHandlerUnitTestNoise< T >.fillObject(), popcon::SiStripPopConHandlerUnitTestGain< T >.fillObject(), SiStripPI.fillTotalComponents(), lhef::LHERunInfo.findHeader(), CocoaDaqReader.GetDaqReader(), SiStripGainFromAsciiFile.getNewObject(), SiStripNoisesFromDBMiscalibrator.getNewObject_withDefaults(), evf::EvFDaqDirector.getNFilesFromEoLS(), getSavedMatrix(), evf::EvFDaqDirector.grabNextJsonFile(), evf::EvFDaqDirector.grabNextJsonFileAndUnlock(), goodseedhelpers::HeavyObjectCache.HeavyObjectCache(), SiStripHashedDetIdFakeESSource.make(), edm::InputProductResolver.prefetchAsync_(), SiStripBackPlaneCorrectionFakeESSource.produce(), SiStripBaseDelayFakeESSource.produce(), SiStripApvGainFakeESSource.produce(), SiStripLatencyFakeESSource.produce(), SiStripThresholdFakeESSource.produce(), SiStripPedestalsFakeESSource.produce(), SiStripBadModuleConfigurableFakeESSource.produce(), SiStripNoisesFakeESSource.produce(), SiStripLorentzAngleFakeESSource.produce(), SiPixelFakeGainForHLTESSource.produce(), SiPixelFakeGainESSource.produce(), SiPixelFakeGainOfflineESSource.produce(), SiPixelFakeLorentzAngleESSource.produce(), DQMRootSource.readElements(), MillePedeAlignmentAlgorithm.readFromPede(), evf::EvFDaqDirector.readLastLSEntry(), edm::InputProductResolver.resolveProduct_(), edm::InputProductResolver.retrieveAndMerge_(), CocoaDaqReader.SetDaqReader(), PhysicsTools::TreeReader::Value.setPtr(), convbremhelpers::HeavyObjectCache.setupMVA(), SiStripDetInfoFileReader.SiStripDetInfoFileReader(), and SubsystemNeutronReader.SubsystemNeutronReader().

matplotRender.resultlines

Definition at line 815 of file matplotRender.py.

matplotRender.warn

Definition at line 15 of file matplotRender.py.

Referenced by ClusterSummary.getModules().

matplotRender.withannotation

Definition at line 822 of file matplotRender.py.

matplotRender.yscale

Definition at line 822 of file matplotRender.py.