Classes | |
class | SawTeethFunction |
Variables | |
CPP_LOADED = False | |
list | DQM_SEVERITY |
dictionary | MAP_RESULTS_BINS = {} |
dictionary | MAP_RESULTS_FITSIN = {} |
dictionary | MAP_RESULTS_SAWTOOTH = {} |
list | phiedges |
list | phiedgesCSC18 = [pi/180.*(-5. + 20.*i) for i in range(18)] |
list | phiedgesCSC36 = [pi/180.*(-5. + 10.*i) for i in range(36)] |
sector phi edges in: me11 me12 me13 me14 me21 me22 me31 me32 me41 me42 mb1 mb2 mb3 mb4 index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 More... | |
tdrStyle = None | |
dictionary | TEST_RESULTS = {} |
def plotscripts.addToTestResults | ( | c, | |
res | |||
) |
Definition at line 1032 of file plotscripts.py.
Referenced by doTestsForMapPlots(), and doTestsForReport().
def plotscripts.availableCellsCSC | ( | reports | ) |
def plotscripts.availableCellsDT | ( | reports | ) |
Definition at line 2053 of file plotscripts.py.
References getname().
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.clearDDT | ( | ) |
Definition at line 2042 of file plotscripts.py.
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.corrections2D | ( | reportsX = None , |
|
reportsY = None , |
|||
geometry0 = None , |
|||
geometryX = None , |
|||
geometryY = None , |
|||
window = 25. , |
|||
selection = None , |
|||
name = "tmp" , |
|||
canvas = None , |
|||
pre_title_x = None , |
|||
pre_title_y = None , |
|||
which = "110011" |
|||
) |
makes a scatterplot of corrections coming either from reports (if xml geometries are None) or from geometryX and geometryY (WRT the common initial geometry0)
Definition at line 3553 of file plotscripts.py.
References funct.abs(), python.multivaluedict.append(), getReportByPostalAddress(), edm::detail.isnan(), list(), python.multivaluedict.map(), bookConverter.max, corrVsCorr.selection, and mathSSE.sqrt().
Referenced by segdiffvsphicsc().
def plotscripts.createPeaksProfile | ( | the2d, | |
rebin = 1 |
|||
) |
Definition at line 1403 of file plotscripts.py.
References mapplot(), and mathSSE.sqrt().
Referenced by curvatureplot(), and mapplot().
Definition at line 1971 of file plotscripts.py.
References python.multivaluedict.append(), curvatureplot(), set_palette(), and mathSSE.sqrt().
def plotscripts.curvatureplot | ( | tfiles, | |
name, | |||
param, | |||
mode = "from2d" , |
|||
window = 15. , |
|||
widebins = False , |
|||
title = "" , |
|||
fitgauss = False , |
|||
fitconst = False , |
|||
fitline = False , |
|||
fitpeaks = True , |
|||
reset_palette = False |
|||
) |
"param" may be one of "deltax" (Delta x position residuals), "deltadxdz" (Delta (dx/dz) angular residuals), "curverr" (Delta x * d(Delta q/pT)/d(Delta x) = Delta q/pT in the absence of misalignment)
Definition at line 1804 of file plotscripts.py.
References createPeaksProfile(), set_palette(), and mathSSE.sqrt().
Referenced by curvatureDTsummary(), and alignmentValidation.doCurvaturePlotsDT().
def plotscripts.DBdiff | ( | database1, | |
database2, | |||
reports1, | |||
reports2, | |||
window = 10. , |
|||
windows = None , |
|||
selection = None , |
|||
phi = False , |
|||
color = ROOT.kBlue-8 , |
|||
style = 1 , |
|||
bins = 50 , |
|||
normalized = False , |
|||
getvalues = False , |
|||
name = "tmp" , |
|||
canvas = None , |
|||
reportdiff = False , |
|||
inlog = False |
|||
) |
Definition at line 485 of file plotscripts.py.
References funct.abs(), python.multivaluedict.append(), getReportByPostalAddress(), bookConverter.max, corrVsCorr.selection, and mathSSE.sqrt().
Referenced by DBMC().
def plotscripts.DBdiffVersus | ( | quantity, | |
versus, | |||
database1, | |||
database2, | |||
reports1, | |||
reports2, | |||
windwselection = None , |
|||
color = ROOT.kBlack |
|||
) |
Definition at line 720 of file plotscripts.py.
References corrVsCorr.selection.
Referenced by DBMCVersus().
def plotscripts.DBMC | ( | database, | |
reports, | |||
window = 10. , |
|||
windows = None , |
|||
selection = None , |
|||
phi = False , |
|||
color = ROOT.kBlue-8 , |
|||
style = 1 , |
|||
bins = 50 , |
|||
normalized = False , |
|||
getvalues = False , |
|||
name = "" , |
|||
canvas = None , |
|||
reportdiff = False , |
|||
inlog = True |
|||
) |
Definition at line 478 of file plotscripts.py.
References DBdiff().
Referenced by getReportByPostalAddress().
def plotscripts.DBMCVersus | ( | quantity, | |
versus, | |||
database, | |||
reports, | |||
window = 10. , |
|||
selection = None , |
|||
color = ROOT.kBlack |
|||
) |
Definition at line 717 of file plotscripts.py.
References DBdiffVersus().
def plotscripts.doTests | ( | reports, | |
pic_ids, | |||
fname_base, | |||
fname_dqm, | |||
run_name | |||
) |
Definition at line 1215 of file plotscripts.py.
References availableCellsCSC(), availableCellsDT(), doTestsForMapPlots(), doTestsForReport(), loadTestResultsMap(), plotmedians(), and writeDQMReport().
def plotscripts.doTestsForMapPlots | ( | cells | ) |
Definition at line 1142 of file plotscripts.py.
References addToTestResults(), join(), python.multivaluedict.map(), testDeltaWithin5Sigma(), testEntry(), and testZeroWithin5Sigma().
Referenced by doTests().
def plotscripts.doTestsForReport | ( | cells, | |
reports | |||
) |
Definition at line 1078 of file plotscripts.py.
References addToTestResults(), idToPostalAddress(), and testEntry().
Referenced by doTests().
def plotscripts.getname | ( | r | ) |
Definition at line 2032 of file plotscripts.py.
References funct.abs().
Referenced by bellcurves(), and polynomials().
def plotscripts.getReportByPostalAddress | ( | postal_address, | |
report | |||
) |
Definition at line 468 of file plotscripts.py.
References DBMC().
Referenced by corrections2D(), and DBdiff().
def plotscripts.idToPostalAddress | ( | id | ) |
Definition at line 861 of file plotscripts.py.
Referenced by doTestsForReport(), mapplot(), and stationIndex().
def plotscripts.loadTestResultsMap | ( | run_name | ) |
Definition at line 1189 of file plotscripts.py.
Referenced by doTests().
def plotscripts.mapNameToId | ( | name | ) |
def plotscripts.mapplot | ( | tfiles, | |
name, | |||
param, | |||
mode = "from2d" , |
|||
window = 10. , |
|||
abscissa = None , |
|||
title = "" , |
|||
widebins = False , |
|||
fitsine = False , |
|||
fitline = False , |
|||
reset_palette = False , |
|||
fitsawteeth = False , |
|||
fitpeaks = False , |
|||
peaksbins = 1 , |
|||
fixfitpars = {} , |
|||
args | |||
) |
Definition at line 1445 of file plotscripts.py.
References funct.abs(), createPeaksProfile(), idToPostalAddress(), mapNameToId(), phiedges2c(), philines(), rlines(), set_palette(), mathSSE.sqrt(), stationIndex(), and zlines().
Referenced by createPeaksProfile(), alignmentValidation.doMapPlotsCSC(), and alignmentValidation.doMapPlotsDT().
def plotscripts.mean | ( | xlist | ) |
Definition at line 53 of file plotscripts.py.
Referenced by segdiffvsphi(), segdiffvsphi_xalign(), and segdiffvsphicsc().
def plotscripts.nameToId | ( | name | ) |
Definition at line 896 of file plotscripts.py.
def plotscripts.phiedges2c | ( | ) |
Definition at line 316 of file plotscripts.py.
References join(), and python.multivaluedict.map().
Referenced by mapplot().
def plotscripts.philines | ( | name, | |
window, | |||
abscissa | |||
) |
Definition at line 392 of file plotscripts.py.
References stationIndex().
Referenced by mapplot().
def plotscripts.plotmedians | ( | reports1, | |
reports2, | |||
selection = None , |
|||
binsx = 100 , |
|||
windowx = 5. , |
|||
ceilingx = None , |
|||
binsy = 100 , |
|||
windowy = 5. , |
|||
ceilingy = None , |
|||
binsdxdz = 100 , |
|||
windowdxdz = 5. , |
|||
ceilingdxdz = None , |
|||
binsdydz = 100 , |
|||
windowdydz = 5. , |
|||
ceilingdydz = None , |
|||
r1text = " before" , |
|||
r2text = " after" , |
|||
which = "median" |
|||
) |
Definition at line 1246 of file plotscripts.py.
References corrVsCorr.selection.
Referenced by doTests().
Definition at line 2272 of file plotscripts.py.
References getname().
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.postalAddressToId | ( | postal_address | ) |
def plotscripts.printDeltaTs | ( | ) |
Definition at line 2046 of file plotscripts.py.
def plotscripts.rlines | ( | disk, | |
window, | |||
abscissa | |||
) |
def plotscripts.rms | ( | xlist | ) |
Definition at line 60 of file plotscripts.py.
References mathSSE.sqrt().
Referenced by HcalDetDiagLEDMonitor.CheckStatus(), HcalDetDiagPedestalMonitor.CheckStatus(), PFClient_JetRes.createResolutionPlots(), PFClient.createResolutionPlots(), HcalTimeSlewSim.delay(), HcalHitCorrection.delay(), DQMChannel.DQMChannel(), EcalZmassClient.dqmEndJob(), DTTPAnalyzer.endJob(), DTTTrigCorrectionFirst.endJob(), HOCalibAnalyzer.endJob(), ZeeCalibration.endOfJob(), RPCBxTest.endRun(), PedsFullNoiseSummaryFactory.extract(), RPCLinkSynchroHistoMaker.fill(), HcalDetDiagLEDMonitor.fillHistos(), HcalDetDiagPedestalMonitor.fillHistos(), HcalDetDiagLaserMonitor.fillHistos(), HcalDetDiagLaserMonitor.fillProblems(), LA_Filler_Fitter.find_rebin(), HcalDetDiagLaserMonitor.get_ave_rbx(), HcalDetDiagLaserMonitor.get_ave_subdet(), GetMPV(), TMom.getRMS(), TMom.init(), HcalDetDiagPedestalMonitor.LoadDataset(), HcalDetDiagLaserMonitor.LoadDataset(), HcalDetDiagLEDMonitor.LoadReference(), HcalDetDiagPedestalMonitor.LoadReference(), HcalDetDiagLaserMonitor.LoadReference(), TPedValues.makePlots(), reco::tau::RecoTauDiscriminantInvariantWidth.operator()(), DQMClientExample.performClient(), PhiBorderFinder.PhiBorderFinder(), cond::PayLoadInspector< DataT >.plot(), SiPixelDetSummary.print(), RPCLinkSynchroStat::SynchroCounts.print(), SiStripDetSummary.print(), SiStripNoises.printSummary(), TH2Analyzer.ProcessSlice(), TH2Analyzer.ProcessSlices(), ecaldqm::TestPulseClient.producePlots(), ecaldqm::PresampleClient.producePlots(), ecaldqm::TimingClient.producePlots(), ecaldqm::PedestalClient.producePlots(), PuppiContainer.puppiWeights(), RBorderFinder.RBorderFinder(), DTSurvey.ReadChambers(), LA_Filler_Fitter.rms_profile(), ecaldqm::LaserWriter.run(), ecaldqm::PedestalWriter.run(), ecaldqm::PresampleWriter.run(), ecaldqm::TestPulseWriter.run(), ecaldqm::TimingWriter.run(), DTTriggerLutTest.runClientDiagnostic(), DTOccupancyTest.runOccupancyTest(), ContentsWithinExpected.runTest(), HcalDetDiagLEDMonitor.SaveReference(), HcalDetDiagPedestalMonitor.SaveReference(), HcalDetDiagLaserMonitor.SaveReference(), HcalDetDiagPedestalData.set_data(), HcalDetDiagLaserData.set_data(), HcalDetDiagLEDData.set_reference(), HcalDetDiagPedestalData.set_reference(), HcalDetDiagLaserData.set_reference(), MonTestPulseDat.setADCRMSG1(), MonPedestalsOnlineDat.setADCRMSG12(), MonTestPulseDat.setADCRMSG12(), MonTestPulseDat.setADCRMSG6(), MonLaserBlueDat.setAPDOverPNRMS(), MonLaserIRedDat.setAPDOverPNRMS(), MonLaserRedDat.setAPDOverPNRMS(), MonLaserGreenDat.setAPDOverPNRMS(), MonLaserBlueDat.setAPDRMS(), MonLaserIRedDat.setAPDRMS(), MonLaserGreenDat.setAPDRMS(), MonLaserRedDat.setAPDRMS(), DCUCapsuleTempRawDat.setCapsuleTempRMS(), MonDelaysTTDat.setDelayRMS(), MonPedestalsDat.setPedRMSG1(), MonPedestalsDat.setPedRMSG12(), MonPedestalsDat.setPedRMSG6(), ITimingDat.setTimingRMS(), MonLed1Dat.setVPTOverPNRMS(), MonLed2Dat.setVPTOverPNRMS(), MonLed1Dat.setVPTRMS(), MonLed2Dat.setVPTRMS(), and ecaldqm::MESetTrend.shift_().
def plotscripts.saveTestResultsMap | ( | run_name | ) |
Definition at line 1181 of file plotscripts.py.
Referenced by alignmentValidation.doMapPlotsCSC(), and alignmentValidation.doMapPlotsDT().
def plotscripts.segdiff | ( | tfiles, | |
component, | |||
pair, | |||
args | |||
) |
Definition at line 2889 of file plotscripts.py.
References funct.abs(), MultipleCompare.Divide(), mathSSE.sqrt(), and wheelLetter().
Referenced by alignmentValidation.doSegDiffPlotsCSC(), alignmentValidation.doSegDiffPlotsDT(), segdiffvsphi(), and segdiffvsphicsc().
def plotscripts.segdiff_xalign | ( | tfiles, | |
component, | |||
args | |||
) |
Definition at line 3065 of file plotscripts.py.
References funct.abs(), and mathSSE.sqrt().
Referenced by alignmentValidation.doSegDiffPlotsDT(), and segdiffvsphi_xalign().
def plotscripts.segdiffvsphi | ( | tfiles, | |
reports, | |||
component, | |||
wheel, | |||
window = 5. , |
|||
excludesectors = () |
|||
) |
Definition at line 3302 of file plotscripts.py.
References mean(), segdiff(), and stdev().
Referenced by alignmentValidation.doSegDiffPlotsDT().
def plotscripts.segdiffvsphi_xalign | ( | tfiles, | |
wheel, | |||
window = 10. |
|||
) |
Definition at line 3187 of file plotscripts.py.
References mean(), segdiff_xalign(), and stdev().
Referenced by alignmentValidation.doSegDiffPlotsDT().
def plotscripts.segdiffvsphicsc | ( | tfiles, | |
component, | |||
pair, | |||
window = 5. , |
|||
args | |||
) |
Definition at line 3440 of file plotscripts.py.
References corrections2D(), mean(), segdiff(), and stdev().
Referenced by alignmentValidation.doSegDiffPlotsCSC().
def plotscripts.set_palette | ( | name = None , |
|
ncontours = 999 |
|||
) |
Set a color palette from a given RGB list stops, red, green and blue should all be lists of the same length see set_decent_colors for an example
Definition at line 226 of file plotscripts.py.
References python.multivaluedict.map().
Referenced by curvatureDTsummary(), curvatureplot(), and mapplot().
def plotscripts.setTDRStyle | ( | ) |
Definition at line 87 of file plotscripts.py.
def plotscripts.stationIndex | ( | name | ) |
Definition at line 353 of file plotscripts.py.
References idToPostalAddress().
Referenced by MuonIdProducer.fillArbitrationInfo(), mapplot(), and philines().
def plotscripts.stdev | ( | xlist | ) |
Definition at line 67 of file plotscripts.py.
References mathSSE.sqrt().
Referenced by MuonResidualsAngleFitter.fit(), MuonResidualsBfieldAngleFitter.fit(), MuonResidualsPositionFitter.fit(), segdiffvsphi(), segdiffvsphi_xalign(), and segdiffvsphicsc().
def plotscripts.testDeltaWithin5Sigma | ( | x, | |
sx | |||
) |
Definition at line 1052 of file plotscripts.py.
References funct.abs(), and mathSSE.sqrt().
Referenced by doTestsForMapPlots().
def plotscripts.testEntry | ( | testID, | |
scope, | |||
descr, | |||
severity | |||
) |
Definition at line 1038 of file plotscripts.py.
Referenced by doTestsForMapPlots(), and doTestsForReport().
def plotscripts.testZeroWithin5Sigma | ( | x | ) |
Definition at line 1045 of file plotscripts.py.
References funct.abs().
Referenced by doTestsForMapPlots().
def plotscripts.wheel0only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 33 of file plotscripts.py.
def plotscripts.wheelLetter | ( | wheel | ) |
Definition at line 37 of file plotscripts.py.
Referenced by availableCellsDT(), alignmentValidation.doFitFunctionsPlotsDT(), alignmentValidation.doMapPlotsDT(), and segdiff().
def plotscripts.wheelm1only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 32 of file plotscripts.py.
def plotscripts.wheelm2only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Convenience functions.
Definition at line 31 of file plotscripts.py.
def plotscripts.wheelNumber | ( | wheell | ) |
Definition at line 45 of file plotscripts.py.
Referenced by DTDataIntegrityTest.dqmEndLuminosityBlock().
def plotscripts.wheelp1only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 34 of file plotscripts.py.
def plotscripts.wheelp2only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 35 of file plotscripts.py.
def plotscripts.wmean | ( | xlist | ) |
def plotscripts.writeDQMReport | ( | fname_dqm, | |
run_name | |||
) |
Definition at line 1201 of file plotscripts.py.
Referenced by doTests().
def plotscripts.zlines | ( | window, | |
abscissa | |||
) |
plotscripts.CPP_LOADED = False |
Definition at line 18 of file plotscripts.py.
list plotscripts.DQM_SEVERITY |
Definition at line 1021 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_BINS = {} |
Definition at line 23 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_FITSIN = {} |
Definition at line 22 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_SAWTOOTH = {} |
Definition at line 21 of file plotscripts.py.
list plotscripts.phiedges |
Definition at line 295 of file plotscripts.py.
Definition at line 294 of file plotscripts.py.
sector phi edges in: me11 me12 me13 me14 me21 me22 me31 me32 me41 me42 mb1 mb2 mb3 mb4 index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Definition at line 293 of file plotscripts.py.
plotscripts.tdrStyle = None |
Definition at line 86 of file plotscripts.py.
Referenced by LRHelpFunctions.purityPlot(), RecoBTag.setTDRStyle(), LRHelpFunctions.singlePlot(), and RecoBTag.tdrGrid().
dictionary plotscripts.TEST_RESULTS = {} |
Definition at line 26 of file plotscripts.py.