Public Member Functions | |
def | __init__ (self, fullsimSamples, fastsimSamples, refRelease, refRepository, newRelease, newRepository, newFileModifier=None, selectionName="") |
def | createHtmlReport (self) |
def | doPlots (self, plotter, plotterDrawArgs={}, limitSubFoldersOnlyTo=None, htmlReport=html.HtmlReportDummy(), doFastVsFull=True, doPhase2PU=False) |
def | download (self) |
Private Member Functions | |
def | _doFastsimFastVsFullPlots (self, limitSubFoldersOnlyTo, htmlReport) |
def | _doPhase2PileupPlots (self, limitSubFoldersOnlyTo, htmlReport) |
def | _doPlots (self, sample, harvestedFile, plotterFolder, dqmSubFolder, htmlReport) |
def | _doPlotsFastFull (self, fastSample, fullSample, plotterFolder, dqmSubFolder, htmlReport) |
def | _doPlotsPileup (self, pu140Sample, pu200Sample, plotterFolder, dqmSubFolder, htmlReport) |
def | _getDirectoryName (self, args, kwargs) |
def | _getRefFileAndSelection (self, sample, plotterFolder, dqmSubFolder, selectionNameBase, valname) |
def | _getSelectionName (self, args, kwargs) |
Private Attributes | |
_fastsimSamples | |
_fullsimSamples | |
_newBaseDir | |
_newFileModifier | |
_newRelease | |
_plotter | |
_plotterDrawArgs | |
_refRelease | |
_refRepository | |
_selectionName | |
Base class for Tracking/Vertex validation.
Definition at line 682 of file validation.py.
def validation.Validation.__init__ | ( | self, | |
fullsimSamples, | |||
fastsimSamples, | |||
refRelease, | |||
refRepository, | |||
newRelease, | |||
newRepository, | |||
newFileModifier = None , |
|||
selectionName = "" |
|||
) |
Constructor. Arguments: fullsimSamples -- List of Sample objects for FullSim samples (may be empty) fastsimSamples -- List of Sample objects for FastSim samples (may be empty) refRelease -- String for reference CMSSW release (can be None for no reference release) newRepository -- String for directory whete to put new files newRelease -- CMSSW release to be validated refRepository -- String for directory where reference root files are newFileModifier -- If given, a function to modify the names of the new files (function takes a string and returns a string) selectionName -- If given, use this string as the selection name (appended to GlobalTag for directory names)
Definition at line 684 of file validation.py.
Referenced by vertexPlots.VertexValidation._init__().
|
private |
Definition at line 811 of file validation.py.
References validation.Validation._doPlotsFastFull(), validation.Validation._fastsimSamples, validation.Validation._fullsimSamples, validation.Validation._newRelease, validation._processPlotsForSample(), and edm.print().
|
private |
Definition at line 844 of file validation.py.
References validation.Validation._doPlotsPileup(), validation.Validation._fullsimSamples, validation.Validation._newRelease, and validation._processPlotsForSample().
|
private |
Do the real plotting work for a given sample and DQM subfolder
Definition at line 921 of file validation.py.
References validation._copySubDir(), validation._findDuplicates(), validation._getGlobalTag(), validation.Validation._getRefFileAndSelection(), validation.Validation._newBaseDir, html.HtmlReport._newBaseDir, validation.Validation._newRelease, validation.Validation._plotterDrawArgs, validation.Validation._refRelease, validation._stripRelease(), join(), genParticles_cff.map, edm.print(), and str.
Referenced by validation.SimpleValidation._doPlotsForPlotter().
|
private |
Do the real plotting work for FastSim vs. FullSim for a given algorithm, quality flag, and sample.
Definition at line 992 of file validation.py.
References validation._findDuplicates(), validation._getGlobalTag(), validation.Validation._newBaseDir, html.HtmlReport._newBaseDir, validation.Validation._newRelease, validation.Validation._plotterDrawArgs, validation._stripRelease(), join(), genParticles_cff.map, edm.print(), and str.
Referenced by validation.Validation._doFastsimFastVsFullPlots().
|
private |
Do the real plotting work for two pileup scenarios for a given algorithm, quality flag, and sample.
Definition at line 1058 of file validation.py.
References validation._findDuplicates(), validation._getGlobalTag(), validation.Validation._newBaseDir, html.HtmlReport._newBaseDir, validation.Validation._newRelease, validation.Validation._plotterDrawArgs, validation._stripRelease(), join(), genParticles_cff.map, edm.print(), and str.
Referenced by validation.Validation._doPhase2PileupPlots().
|
private |
Definition at line 713 of file validation.py.
|
private |
Definition at line 879 of file validation.py.
References validation._getGlobalTag(), validation.Validation._refRelease, validation.Validation._refRepository, join(), and edm.print().
Referenced by validation.Validation._doPlots().
|
private |
Definition at line 716 of file validation.py.
References validation.Validation._selectionName.
def validation.Validation.createHtmlReport | ( | self | ) |
Definition at line 768 of file validation.py.
References validation.Validation._newBaseDir, html.HtmlReport._newBaseDir, and validation.Validation._newRelease.
def validation.Validation.doPlots | ( | self, | |
plotter, | |||
plotterDrawArgs = {} , |
|||
limitSubFoldersOnlyTo = None , |
|||
htmlReport = html.HtmlReportDummy() , |
|||
doFastVsFull = True , |
|||
doPhase2PU = False |
|||
) |
Create validation plots. Arguments: plotter -- plotting.Plotter object that does the plotting Keyword arguments: plotterDrawArgs -- Dictionary for additional arguments to Plotter.draw() (default: {}) limitSubFoldersOnlyTo -- If not None, should be a dictionary from string to an object. The string is the name of a PlotFolder, and the object is PlotFolder-type specific to limit the subfolders to be processed. In general case the object is a list of strings, but e.g. for track iteration plots it is a function taking the algo and quality as parameters. htmlReport -- Object returned by createHtmlReport(), in case HTML report generation is desired doFastVsFull -- Do FastSim vs. FullSim comparison? (default: True) doPhase2PU -- Do Phase2 PU 200 vs. 140 comparison (default: False)
Definition at line 771 of file validation.py.
def validation.Validation.download | ( | self | ) |
Download DQM files. Requires grid certificate and asks your password for it.
Definition at line 719 of file validation.py.
References validation.Validation._fastsimSamples, validation.Validation._fullsimSamples, validation._getRelValUrl(), validation.Validation._newFileModifier, validation.Validation._newRelease, join(), genParticles_cff.map, and edm.print().
|
private |
Definition at line 705 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), and validation.Validation.download().
|
private |
Definition at line 704 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), validation.Validation._doPhase2PileupPlots(), and validation.Validation.download().
|
private |
Definition at line 709 of file validation.py.
Referenced by validation.Validation._doPlots(), validation.Validation._doPlotsFastFull(), validation.Validation._doPlotsPileup(), and validation.Validation.createHtmlReport().
|
private |
Definition at line 710 of file validation.py.
Referenced by validation.Validation.download().
|
private |
Definition at line 698 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), validation.Validation._doPhase2PileupPlots(), validation.Validation._doPlots(), validation.Validation._doPlotsFastFull(), validation.Validation._doPlotsPileup(), validation.Validation.createHtmlReport(), and validation.Validation.download().
|
private |
Definition at line 784 of file validation.py.
|
private |
Definition at line 785 of file validation.py.
Referenced by validation.Validation._doPlots(), validation.SimpleValidation._doPlots(), validation.Validation._doPlotsFastFull(), and validation.Validation._doPlotsPileup().
|
private |
Definition at line 706 of file validation.py.
Referenced by validation.Validation._doPlots(), and validation.Validation._getRefFileAndSelection().
|
private |
Definition at line 707 of file validation.py.
Referenced by validation.Validation._getRefFileAndSelection().
|
private |
Definition at line 711 of file validation.py.
Referenced by validation.Validation._getSelectionName().