Classes | |
class | SawTeethFunction |
Functions | |
def | addToTestResults (c, res) |
def | availableCellsCSC (reports) |
def | availableCellsDT (reports) |
def | bellcurves (tfile, reports, name, twobin=True, suppressblue=False) |
def | clearDDT () |
def | 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) More... | |
def | createPeaksProfile (the2d, rebin=1) |
def | curvatureDTsummary (tfiles, window=15., pdgSfactor=False) |
def | 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) More... | |
def | 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) |
def | DBdiffVersus (quantity, versus, database1, database2, reports1, reports2, windwselection=None, color=ROOT.kBlack) |
def | 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) |
def | DBMCVersus (quantity, versus, database, reports, window=10., selection=None, color=ROOT.kBlack) |
def | doTests (reports, pic_ids, fname_base, fname_dqm, run_name) |
def | doTestsForMapPlots (cells) |
def | doTestsForReport (cells, reports) |
def | getname (r) |
def | getReportByPostalAddress (postal_address, report) |
def | idToPostalAddress (id) |
def | loadTestResultsMap (run_name) |
def | mapNameToId (name) |
def | 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) |
def | mean (xlist) |
def | nameToId (name) |
def | phiedges2c () |
def | philines (name, window, abscissa) |
def | 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") |
def | polynomials (tfile, reports, name, twobin=True, suppressblue=False) |
def | postalAddressToId (postal_address) |
def | printDeltaTs () |
def | rlines (disk, window, abscissa) |
def | rms (xlist) |
def | saveTestResultsMap (run_name) |
def | segdiff (tfiles, component, pair, args) |
def | segdiff_xalign (tfiles, component, args) |
def | segdiffvsphi (tfiles, reports, component, wheel, window=5., excludesectors=()) |
def | segdiffvsphi_xalign (tfiles, wheel, window=10.) |
def | segdiffvsphicsc (tfiles, component, pair, window=5., args) |
def | set_palette (name=None, ncontours=999) |
def | setTDRStyle () |
def | stationIndex (name) |
def | stdev (xlist) |
def | testDeltaWithin5Sigma (x, sx) |
def | testEntry (testID, scope, descr, severity) |
def | testZeroWithin5Sigma (x) |
def | wheel0only (dt, wheel, station, sector) |
def | wheelLetter (wheel) |
def | wheelm1only (dt, wheel, station, sector) |
def | wheelm2only (dt, wheel, station, sector) |
Convenience functions. More... | |
def | wheelNumber (wheell) |
def | wheelp1only (dt, wheel, station, sector) |
def | wheelp2only (dt, wheel, station, sector) |
def | wmean (xlist) |
def | writeDQMReport (fname_dqm, run_name) |
def | zlines (window, abscissa) |
Variables | |
bool | 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 | ) |
Definition at line 965 of file plotscripts.py.
References FastTimerService_cff.range.
Referenced by doTests().
def plotscripts.availableCellsDT | ( | reports | ) |
Definition at line 919 of file plotscripts.py.
References createfilelist.int, FastTimerService_cff.range, and wheelLetter().
Referenced by doTests().
Definition at line 2053 of file plotscripts.py.
References hippyaddtobaddatafiles.cd(), getname(), and print().
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.clearDDT | ( | ) |
Definition at line 2042 of file plotscripts.py.
References FastTimerService_cff.range.
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(), mps_setup.append, hippyaddtobaddatafiles.cd(), getReportByPostalAddress(), createfilelist.int, CommonMethods.isnan(), genParticles_cff.map, SiStripPI.max, print(), FastTimerService_cff.range, corrVsCorr.selection, mathSSE.sqrt(), mkLumiAveragedPlots.tuple, and ComparisonHelper.zip().
Referenced by segdiffvsphicsc().
def plotscripts.createPeaksProfile | ( | the2d, | |
rebin = 1 |
|||
) |
Definition at line 1403 of file plotscripts.py.
References createfilelist.int, mapplot(), print(), FastTimerService_cff.range, and mathSSE.sqrt().
Referenced by curvatureplot(), and mapplot().
def plotscripts.curvatureDTsummary | ( | tfiles, | |
window = 15. , |
|||
pdgSfactor = False |
|||
) |
Definition at line 1971 of file plotscripts.py.
References mps_setup.append, curvatureplot(), createfilelist.int, 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(), Get(), createfilelist.int, FastTimerService_cff.range, 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(), mps_setup.append, hippyaddtobaddatafiles.cd(), getReportByPostalAddress(), SiStripPI.max, print(), 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(), print(), and writeDQMReport().
def plotscripts.doTestsForMapPlots | ( | cells | ) |
Definition at line 1142 of file plotscripts.py.
References addToTestResults(), join(), genParticles_cff.map, print(), FastTimerService_cff.range, 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.
References createfilelist.int.
Referenced by doTestsForReport(), mapplot(), and stationIndex().
def plotscripts.loadTestResultsMap | ( | run_name | ) |
Definition at line 1189 of file plotscripts.py.
References print().
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(), Get(), idToPostalAddress(), createfilelist.int, mapNameToId(), phiedges2c(), philines(), print(), FastTimerService_cff.range, rlines(), set_palette(), mathSSE.sqrt(), stationIndex(), and zlines().
Referenced by createPeaksProfile(), alignmentValidation.doMapPlotsCSC(), and alignmentValidation.doMapPlotsDT().
def plotscripts.mean | ( | xlist | ) |
Definition at line 55 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 318 of file plotscripts.py.
References join(), genParticles_cff.map, print(), and FastTimerService_cff.range.
Referenced by mapplot().
def plotscripts.philines | ( | name, | |
window, | |||
abscissa | |||
) |
Definition at line 394 of file plotscripts.py.
References stationIndex(), and ComparisonHelper.zip().
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 hippyaddtobaddatafiles.cd(), and corrVsCorr.selection.
Referenced by doTests().
Definition at line 2272 of file plotscripts.py.
References hippyaddtobaddatafiles.cd(), getname(), print(), and FastTimerService_cff.range.
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.postalAddressToId | ( | postal_address | ) |
def plotscripts.printDeltaTs | ( | ) |
Definition at line 2046 of file plotscripts.py.
References print().
def plotscripts.rlines | ( | disk, | |
window, | |||
abscissa | |||
) |
def plotscripts.rms | ( | xlist | ) |
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(), hippyaddtobaddatafiles.cd(), MultipleCompare.Divide(), Get(), createfilelist.int, FastTimerService_cff.range, mathSSE.sqrt(), str, 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(), hippyaddtobaddatafiles.cd(), Get(), createfilelist.int, 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(), FastTimerService_cff.range, 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(), FastTimerService_cff.range, 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(), createfilelist.int, mean(), FastTimerService_cff.range, segdiff(), stdev(), and str.
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 228 of file plotscripts.py.
References genParticles_cff.map.
Referenced by curvatureDTsummary(), curvatureplot(), and mapplot().
def plotscripts.setTDRStyle | ( | ) |
Definition at line 89 of file plotscripts.py.
Referenced by BTagPerformanceAnalyzerOnData.bookHistograms(), BTagPerformanceAnalyzerMC.bookHistograms(), BTagPerformanceHarvester.dqmEndJob(), LRHelpFunctions.LRHelpFunctions(), EffPurFromHistos2D.plot(), EffPurFromHistos.plot(), SoftLeptonTagPlotter.psPlot(), TrackCountingTagPlotter.psPlot(), TrackProbabilityTagPlotter.psPlot(), JetTagPlotter.psPlot(), and RecoBTag.tdrGrid().
def plotscripts.stationIndex | ( | name | ) |
Definition at line 355 of file plotscripts.py.
References idToPostalAddress().
Referenced by MuonIdProducer.fillArbitrationInfo(), mapplot(), and philines().
def plotscripts.stdev | ( | xlist | ) |
Definition at line 69 of file plotscripts.py.
References mathSSE.sqrt().
Referenced by MuonResidualsAngleFitter.fit(), MuonResidualsBfieldAngleFitter.fit(), MuonResidualsPositionFitter.fit(), SiStripPI.getTheRange(), AlignmentPI.getTheRange(), segdiffvsphi(), segdiffvsphi_xalign(), and segdiffvsphicsc().
def plotscripts.testDeltaWithin5Sigma | ( | x, | |
sx | |||
) |
Definition at line 1052 of file plotscripts.py.
References funct.abs(), FastTimerService_cff.range, 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 35 of file plotscripts.py.
def plotscripts.wheelLetter | ( | wheel | ) |
Definition at line 39 of file plotscripts.py.
Referenced by availableCellsDT(), alignmentValidation.doFitFunctionsPlotsDT(), alignmentValidation.doMapPlotsDT(), and segdiff().
def plotscripts.wheelm1only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 34 of file plotscripts.py.
def plotscripts.wheelm2only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Convenience functions.
Definition at line 33 of file plotscripts.py.
def plotscripts.wheelNumber | ( | wheell | ) |
Definition at line 47 of file plotscripts.py.
def plotscripts.wheelp1only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 36 of file plotscripts.py.
def plotscripts.wheelp2only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 37 of file plotscripts.py.
def plotscripts.wmean | ( | xlist | ) |
Definition at line 77 of file plotscripts.py.
References mathSSE.sqrt().
Referenced by pv::biases.biases().
def plotscripts.writeDQMReport | ( | fname_dqm, | |
run_name | |||
) |
Definition at line 1201 of file plotscripts.py.
References print().
Referenced by doTests().
def plotscripts.zlines | ( | window, | |
abscissa | |||
) |
bool plotscripts.CPP_LOADED = False |
Definition at line 20 of file plotscripts.py.
list plotscripts.DQM_SEVERITY |
Definition at line 1021 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_BINS = {} |
Definition at line 25 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_FITSIN = {} |
Definition at line 24 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_SAWTOOTH = {} |
Definition at line 23 of file plotscripts.py.
list plotscripts.phiedges |
Definition at line 297 of file plotscripts.py.
Referenced by HGCalStage1TruncationImplSA.phiBin(), and HGCalStage1TruncationImplSA.run().
Definition at line 296 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 295 of file plotscripts.py.
plotscripts.tdrStyle = None |
Definition at line 88 of file plotscripts.py.
Referenced by LRHelpFunctions.purityPlot(), RecoBTag.setTDRStyle(), LRHelpFunctions.singlePlot(), and RecoBTag.tdrGrid().
dictionary plotscripts.TEST_RESULTS = {} |
Definition at line 28 of file plotscripts.py.