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 _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 62 of file html.py.

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

Definition at line 60 of file html.py.

Referenced by _sectionNameLegend().

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

Definition at line 5 of file html.py.

Referenced by _toHP().

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

Definition at line 64 of file html.py.

References python.rootplot.root2matplotlib.replace().

64 def _ptCut(s):
65  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:64
def html._sectionNameLegend ( )
private

Definition at line 221 of file html.py.

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

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

Definition at line 58 of file html.py.

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

Definition at line 54 of file html.py.

References _lowerFirst().

Referenced by _sectionNameLegend().

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

Definition at line 56 of file html.py.

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

Variable Documentation

html._allName
private

Definition at line 46 of file html.py.

html._allTPEfficLegend
private

Definition at line 212 of file html.py.

html._allTPEfficName
private

Definition at line 47 of file html.py.

html._bhadronLegend
private

Definition at line 219 of file html.py.

html._bhadronName
private

Definition at line 53 of file html.py.

html._btvLegend
private

Definition at line 211 of file html.py.

html._conversionName
private

Definition at line 51 of file html.py.

html._fromPVAllTP2Legend
private

Definition at line 217 of file html.py.

html._fromPVAllTPLegend
private

Definition at line 215 of file html.py.

html._fromPVAllTPName
private

Definition at line 49 of file html.py.

html._fromPVAllTPPt2Legend
private

Definition at line 218 of file html.py.

html._fromPVAllTPPtLegend
private

Definition at line 216 of file html.py.

html._fromPVLegend
private

Definition at line 213 of file html.py.

html._fromPVName
private

Definition at line 48 of file html.py.

html._fromPVPtLegend
private

Definition at line 214 of file html.py.

html._gsfName
private

Definition at line 52 of file html.py.

html._pageNameMap
private

Definition at line 163 of file html.py.

html._sampleFileName
private

Definition at line 27 of file html.py.

html._sampleName
private

Definition at line 8 of file html.py.

html._sectionNameMapOrder
private

Definition at line 173 of file html.py.

html._tpPtLess09Name
private

Definition at line 50 of file html.py.

html._trackAlgoName
private

Definition at line 115 of file html.py.

html._trackAlgoOrder
private

Definition at line 129 of file html.py.

html._trackQualityNameOrder
private

Definition at line 66 of file html.py.