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

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

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

html._fromPVAllTPLegend
private

Definition at line 180 of file html.py.

html._fromPVAllTPName
private

Definition at line 45 of file html.py.

html._fromPVAllTPPt2Legend
private

Definition at line 183 of file html.py.

html._fromPVAllTPPtLegend
private

Definition at line 181 of file html.py.

html._fromPVLegend
private

Definition at line 178 of file html.py.

html._fromPVName
private

Definition at line 44 of file html.py.

html._fromPVPtLegend
private

Definition at line 179 of file html.py.

html._gsfName
private

Definition at line 47 of file html.py.

html._pageNameMap
private

Definition at line 138 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 147 of file html.py.

html._trackAlgoName
private

Definition at line 90 of file html.py.

html._trackAlgoOrder
private

Definition at line 104 of file html.py.

html._trackQualityNameOrder
private

Definition at line 54 of file html.py.