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
 
 _tpEtaGreater2p7Name
 
 _tpPtLess09Name
 
 _trackAlgoName
 
 _trackAlgoOrder
 
 _trackQualityNameOrder
 

Function Documentation

◆ _allToBTV()

def html._allToBTV (   s)
private

Definition at line 63 of file html.py.

63 def _allToBTV(s):
64  return s.replace("All", "BTV-like")

◆ _allToHP()

def html._allToHP (   s)
private

Definition at line 61 of file html.py.

61 def _allToHP(s):
62  return s.replace("All", "High purity")

Referenced by _sectionNameLegend().

◆ _lowerFirst()

def html._lowerFirst (   s)
private

Definition at line 5 of file html.py.

5 def _lowerFirst(s):
6  return s[0].lower()+s[1:]
7 

Referenced by _toHP().

◆ _ptCut()

def html._ptCut (   s)
private

Definition at line 65 of file html.py.

65 def _ptCut(s):
66  return s.replace("Tracks", "Tracks pT > 0.9 GeV").replace("tracks", "tracks pT > 0.9 GeV")

References python.rootplot.root2matplotlib.replace().

◆ _sectionNameLegend()

def html._sectionNameLegend ( )
private

Definition at line 227 of file html.py.

227 def _sectionNameLegend():
228  return {
229  "btvLike": _btvLegend,
230  "ak4PFJets": "Tracks from AK4 PF jets (jet corrected pT > 10 GeV)",
231  "allTPEffic": _allTPEfficLegend,
232  "allTPEffic_": _allTPEfficLegend,
233  "allTPEffic_highPurity": _allToHP(_allTPEfficLegend),
234  "fromPV": _fromPVLegend,
235  "fromPV_": _fromPVLegend,
236  "fromPV_highPurity": _toHP(_fromPVLegend),
237  "fromPV_Pt09": _fromPVPtLegend,
238  "fromPV_highPurity_Pt09": _toHP(_fromPVPtLegend),
239  "fromPVAllTP": _fromPVAllTPLegend,
240  "fromPVAllTP_": _fromPVAllTPLegend,
241  "fromPVAllTP_highPurity": _toHP(_fromPVAllTPLegend),
242  "fromPVAllTP_Pt09": _fromPVAllTPPtLegend,
243  "fromPVAllTP_highPurityPt09": _toHP(_fromPVAllTPPtLegend),
244  "fromPVAllTP2_": _fromPVAllTP2Legend,
245  "fromPVAllTP2_highPurity": _toHP(_fromPVAllTP2Legend),
246  "fromPVAllTP2_Pt09": _fromPVAllTPPt2Legend,
247  "fromPVAllTP2_highPurityPt09": _toHP(_fromPVAllTPPt2Legend),
248  "bhadron_": _bhadronLegend,
249  "bhadron_highPurity": _allToHP(_bhadronLegend),
250  "bhadron_btvLike": _bhadronLegend.replace("All tracks", _btvLegend),
251  }
252 

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

◆ _toAlgoMask()

def html._toAlgoMask (   s)
private

Definition at line 59 of file html.py.

59 def _toAlgoMask(s):
60  return s.replace("tracks", "tracks by algoMask")

◆ _toHP()

def html._toHP (   s)
private

Definition at line 55 of file html.py.

55 def _toHP(s):
56  return "High purity "+_lowerFirst(s)

References _lowerFirst().

Referenced by _sectionNameLegend().

◆ _toOriAlgo()

def html._toOriAlgo (   s)
private

Definition at line 57 of file html.py.

57 def _toOriAlgo(s):
58  return s.replace("tracks", "tracks by originalAlgo")

Variable Documentation

◆ _allName

html._allName
private

Definition at line 46 of file html.py.

◆ _allTPEfficLegend

html._allTPEfficLegend
private

Definition at line 218 of file html.py.

◆ _allTPEfficName

html._allTPEfficName
private

Definition at line 47 of file html.py.

◆ _bhadronLegend

html._bhadronLegend
private

Definition at line 225 of file html.py.

◆ _bhadronName

html._bhadronName
private

Definition at line 54 of file html.py.

◆ _btvLegend

html._btvLegend
private

Definition at line 217 of file html.py.

◆ _conversionName

html._conversionName
private

Definition at line 52 of file html.py.

◆ _fromPVAllTP2Legend

html._fromPVAllTP2Legend
private

Definition at line 223 of file html.py.

◆ _fromPVAllTPLegend

html._fromPVAllTPLegend
private

Definition at line 221 of file html.py.

◆ _fromPVAllTPName

html._fromPVAllTPName
private

Definition at line 49 of file html.py.

◆ _fromPVAllTPPt2Legend

html._fromPVAllTPPt2Legend
private

Definition at line 224 of file html.py.

◆ _fromPVAllTPPtLegend

html._fromPVAllTPPtLegend
private

Definition at line 222 of file html.py.

◆ _fromPVLegend

html._fromPVLegend
private

Definition at line 219 of file html.py.

◆ _fromPVName

html._fromPVName
private

Definition at line 48 of file html.py.

◆ _fromPVPtLegend

html._fromPVPtLegend
private

Definition at line 220 of file html.py.

◆ _gsfName

html._gsfName
private

Definition at line 53 of file html.py.

◆ _pageNameMap

html._pageNameMap
private

Definition at line 166 of file html.py.

◆ _sampleFileName

html._sampleFileName
private

Definition at line 27 of file html.py.

◆ _sampleName

html._sampleName
private

Definition at line 8 of file html.py.

◆ _sectionNameMapOrder

html._sectionNameMapOrder
private

Definition at line 177 of file html.py.

◆ _tpEtaGreater2p7Name

html._tpEtaGreater2p7Name
private

Definition at line 51 of file html.py.

◆ _tpPtLess09Name

html._tpPtLess09Name
private

Definition at line 50 of file html.py.

◆ _trackAlgoName

html._trackAlgoName
private

Definition at line 118 of file html.py.

◆ _trackAlgoOrder

html._trackAlgoOrder
private

Definition at line 132 of file html.py.

◆ _trackQualityNameOrder

html._trackQualityNameOrder
private

Definition at line 67 of file html.py.

html._toOriAlgo
def _toOriAlgo(s)
Definition: html.py:57
html._allToBTV
def _allToBTV(s)
Definition: html.py:63
html._lowerFirst
def _lowerFirst(s)
Definition: html.py:5
html._sectionNameLegend
def _sectionNameLegend()
Definition: html.py:227
html._toAlgoMask
def _toAlgoMask(s)
Definition: html.py:59
html._ptCut
def _ptCut(s)
Definition: html.py:65
html._toHP
def _toHP(s)
Definition: html.py:55
html._allToHP
def _allToHP(s)
Definition: html.py:61
python.rootplot.root2matplotlib.replace
def replace(string, replacements)
Definition: root2matplotlib.py:444