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

Referenced by matplotRender.matplotRender.plotPeakPerday_Time().

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

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

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

Variable Documentation

matplotRender.batchonly

Definition at line 14 of file matplotRender.py.

matplotRender.delimiter

Definition at line 816 of file matplotRender.py.

matplotRender.dpi

Definition at line 822 of file matplotRender.py.

matplotRender.f

Definition at line 815 of file matplotRender.py.

matplotRender.fig

Definition at line 822 of file matplotRender.py.

matplotRender.figsize

Definition at line 822 of file matplotRender.py.

matplotRender.m

Definition at line 823 of file matplotRender.py.

matplotRender.maxRun

Definition at line 824 of file matplotRender.py.

matplotRender.minRun

Definition at line 824 of file matplotRender.py.

matplotRender.None

Definition at line 824 of file matplotRender.py.

matplotRender.nticks

Definition at line 824 of file matplotRender.py.

matplotRender.rawdata
matplotRender.reader

Definition at line 816 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(), SiStripHashedDetIdFakeESSource.make(), edm::InputProductResolver.prefetchAsync_(), SiStripPedestalsFakeESSource.produce(), SiStripBackPlaneCorrectionFakeESSource.produce(), SiStripBaseDelayFakeESSource.produce(), SiStripLatencyFakeESSource.produce(), SiStripApvGainFakeESSource.produce(), SiStripThresholdFakeESSource.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_(), EcalDeadChannelRecoveryBDTG< EBDetId >.setCaloTopology(), CocoaDaqReader.SetDaqReader(), PhysicsTools::TreeReader::Value.setPtr(), SiStripDetInfoFileReader.SiStripDetInfoFileReader(), and SubsystemNeutronReader.SubsystemNeutronReader().

matplotRender.resultlines

Definition at line 817 of file matplotRender.py.

matplotRender.warn

Definition at line 17 of file matplotRender.py.

Referenced by ClusterSummary.getModules().

matplotRender.withannotation

Definition at line 824 of file matplotRender.py.

matplotRender.yscale

Definition at line 824 of file matplotRender.py.

Referenced by getintegratedlumiuptorun(), and scalebylumi().