CMS 3D CMS Logo

Classes | Functions | Variables
html Namespace Reference

Classes

class  HtmlReport
 
class  HtmlReportDummy
 
class  IndexSection
 
class  Page
 
class  PageSet
 
class  PlotPurpose
 
class  Table
 
class  TrackingIterPage
 
class  TrackingPageSet
 

Functions

def _allToBTV (s)
 
def _allToHP (s)
 
def _byOriginalAlgo (s)
 
def _lowerFirst (s)
 
def _ptCut (s)
 
def _sectionNameLegend ()
 
def _toAlgoMask (s)
 
def _toHP (s)
 
def _toOriAlgo (s)
 

Variables

 _allName
 
 _allTPEfficLegend
 
 _allTPEfficName
 
 _bhadronLegend
 
 _bhadronName
 
 _btvLegend
 
 _conversionName
 
 _fromPVAllTP2Legend
 
 _fromPVAllTPLegend
 
 _fromPVAllTPName
 
 _fromPVAllTPPt2Legend
 
 _fromPVAllTPPtLegend
 
 _fromPVLegend
 
 _fromPVName
 
 _fromPVPtLegend
 
 _gsfName
 
 _pageNameMap
 
 _sampleFileName
 
 _sampleName
 
 _sectionNameMapOrder
 
 _tpPtLess09Name
 
 _trackAlgoName
 
 _trackAlgoOrder
 
 _trackQualityNameOrder
 

Function Documentation

def html._allToBTV (   s)
private

Definition at line 61 of file html.py.

61 def _allToBTV(s):
62  return s.replace("All", "BTV-like")
def _allToBTV(s)
Definition: html.py:61
def html._allToHP (   s)
private

Definition at line 59 of file html.py.

Referenced by _sectionNameLegend().

59 def _allToHP(s):
60  return s.replace("All", "High purity")
def _allToHP(s)
Definition: html.py:59
def html._byOriginalAlgo (   s)
private

Definition at line 63 of file html.py.

64  return s.replace("tracks", "tracks by originalAlgo")
def _byOriginalAlgo(s)
Definition: html.py:63
def html._lowerFirst (   s)
private

Definition at line 4 of file html.py.

Referenced by _toHP().

4 def _lowerFirst(s):
5  return s[0].lower()+s[1:]
6 
def _lowerFirst(s)
Definition: html.py:4
def html._ptCut (   s)
private

Definition at line 65 of file html.py.

References python.rootplot.root2matplotlib.replace().

65 def _ptCut(s):
66  return s.replace("Tracks", "Tracks pT > 0.9 GeV").replace("tracks", "tracks pT > 0.9 GeV")
def replace(string, replacements)
def _ptCut(s)
Definition: html.py:65
def html._sectionNameLegend ( )
private

Definition at line 217 of file html.py.

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

218  return {
219  "btvLike": _btvLegend,
220  "ak4PFJets": "Tracks from AK4 PF jets (jet corrected pT > 10 GeV)",
221  "allTPEffic": _allTPEfficLegend,
222  "allTPEffic_": _allTPEfficLegend,
223  "allTPEffic_highPurity": _allToHP(_allTPEfficLegend),
224  "fromPV": _fromPVLegend,
225  "fromPV_": _fromPVLegend,
226  "fromPV_highPurity": _toHP(_fromPVLegend),
227  "fromPV_Pt09": _fromPVPtLegend,
228  "fromPV_highPurity_Pt09": _toHP(_fromPVPtLegend),
229  "fromPVAllTP": _fromPVAllTPLegend,
230  "fromPVAllTP_": _fromPVAllTPLegend,
231  "fromPVAllTP_highPurity": _toHP(_fromPVAllTPLegend),
232  "fromPVAllTP_Pt09": _fromPVAllTPPtLegend,
233  "fromPVAllTP_highPurityPt09": _toHP(_fromPVAllTPPtLegend),
234  "fromPVAllTP2_": _fromPVAllTP2Legend,
235  "fromPVAllTP2_highPurity": _toHP(_fromPVAllTP2Legend),
236  "fromPVAllTP2_Pt09": _fromPVAllTPPt2Legend,
237  "fromPVAllTP2_highPurityPt09": _toHP(_fromPVAllTPPt2Legend),
238  "bhadron_": _bhadronLegend,
239  "bhadron_highPurity": _allToHP(_bhadronLegend),
240  "bhadron_btvLike": _bhadronLegend.replace("All tracks", _btvLegend),
241  }
242 
def _allToHP(s)
Definition: html.py:59
def _sectionNameLegend()
Definition: html.py:217
def _toHP(s)
Definition: html.py:53
def html._toAlgoMask (   s)
private

Definition at line 57 of file html.py.

57 def _toAlgoMask(s):
58  return s.replace("tracks", "tracks by algoMask")
def _toAlgoMask(s)
Definition: html.py:57
def html._toHP (   s)
private

Definition at line 53 of file html.py.

References _lowerFirst().

Referenced by _sectionNameLegend().

53 def _toHP(s):
54  return "High purity "+_lowerFirst(s)
def _lowerFirst(s)
Definition: html.py:4
def _toHP(s)
Definition: html.py:53
def html._toOriAlgo (   s)
private

Definition at line 55 of file html.py.

55 def _toOriAlgo(s):
56  return s.replace("tracks", "tracks by originalAlgo")
def _toOriAlgo(s)
Definition: html.py:55

Variable Documentation

html._allName
private

Definition at line 45 of file html.py.

html._allTPEfficLegend
private

Definition at line 208 of file html.py.

html._allTPEfficName
private

Definition at line 46 of file html.py.

html._bhadronLegend
private

Definition at line 215 of file html.py.

html._bhadronName
private

Definition at line 52 of file html.py.

html._btvLegend
private

Definition at line 207 of file html.py.

html._conversionName
private

Definition at line 50 of file html.py.

html._fromPVAllTP2Legend
private

Definition at line 213 of file html.py.

html._fromPVAllTPLegend
private

Definition at line 211 of file html.py.

html._fromPVAllTPName
private

Definition at line 48 of file html.py.

html._fromPVAllTPPt2Legend
private

Definition at line 214 of file html.py.

html._fromPVAllTPPtLegend
private

Definition at line 212 of file html.py.

html._fromPVLegend
private

Definition at line 209 of file html.py.

html._fromPVName
private

Definition at line 47 of file html.py.

html._fromPVPtLegend
private

Definition at line 210 of file html.py.

html._gsfName
private

Definition at line 51 of file html.py.

html._pageNameMap
private

Definition at line 162 of file html.py.

html._sampleFileName
private

Definition at line 26 of file html.py.

html._sampleName
private

Definition at line 7 of file html.py.

html._sectionNameMapOrder
private

Definition at line 171 of file html.py.

html._tpPtLess09Name
private

Definition at line 49 of file html.py.

html._trackAlgoName
private

Definition at line 114 of file html.py.

html._trackAlgoOrder
private

Definition at line 128 of file html.py.

html._trackQualityNameOrder
private

Definition at line 67 of file html.py.