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 1031 of file plotscripts.py.
Referenced by doTestsForMapPlots(), and doTestsForReport().
def plotscripts.availableCellsCSC | ( | reports | ) |
def plotscripts.availableCellsDT | ( | reports | ) |
Definition at line 918 of file plotscripts.py.
References createfilelist.int, and wheelLetter().
Referenced by doTests().
Definition at line 2052 of file plotscripts.py.
References getname(), and edm.print().
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.clearDDT | ( | ) |
Definition at line 2041 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 3552 of file plotscripts.py.
References funct.abs(), mps_setup.append, getReportByPostalAddress(), createfilelist.int, edm::detail.isnan(), list(), genParticles_cff.map, SiStripPI.max, edm.print(), corrVsCorr.selection, mathSSE.sqrt(), and ComparisonHelper.zip().
Referenced by segdiffvsphicsc().
def plotscripts.createPeaksProfile | ( | the2d, | |
rebin = 1 |
|||
) |
Definition at line 1402 of file plotscripts.py.
References createfilelist.int, mapplot(), edm.print(), and mathSSE.sqrt().
Referenced by curvatureplot(), and mapplot().
Definition at line 1970 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 1803 of file plotscripts.py.
References createPeaksProfile(), createfilelist.int, 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 484 of file plotscripts.py.
References funct.abs(), mps_setup.append, getReportByPostalAddress(), SiStripPI.max, edm.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 719 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 477 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 716 of file plotscripts.py.
References DBdiffVersus().
def plotscripts.doTests | ( | reports, | |
pic_ids, | |||
fname_base, | |||
fname_dqm, | |||
run_name | |||
) |
Definition at line 1214 of file plotscripts.py.
References availableCellsCSC(), availableCellsDT(), doTestsForMapPlots(), doTestsForReport(), loadTestResultsMap(), plotmedians(), edm.print(), and writeDQMReport().
def plotscripts.doTestsForMapPlots | ( | cells | ) |
Definition at line 1141 of file plotscripts.py.
References addToTestResults(), join(), genParticles_cff.map, edm.print(), testDeltaWithin5Sigma(), testEntry(), and testZeroWithin5Sigma().
Referenced by doTests().
def plotscripts.doTestsForReport | ( | cells, | |
reports | |||
) |
Definition at line 1077 of file plotscripts.py.
References addToTestResults(), idToPostalAddress(), and testEntry().
Referenced by doTests().
def plotscripts.getname | ( | r | ) |
Definition at line 2031 of file plotscripts.py.
References funct.abs().
Referenced by bellcurves(), Signal.init(), and polynomials().
def plotscripts.getReportByPostalAddress | ( | postal_address, | |
report | |||
) |
Definition at line 467 of file plotscripts.py.
References DBMC().
Referenced by corrections2D(), and DBdiff().
def plotscripts.idToPostalAddress | ( | id | ) |
Definition at line 860 of file plotscripts.py.
References createfilelist.int.
Referenced by doTestsForReport(), mapplot(), and stationIndex().
def plotscripts.loadTestResultsMap | ( | run_name | ) |
Definition at line 1188 of file plotscripts.py.
References edm.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 1444 of file plotscripts.py.
References funct.abs(), createPeaksProfile(), idToPostalAddress(), createfilelist.int, mapNameToId(), phiedges2c(), philines(), edm.print(), rlines(), set_palette(), mathSSE.sqrt(), stationIndex(), and zlines().
Referenced by createPeaksProfile(), alignmentValidation.doMapPlotsCSC(), and alignmentValidation.doMapPlotsDT().
def plotscripts.mean | ( | xlist | ) |
Definition at line 54 of file plotscripts.py.
Referenced by segdiffvsphi(), segdiffvsphi_xalign(), and segdiffvsphicsc().
def plotscripts.nameToId | ( | name | ) |
Definition at line 895 of file plotscripts.py.
def plotscripts.phiedges2c | ( | ) |
Definition at line 317 of file plotscripts.py.
References join(), genParticles_cff.map, and edm.print().
Referenced by mapplot().
def plotscripts.philines | ( | name, | |
window, | |||
abscissa | |||
) |
Definition at line 393 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 1245 of file plotscripts.py.
References corrVsCorr.selection.
Referenced by doTests().
Definition at line 2271 of file plotscripts.py.
References getname(), and edm.print().
Referenced by alignmentValidation.doFitFunctionsPlotsCSC(), and alignmentValidation.doFitFunctionsPlotsDT().
def plotscripts.postalAddressToId | ( | postal_address | ) |
def plotscripts.printDeltaTs | ( | ) |
def plotscripts.rlines | ( | disk, | |
window, | |||
abscissa | |||
) |
def plotscripts.rms | ( | xlist | ) |
def plotscripts.saveTestResultsMap | ( | run_name | ) |
Definition at line 1180 of file plotscripts.py.
Referenced by alignmentValidation.doMapPlotsCSC(), and alignmentValidation.doMapPlotsDT().
def plotscripts.segdiff | ( | tfiles, | |
component, | |||
pair, | |||
args | |||
) |
Definition at line 2888 of file plotscripts.py.
References funct.abs(), MultipleCompare.Divide(), createfilelist.int, mathSSE.sqrt(), str, and wheelLetter().
Referenced by alignmentValidation.doSegDiffPlotsCSC(), alignmentValidation.doSegDiffPlotsDT(), segdiffvsphi(), and segdiffvsphicsc().
def plotscripts.segdiff_xalign | ( | tfiles, | |
component, | |||
args | |||
) |
Definition at line 3064 of file plotscripts.py.
References funct.abs(), 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 3301 of file plotscripts.py.
References mean(), segdiff(), and stdev().
Referenced by alignmentValidation.doSegDiffPlotsDT().
def plotscripts.segdiffvsphi_xalign | ( | tfiles, | |
wheel, | |||
window = 10. |
|||
) |
Definition at line 3186 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 3439 of file plotscripts.py.
References corrections2D(), createfilelist.int, mean(), segdiff(), stdev(), and str.
Referenced by alignmentValidation.doSegDiffPlotsCSC().
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 227 of file plotscripts.py.
References genParticles_cff.map.
Referenced by curvatureDTsummary(), curvatureplot(), and mapplot().
def plotscripts.setTDRStyle | ( | ) |
Definition at line 88 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 354 of file plotscripts.py.
References idToPostalAddress().
Referenced by MuonIdProducer.fillArbitrationInfo(), mapplot(), and philines().
def plotscripts.stdev | ( | xlist | ) |
Definition at line 68 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 1051 of file plotscripts.py.
References funct.abs(), and mathSSE.sqrt().
Referenced by doTestsForMapPlots().
def plotscripts.testEntry | ( | testID, | |
scope, | |||
descr, | |||
severity | |||
) |
Definition at line 1037 of file plotscripts.py.
Referenced by doTestsForMapPlots(), and doTestsForReport().
def plotscripts.testZeroWithin5Sigma | ( | x | ) |
Definition at line 1044 of file plotscripts.py.
References funct.abs().
Referenced by doTestsForMapPlots().
def plotscripts.wheel0only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 34 of file plotscripts.py.
def plotscripts.wheelLetter | ( | wheel | ) |
Definition at line 38 of file plotscripts.py.
Referenced by availableCellsDT(), alignmentValidation.doFitFunctionsPlotsDT(), alignmentValidation.doMapPlotsDT(), and segdiff().
def plotscripts.wheelm1only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 33 of file plotscripts.py.
def plotscripts.wheelm2only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Convenience functions.
Definition at line 32 of file plotscripts.py.
def plotscripts.wheelNumber | ( | wheell | ) |
Definition at line 46 of file plotscripts.py.
Referenced by DTDataIntegrityTest.dqmEndLuminosityBlock().
def plotscripts.wheelp1only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 35 of file plotscripts.py.
def plotscripts.wheelp2only | ( | dt, | |
wheel, | |||
station, | |||
sector | |||
) |
Definition at line 36 of file plotscripts.py.
def plotscripts.wmean | ( | xlist | ) |
def plotscripts.writeDQMReport | ( | fname_dqm, | |
run_name | |||
) |
Definition at line 1200 of file plotscripts.py.
References edm.print().
Referenced by doTests().
def plotscripts.zlines | ( | window, | |
abscissa | |||
) |
bool plotscripts.CPP_LOADED = False |
Definition at line 19 of file plotscripts.py.
list plotscripts.DQM_SEVERITY |
Definition at line 1020 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_BINS = {} |
Definition at line 24 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_FITSIN = {} |
Definition at line 23 of file plotscripts.py.
dictionary plotscripts.MAP_RESULTS_SAWTOOTH = {} |
Definition at line 22 of file plotscripts.py.
list plotscripts.phiedges |
Definition at line 296 of file plotscripts.py.
Definition at line 295 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 294 of file plotscripts.py.
plotscripts.tdrStyle = None |
Definition at line 87 of file plotscripts.py.
Referenced by LRHelpFunctions.purityPlot(), RecoBTag.setTDRStyle(), LRHelpFunctions.singlePlot(), and RecoBTag.tdrGrid().
dictionary plotscripts.TEST_RESULTS = {} |
Definition at line 27 of file plotscripts.py.