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 35 of file matplotRender.py.

Referenced by matplotRender.matplotRender.plotPeakPerday_Time().

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

Definition at line 65 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().

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

Variable Documentation

matplotRender.batchonly

Definition at line 13 of file matplotRender.py.

matplotRender.delimiter

Definition at line 815 of file matplotRender.py.

matplotRender.dpi

Definition at line 821 of file matplotRender.py.

matplotRender.f

Definition at line 814 of file matplotRender.py.

matplotRender.fig

Definition at line 821 of file matplotRender.py.

matplotRender.figsize

Definition at line 821 of file matplotRender.py.

matplotRender.m

Definition at line 822 of file matplotRender.py.

matplotRender.maxRun

Definition at line 823 of file matplotRender.py.

matplotRender.minRun

Definition at line 823 of file matplotRender.py.

matplotRender.None

Definition at line 823 of file matplotRender.py.

matplotRender.nticks

Definition at line 823 of file matplotRender.py.

matplotRender.rawdata
matplotRender.reader

Definition at line 815 of file matplotRender.py.

Referenced by MillePedeAlignmentAlgorithm.addPxbSurvey(), PhysicsTools::TreeTrainer.addTree(), 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(), SiStripBadFiberBuilder.getNewObject(), SiStripBadChannelBuilder.getNewObject(), SiStripNoisesFromDBMiscalibrator.getNewObject_withDefaults(), evf::EvFDaqDirector.getNFilesFromEoLS(), getSavedMatrix(), evf::EvFDaqDirector.grabNextJsonFile(), evf::EvFDaqDirector.grabNextJsonFileAndUnlock(), goodseedhelpers::HeavyObjectCache.HeavyObjectCache(), SiStripHashedDetIdFakeESSource.make(), edm::InputProductResolver.prefetchAsync_(), SiStripThresholdFakeESSource.produce(), SiStripBackPlaneCorrectionFakeESSource.produce(), SiStripBaseDelayFakeESSource.produce(), SiStripLatencyFakeESSource.produce(), SiStripPedestalsFakeESSource.produce(), SiStripApvGainFakeESSource.produce(), SiStripBadModuleConfigurableFakeESSource.produce(), SiStripNoisesFakeESSource.produce(), SiStripLorentzAngleFakeESSource.produce(), SiPixelFakeGainOfflineESSource.produce(), SiPixelFakeGainForHLTESSource.produce(), SiPixelFakeGainESSource.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 816 of file matplotRender.py.

matplotRender.warn

Definition at line 16 of file matplotRender.py.

Referenced by ClusterSummary.getModules().

matplotRender.withannotation

Definition at line 823 of file matplotRender.py.

matplotRender.yscale

Definition at line 823 of file matplotRender.py.