Public Member Functions | |
def | __beautify__ (self, canvas, CMSextraLabel, eraLabel) |
def | __clean__ (self) |
def | __cleanSingle__ (self) |
def | __createArchitecture__ (self) |
def | __createSingleArchitecture__ (self) |
def | __defineObjects__ (self) |
def | __defineSingleObjects__ (self) |
def | __finalize__ (self) |
def | __fitGauss__ (self, hist) |
def | __getStat__ (self, hist, var) |
def | __init__ (self, args) |
def | __log__ (self, log_type="", text="") |
def | __setTHStyle__ (self, objects) |
def | addDATA (self, filename) |
def | addDirDATA (self, dataDir) |
def | addDirMC (self, mcDir) |
def | addMC (self, filename) |
def | plot (self) |
def | plotSingle (self) |
Public Attributes | |
args | |
cwd | |
dataDirs | |
dataFiles | |
fileBaseName | |
legendOffset | |
legendTextSize | |
maxEntriesPerColumn | |
mcFiles | |
MCobjects | |
objNameList | |
Open each file separately and get object groups. More... | |
objNameListMC | |
outputDir | |
segments | |
segmentTextOffset | |
statBoxTextSize | |
varsX | |
Set histogram labels, axis titles, line color, stat bar, etc. More... | |
Static Public Attributes | |
canvas = ROOT.TCanvas(id+"_"+var+"_"+segment) | |
string | datasetType = "singlemuon" |
list | histsMC = [] |
string | id = "0" |
id = _obj['id'] | |
bool | isEmpty = True |
list | labelsMC = [] |
leg = ROOT.TLegend(0.08,legMinY,0.45,0.88) | |
legendLabel = objName.replace("_"," ") | |
legendLabelMC = objNameMC.replace("_"," ") | |
tuple | legMinY = (1./self.legendOffset)+(1.-1./self.legendOffset)*(self.maxEntriesPerColumn-len(objGroup))/(self.maxEntriesPerColumn*3) |
int | legMinY = 1./self.legendOffset |
list | maxX = objGroup[0]['hist'].GetXaxis().GetXmax() |
float | maxY = 0.0 |
maxY = obj['hist'].GetBinContent(obj['hist'].GetMaximumBin()) | |
int | nColumns = 1 |
def | objects = self.__defineSingleObjects__() |
def | objectsData = objects['DATA'] |
def | objectsMC = objects['MC'] |
list | objGroup = [] |
seg = ROOT.TLatex() | |
dictionary | segmentText = {'text' : segment, 'xmin' : 0.0, 'xmax' : 0.0} |
def | stat = self._styledTPaveText(maxX*statText['xmin'],(legMinY+0.025)*self.legendOffset*maxY,maxX*statText['xmax'],0.95*self.legendOffset*maxY,var) |
list | statsMC = [] |
dictionary | statText = {'xmin' : 0.0, 'xmax' : 0.0} |
Private Member Functions | |
def | _replaceMulti (self, mainString, toBeReplaced, newString) |
def | _styledTPaveText (self, x1, y1, x2, y2, var) |
Definition at line 8 of file DMRplotter.py.
def DMRplotter.DMRplotter.__init__ | ( | self, | |
args | |||
) |
Definition at line 9 of file DMRplotter.py.
def DMRplotter.DMRplotter.__beautify__ | ( | self, | |
canvas, | |||
CMSextraLabel, | |||
eraLabel | |||
) |
def DMRplotter.DMRplotter.__clean__ | ( | self | ) |
Definition at line 742 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter.cwd, DMRplotter.DMRplotter.dataFiles, DMRplotter.DMRplotter.MCobjects, DMRplotter.DMRplotter.outputDir, Trend.outputDir, and PlotAlignmentValidation.outputDir.
def DMRplotter.DMRplotter.__cleanSingle__ | ( | self | ) |
Definition at line 728 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter.cwd, DMRplotter.DMRplotter.outputDir, Trend.outputDir, and PlotAlignmentValidation.outputDir.
def DMRplotter.DMRplotter.__createArchitecture__ | ( | self | ) |
Definition at line 123 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter.dataFiles, DMRplotter.DMRplotter.MCobjects, DMRplotter.DMRplotter.outputDir, Trend.outputDir, and PlotAlignmentValidation.outputDir.
Referenced by DMRplotter.DMRplotter.plot().
def DMRplotter.DMRplotter.__createSingleArchitecture__ | ( | self | ) |
Definition at line 89 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter.args, DMRplotter.DMRplotter.dataDirs, DMRplotter.DMRplotter.outputDir, Trend.outputDir, and PlotAlignmentValidation.outputDir.
Referenced by DMRplotter.DMRplotter.plotSingle().
def DMRplotter.DMRplotter.__defineObjects__ | ( | self | ) |
Definition at line 293 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter._replaceMulti(), mps_setup.append, DMRplotter.DMRplotter.args, DMRplotter.DMRplotter.dataFiles, DMRplotter.DMRplotter.MCobjects, DMRplotter.DMRplotter.objNameList, DMRplotter.DMRplotter.objNameListMC, submitPVValidationJobs.split(), and str.
Referenced by DMRplotter.DMRplotter.plot().
def DMRplotter.DMRplotter.__defineSingleObjects__ | ( | self | ) |
Definition at line 147 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter._replaceMulti(), mps_setup.append, DMRplotter.DMRplotter.args, DMRplotter.DMRplotter.dataFiles, DMRplotter.DMRplotter.mcFiles, DMRplotter.DMRplotter.objNameList, DMRplotter.DMRplotter.objNameListMC, submitPVValidationJobs.split(), and str.
def DMRplotter.DMRplotter.__finalize__ | ( | self | ) |
Definition at line 760 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), DMRplotter.DMRplotter.outputDir, Trend.outputDir, and PlotAlignmentValidation.outputDir.
Referenced by DMRplotter.DMRplotter.plot().
def DMRplotter.DMRplotter.__fitGauss__ | ( | self, | |
hist | |||
) |
Definition at line 453 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), and createfilelist.int.
Referenced by DMRplotter.DMRplotter.__getStat__().
def DMRplotter.DMRplotter.__getStat__ | ( | self, | |
hist, | |||
var | |||
) |
Definition at line 486 of file DMRplotter.py.
References DMRplotter.DMRplotter.__fitGauss__(), DMRplotter.DMRplotter.args, and str.
Referenced by DMRplotter.DMRplotter.plot().
def DMRplotter.DMRplotter.__log__ | ( | self, | |
log_type = "" , |
|||
text = "" |
|||
) |
Definition at line 28 of file DMRplotter.py.
References createfilelist.int, print(), and str.
Referenced by DMRplotter.DMRplotter.__clean__(), DMRplotter.DMRplotter.__cleanSingle__(), DMRplotter.DMRplotter.__createArchitecture__(), DMRplotter.DMRplotter.__createSingleArchitecture__(), DMRplotter.DMRplotter.__defineObjects__(), DMRplotter.DMRplotter.__defineSingleObjects__(), DMRplotter.DMRplotter.__finalize__(), DMRplotter.DMRplotter.__fitGauss__(), DMRplotter.DMRplotter.addDATA(), DMRplotter.DMRplotter.addDirDATA(), DMRplotter.DMRplotter.addDirMC(), and DMRplotter.DMRplotter.addMC().
def DMRplotter.DMRplotter.__setTHStyle__ | ( | self, | |
objects | |||
) |
Definition at line 552 of file DMRplotter.py.
References DMRplotter.DMRplotter.args, DMRplotter.DMRplotter.legendTextSize, and DMRplotter.DMRplotter.varsX.
Referenced by DMRplotter.DMRplotter.plot().
|
private |
Definition at line 54 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__defineObjects__(), and DMRplotter.DMRplotter.__defineSingleObjects__().
|
private |
Definition at line 65 of file DMRplotter.py.
References DMRplotter.DMRplotter.args, and DMRplotter.DMRplotter.statBoxTextSize.
Referenced by DMRplotter.DMRplotter.plot().
def DMRplotter.DMRplotter.addDATA | ( | self, | |
filename | |||
) |
Definition at line 772 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), mps_setup.append, DMRplotter.DMRplotter.dataFiles, DMRplotter.DMRplotter.fileBaseName, and str.
def DMRplotter.DMRplotter.addDirDATA | ( | self, | |
dataDir | |||
) |
Definition at line 785 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), mps_setup.append, DMRplotter.DMRplotter.args, DMRplotter.DMRplotter.dataDirs, and DMRplotter.DMRplotter.dataFiles.
def DMRplotter.DMRplotter.addDirMC | ( | self, | |
mcDir | |||
) |
Definition at line 804 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), mps_setup.append, DMRplotter.DMRplotter.fileBaseName, DMRplotter.DMRplotter.MCobjects, python.rootplot.root2matplotlib.replace(), and str.
def DMRplotter.DMRplotter.addMC | ( | self, | |
filename | |||
) |
Definition at line 822 of file DMRplotter.py.
References DMRplotter.DMRplotter.__log__(), mps_setup.append, DMRplotter.DMRplotter.fileBaseName, DMRplotter.DMRplotter.MCobjects, and str.
def DMRplotter.DMRplotter.plot | ( | self | ) |
Definition at line 956 of file DMRplotter.py.
References DMRplotter.DMRplotter.__beautify__(), DMRplotter.DMRplotter.__createArchitecture__(), DMRplotter.DMRplotter.__defineObjects__(), DMRplotter.DMRplotter.__finalize__(), DMRplotter.DMRplotter.__getStat__(), DMRplotter.DMRplotter.__setTHStyle__(), DMRplotter.DMRplotter._styledTPaveText(), DMRplotter.DMRplotter.args, DMRplotter.DMRplotter.legendOffset, DMRplotter.DMRplotter.maxEntriesPerColumn, DMRplotter.DMRplotter.objNameList, DMRplotter.DMRplotter.outputDir, Trend.outputDir, PlotAlignmentValidation.outputDir, DMRplotter.DMRplotter.segments, DMRplotter.DMRplotter.segmentTextOffset, and DMRplotter.DMRplotter.varsX.
def DMRplotter.DMRplotter.plotSingle | ( | self | ) |
Definition at line 835 of file DMRplotter.py.
References DMRplotter.DMRplotter.__createSingleArchitecture__().
DMRplotter.DMRplotter.args |
Definition at line 10 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__createSingleArchitecture__(), DMRplotter.DMRplotter.__defineObjects__(), DMRplotter.DMRplotter.__defineSingleObjects__(), DMRplotter.DMRplotter.__getStat__(), tier0.ResponseError.__init__(), DMRplotter.DMRplotter.__setTHStyle__(), tier0.ResponseError.__str__(), DMRplotter.DMRplotter._styledTPaveText(), DMRplotter.DMRplotter.addDirDATA(), conddb_version_mgr.conddb_tool.connect(), o2olib.O2OTool.create(), o2olib.O2OTool.disable(), o2olib.O2OTool.dumpConf(), o2olib.O2OTool.enable(), conddb_version_mgr.conddb_tool.insert_boost_run(), o2olib.O2OTool.listConf(), esMonitoring.ElasticReport.make_report(), DMRplotter.DMRplotter.plot(), o2olib.O2OTool.run(), o2olib.O2OTool.setConfig(), o2olib.O2OTool.setFrequent(), o2olib.O2OTool.setInterval(), conddb_version_mgr.conddb_tool.show_tag_boost_version(), and conddb_version_mgr.conddb_tool.update_tags().
|
static |
Definition at line 865 of file DMRplotter.py.
Referenced by DisplayManager.DisplayManager.__del__(), DisplayManager.DisplayManager.Draw(), TkAlMap.TkAlMap.draw_cms_prelim(), TkAlMap.TkAlMap.draw_color_bar(), TkAlMap.TkAlMap.draw_event_info(), TkAlMap.TkAlMap.draw_text(), TkAlMap.TkAlMap.draw_title(), TkAlMap.TkAlMap.draw_TPL(), TkAlMap.TkAlMap.load_geometry(), and TkAlMap.TkAlMap.save().
DMRplotter.DMRplotter.cwd |
Definition at line 16 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__clean__(), and DMRplotter.DMRplotter.__cleanSingle__().
DMRplotter.DMRplotter.dataDirs |
Definition at line 12 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__createSingleArchitecture__(), and DMRplotter.DMRplotter.addDirDATA().
DMRplotter.DMRplotter.dataFiles |
Definition at line 11 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__clean__(), DMRplotter.DMRplotter.__createArchitecture__(), DMRplotter.DMRplotter.__defineObjects__(), DMRplotter.DMRplotter.__defineSingleObjects__(), DMRplotter.DMRplotter.addDATA(), and DMRplotter.DMRplotter.addDirDATA().
|
static |
Definition at line 922 of file DMRplotter.py.
DMRplotter.DMRplotter.fileBaseName |
Definition at line 14 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.addDATA(), DMRplotter.DMRplotter.addDirMC(), and DMRplotter.DMRplotter.addMC().
|
static |
Definition at line 897 of file DMRplotter.py.
|
static |
Definition at line 861 of file DMRplotter.py.
|
static |
Definition at line 864 of file DMRplotter.py.
|
static |
Definition at line 883 of file DMRplotter.py.
Referenced by plotting.Plot.clone().
|
static |
Definition at line 898 of file DMRplotter.py.
|
static |
Definition at line 928 of file DMRplotter.py.
|
static |
Definition at line 892 of file DMRplotter.py.
|
static |
Definition at line 906 of file DMRplotter.py.
DMRplotter.DMRplotter.legendOffset |
Definition at line 22 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.plot().
DMRplotter.DMRplotter.legendTextSize |
Definition at line 23 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__setTHStyle__().
|
static |
Definition at line 923 of file DMRplotter.py.
|
static |
Definition at line 927 of file DMRplotter.py.
DMRplotter.DMRplotter.maxEntriesPerColumn |
Definition at line 26 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.plot().
|
static |
Definition at line 931 of file DMRplotter.py.
|
static |
Definition at line 884 of file DMRplotter.py.
|
static |
Definition at line 890 of file DMRplotter.py.
DMRplotter.DMRplotter.mcFiles |
Definition at line 13 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__defineSingleObjects__().
DMRplotter.DMRplotter.MCobjects |
Definition at line 18 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__clean__(), DMRplotter.DMRplotter.__createArchitecture__(), DMRplotter.DMRplotter.__defineObjects__(), DMRplotter.DMRplotter.addDirMC(), and DMRplotter.DMRplotter.addMC().
|
static |
Definition at line 924 of file DMRplotter.py.
|
static |
Definition at line 844 of file DMRplotter.py.
|
static |
Definition at line 845 of file DMRplotter.py.
|
static |
Definition at line 846 of file DMRplotter.py.
|
static |
Definition at line 885 of file DMRplotter.py.
DMRplotter.DMRplotter.objNameList |
Open each file separately and get object groups.
Open result file and get information about objects stored inside.
In case that input validation objects were not given as an argument, it will retrieve those names from histogram names. Otherwise it will search for particular object names. Histograms are then stored for each module segment and each object.
Definition at line 17 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__defineObjects__(), DMRplotter.DMRplotter.__defineSingleObjects__(), and DMRplotter.DMRplotter.plot().
DMRplotter.DMRplotter.objNameListMC |
Definition at line 19 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__defineObjects__(), and DMRplotter.DMRplotter.__defineSingleObjects__().
DMRplotter.DMRplotter.outputDir |
Definition at line 15 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__clean__(), DMRplotter.DMRplotter.__cleanSingle__(), DMRplotter.DMRplotter.__createArchitecture__(), DMRplotter.DMRplotter.__createSingleArchitecture__(), DMRplotter.DMRplotter.__finalize__(), and DMRplotter.DMRplotter.plot().
|
static |
Definition at line 930 of file DMRplotter.py.
DMRplotter.DMRplotter.segments |
Definition at line 20 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.plot().
|
static |
Definition at line 869 of file DMRplotter.py.
DMRplotter.DMRplotter.segmentTextOffset |
Definition at line 25 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.plot().
|
static |
Definition at line 932 of file DMRplotter.py.
DMRplotter.DMRplotter.statBoxTextSize |
Definition at line 24 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter._styledTPaveText().
|
static |
Definition at line 899 of file DMRplotter.py.
|
static |
Definition at line 870 of file DMRplotter.py.
DMRplotter.DMRplotter.varsX |
Set histogram labels, axis titles, line color, stat bar, etc.
Definition at line 21 of file DMRplotter.py.
Referenced by DMRplotter.DMRplotter.__setTHStyle__(), and DMRplotter.DMRplotter.plot().