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 _allToHP (s)
 
def _lowerFirst (s)
 
def _ptCut (s)
 
def _sectionNameLegend ()
 
def _toHP (s)
 

Variables

 _allTPEfficLegend
 
 _allTPEfficName
 
 _conversionName
 
 _fromPVAllTP2Legend
 
 _fromPVAllTPLegend
 
 _fromPVAllTPName
 
 _fromPVAllTPPt2Legend
 
 _fromPVAllTPPtLegend
 
 _fromPVLegend
 
 _fromPVName
 
 _fromPVPtLegend
 
 _gsfName
 
 _pageNameMap
 
 _sampleFileName
 
 _sampleName
 
 _sectionNameMapOrder
 
 _trackAlgoName
 
 _trackAlgoOrder
 
 _trackQualityNameOrder
 

Function Documentation

def html._allToHP (   s)
private

Definition at line 50 of file html.py.

Referenced by _sectionNameLegend().

50 def _allToHP(s):
51  return s.replace("All", "High purity")
def _allToHP(s)
Definition: html.py:50
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 52 of file html.py.

References python.rootplot.root2matplotlib.replace().

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

Definition at line 183 of file html.py.

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

184  return {
185  "btvLike": "BTV-like selected tracks",
186  "ak4PFJets": "Tracks from AK4 PF jets (jet corrected pT > 10 GeV)",
187  "allTPEffic": _allTPEfficLegend,
188  "allTPEffic_": _allTPEfficLegend,
189  "allTPEffic_highPurity": _allToHP(_allTPEfficLegend),
190  "fromPV": _fromPVLegend,
191  "fromPV_": _fromPVLegend,
192  "fromPV_highPurity": _toHP(_fromPVLegend),
193  "fromPV_Pt09": _fromPVPtLegend,
194  "fromPV_highPurity_Pt09": _toHP(_fromPVPtLegend),
195  "fromPVAllTP": _fromPVAllTPLegend,
196  "fromPVAllTP_": _fromPVAllTPLegend,
197  "fromPVAllTP_highPurity": _toHP(_fromPVAllTPLegend),
198  "fromPVAllTP_Pt09": _fromPVAllTPPtLegend,
199  "fromPVAllTP_highPurityPt09": _toHP(_fromPVAllTPPtLegend),
200  "fromPVAllTP2_": _fromPVAllTP2Legend,
201  "fromPVAllTP2_highPurity": _toHP(_fromPVAllTP2Legend),
202  "fromPVAllTP2_Pt09": _fromPVAllTPPt2Legend,
203  "fromPVAllTP2_highPurityPt09": _toHP(_fromPVAllTPPt2Legend),
204  }
205 
def _allToHP(s)
Definition: html.py:50
def _sectionNameLegend()
Definition: html.py:183
def _toHP(s)
Definition: html.py:48
def html._toHP (   s)
private

Definition at line 48 of file html.py.

References _lowerFirst().

Referenced by _sectionNameLegend().

48 def _toHP(s):
49  return "High purity "+_lowerFirst(s)
def _lowerFirst(s)
Definition: html.py:4
def _toHP(s)
Definition: html.py:48

Variable Documentation

html._allTPEfficLegend
private

Definition at line 175 of file html.py.

html._allTPEfficName
private

Definition at line 43 of file html.py.

html._conversionName
private

Definition at line 46 of file html.py.

html._fromPVAllTP2Legend
private

Definition at line 180 of file html.py.

html._fromPVAllTPLegend
private

Definition at line 178 of file html.py.

html._fromPVAllTPName
private

Definition at line 45 of file html.py.

html._fromPVAllTPPt2Legend
private

Definition at line 181 of file html.py.

html._fromPVAllTPPtLegend
private

Definition at line 179 of file html.py.

html._fromPVLegend
private

Definition at line 176 of file html.py.

html._fromPVName
private

Definition at line 44 of file html.py.

html._fromPVPtLegend
private

Definition at line 177 of file html.py.

html._gsfName
private

Definition at line 47 of file html.py.

html._pageNameMap
private

Definition at line 137 of file html.py.

html._sampleFileName
private

Definition at line 25 of file html.py.

html._sampleName
private

Definition at line 7 of file html.py.

html._sectionNameMapOrder
private

Definition at line 145 of file html.py.

html._trackAlgoName
private

Definition at line 89 of file html.py.

html._trackAlgoOrder
private

Definition at line 103 of file html.py.

html._trackQualityNameOrder
private

Definition at line 54 of file html.py.