Public Member Functions | |
def | __init__ |
def | createHtmlReport |
def | doPlots |
def | download |
Private Member Functions | |
def | _doFastsimFastVsFullPlots |
def | _doPhase2PileupPlots |
def | _doPlots |
def | _doPlotsFastFull |
def | _doPlotsPileup |
def | _getDirectoryName |
def | _getRefFileAndSelection |
def | _getSelectionName |
Private Attributes | |
_fastsimSamples | |
_fullsimSamples | |
_newBaseDir | |
_newFileModifier | |
_newRelease | |
_plotter | |
_plotterDrawArgs | |
_refRelease | |
_refRepository | |
_selectionName | |
Base class for Tracking/Vertex validation.
Definition at line 683 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 685 of file validation.py.
Referenced by vertexPlots.VertexValidation._init__().
|
private |
Definition at line 812 of file validation.py.
References validation.Validation._doPlotsFastFull(), validation.Validation._fastsimSamples, validation.Validation._fullsimSamples, validation.Validation._newRelease, validation._processPlotsForSample(), and print().
|
private |
Definition at line 845 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 922 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(), print(), and str.
|
private |
Do the real plotting work for FastSim vs. FullSim for a given algorithm, quality flag, and sample.
Definition at line 994 of file validation.py.
References validation._findDuplicates(), validation._getGlobalTag(), validation.Validation._newBaseDir, html.HtmlReport._newBaseDir, validation.Validation._newRelease, validation.Validation._plotterDrawArgs, validation._stripRelease(), join(), 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 1061 of file validation.py.
References validation._findDuplicates(), validation._getGlobalTag(), validation.Validation._newBaseDir, html.HtmlReport._newBaseDir, validation.Validation._newRelease, validation.Validation._plotterDrawArgs, validation._stripRelease(), join(), print(), and str.
Referenced by validation.Validation._doPhase2PileupPlots().
|
private |
Definition at line 714 of file validation.py.
|
private |
Definition at line 880 of file validation.py.
References validation._getGlobalTag(), validation.Validation._refRelease, validation.Validation._refRepository, join(), and print().
Referenced by validation.Validation._doPlots().
|
private |
Definition at line 717 of file validation.py.
References validation.Validation._selectionName.
def validation.Validation.createHtmlReport | ( | self | ) |
Definition at line 769 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 772 of file validation.py.
def validation.Validation.download | ( | self | ) |
Download DQM files. Requires grid certificate and asks your password for it.
Definition at line 720 of file validation.py.
References validation.Validation._fastsimSamples, validation.Validation._fullsimSamples, validation._getRelValUrl(), validation.Validation._newFileModifier, validation.Validation._newRelease, join(), and print().
|
private |
Definition at line 706 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), and validation.Validation.download().
|
private |
Definition at line 705 of file validation.py.
Referenced by validation.Validation._doFastsimFastVsFullPlots(), validation.Validation._doPhase2PileupPlots(), and validation.Validation.download().
|
private |
Definition at line 710 of file validation.py.
Referenced by validation.Validation._doPlots(), validation.Validation._doPlotsFastFull(), validation.Validation._doPlotsPileup(), and validation.Validation.createHtmlReport().
|
private |
Definition at line 711 of file validation.py.
Referenced by validation.Validation.download().
|
private |
Definition at line 699 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 785 of file validation.py.
|
private |
Definition at line 786 of file validation.py.
Referenced by validation.Validation._doPlots(), validation.SimpleValidation._doPlots(), validation.SeparateValidation._doPlots(), validation.Validation._doPlotsFastFull(), and validation.Validation._doPlotsPileup().
|
private |
Definition at line 707 of file validation.py.
Referenced by validation.Validation._doPlots(), and validation.Validation._getRefFileAndSelection().
|
private |
Definition at line 708 of file validation.py.
Referenced by validation.Validation._getRefFileAndSelection().
|
private |
Definition at line 712 of file validation.py.
Referenced by validation.Validation._getSelectionName().