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 475 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 477 of file validation.py.
Referenced by vertexPlots.VertexValidation._init__().
|
private |
Definition at line 604 of file validation.py.
References validation.Validation._doPlotsFastFull(), validation.Validation._fastsimSamples, validation.Validation._fullsimSamples, validation.Validation._newRelease, and validation._processPlotsForSample().
|
private |
Definition at line 637 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 714 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, and harvestTrackValidationPlots.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 786 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, and harvestTrackValidationPlots.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 854 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, and harvestTrackValidationPlots.str.
Referenced by validation.Validation._doPhase2PileupPlots().
|
private |
Definition at line 506 of file validation.py.
|
private |
Definition at line 672 of file validation.py.
References validation._getGlobalTag(), validation.Validation._refRelease, validation.Validation._refRepository, and join().
Referenced by validation.Validation._doPlots().
|
private |
Definition at line 509 of file validation.py.
References validation.Validation._selectionName.
def validation.Validation.createHtmlReport | ( | self | ) |
Definition at line 561 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 564 of file validation.py.
def validation.Validation.download | ( | self | ) |
Download DQM files. Requires grid certificate and asks your password for it.
Definition at line 512 of file validation.py.
References validation.Validation._fastsimSamples, validation.Validation._fullsimSamples, validation._getRelValUrl(), validation.Validation._newFileModifier, validation.Validation._newRelease, ALCARECOTkAlBeamHalo_cff.filter, join(), and genParticles_cff.map.
|
private |
Definition at line 498 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), and validation.Validation.download().
|
private |
Definition at line 497 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), validation.Validation._doPhase2PileupPlots(), and validation.Validation.download().
|
private |
Definition at line 502 of file validation.py.
Referenced by validation.Validation._doPlots(), validation.Validation._doPlotsFastFull(), validation.Validation._doPlotsPileup(), and validation.Validation.createHtmlReport().
|
private |
Definition at line 503 of file validation.py.
Referenced by validation.Validation.download().
|
private |
Definition at line 491 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 577 of file validation.py.
|
private |
Definition at line 578 of file validation.py.
Referenced by validation.Validation._doPlots(), validation.SimpleValidation._doPlots(), validation.Validation._doPlotsFastFull(), and validation.Validation._doPlotsPileup().
|
private |
Definition at line 499 of file validation.py.
Referenced by validation.Validation._doPlots(), and validation.Validation._getRefFileAndSelection().
|
private |
Definition at line 500 of file validation.py.
Referenced by validation.Validation._getRefFileAndSelection().
|
private |
Definition at line 504 of file validation.py.
Referenced by validation.Validation._getSelectionName().