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 _allPtCut (s)
 
def _allToBTV (s)
 
def _allToHP (s)
 
def _allToPixel (s)
 
def _lowerFirst (s)
 
def _ptCut (s)
 
def _sectionNameLegend ()
 
def _toAlgoMask (s)
 
def _toHP (s)
 
def _toOriAlgo (s)
 
def _toPixel (s)
 

Variables

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

Function Documentation

◆ _allPtCut()

def html._allPtCut (   s)
private

Definition at line 65 of file html.py.

65 def _allPtCut(s):
66  return s.replace("All tracks", "Tracks pT > 0.9 GeV")
def _allPtCut(s)
Definition: html.py:65

◆ _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")
def _allToBTV(s)
Definition: html.py:63

◆ _allToHP()

def html._allToHP (   s)
private

Definition at line 61 of file html.py.

Referenced by _sectionNameLegend().

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

◆ _allToPixel()

def html._allToPixel (   s)
private

Definition at line 69 of file html.py.

69 def _allToPixel(s):
70  return s.replace("All", "Pixel")
def _allToPixel(s)
Definition: html.py:69

◆ _lowerFirst()

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

◆ _ptCut()

def html._ptCut (   s)
private

Definition at line 67 of file html.py.

References python.rootplot.root2matplotlib.replace().

67 def _ptCut(s):
68  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:67

◆ _sectionNameLegend()

def html._sectionNameLegend ( )
private

Definition at line 261 of file html.py.

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

261 def _sectionNameLegend():
262  return {
263  "btvLike": _btvLegend,
264  "ak4PFJets": "Tracks from AK4 PF jets (jet corrected pT > 10 GeV)",
265  "allTPEffic": _allTPEfficLegend,
266  "allTPEffic_": _allTPEfficLegend,
267  "allTPEffic_highPurity": _allToHP(_allTPEfficLegend),
268  "fromPV": _fromPVLegend,
269  "fromPV_": _fromPVLegend,
270  "fromPV_highPurity": _toHP(_fromPVLegend),
271  "fromPV_Pt09": _fromPVPtLegend,
272  "fromPV_highPurity_Pt09": _toHP(_fromPVPtLegend),
273  "fromPVAllTP": _fromPVAllTPLegend,
274  "fromPVAllTP_": _fromPVAllTPLegend,
275  "fromPVAllTP_highPurity": _toHP(_fromPVAllTPLegend),
276  "fromPVAllTP_Pt09": _fromPVAllTPPtLegend,
277  "fromPVAllTP_highPurityPt09": _toHP(_fromPVAllTPPtLegend),
278  "fromPVAllTP2_": _fromPVAllTP2Legend,
279  "fromPVAllTP2_highPurity": _toHP(_fromPVAllTP2Legend),
280  "fromPVAllTP2_Pt09": _fromPVAllTPPt2Legend,
281  "fromPVAllTP2_highPurityPt09": _toHP(_fromPVAllTPPt2Legend),
282  "bhadron_": _bhadronLegend,
283  "bhadron_highPurity": _allToHP(_bhadronLegend),
284  "bhadron_btvLike": _bhadronLegend.replace("All tracks", _btvLegend),
285  "pixelFromPV_": _fromPVLegend,
286  "pixelFromPV_Pt09": _fromPVPtLegend,
287  "pixelFromPVAllTP_": _fromPVAllTPLegend,
288  "pixelFromPVAllTP_Pt09": _fromPVAllTPPtLegend,
289  "pixelbhadron_": _bhadronLegend,
290  "pixelbhadron_Pt09": _bhadronPtLegend,
291  }
292 
def _allToHP(s)
Definition: html.py:61
def _sectionNameLegend()
Definition: html.py:261
def _toHP(s)
Definition: html.py:55

◆ _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")
def _toAlgoMask(s)
Definition: html.py:59

◆ _toHP()

def html._toHP (   s)
private

Definition at line 55 of file html.py.

References _lowerFirst().

Referenced by _sectionNameLegend().

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

◆ _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")
def _toOriAlgo(s)
Definition: html.py:57

◆ _toPixel()

def html._toPixel (   s)
private

Definition at line 71 of file html.py.

71 def _toPixel(s):
72  return s.replace("Tracks", "Pixel tracks")
def _toPixel(s)
Definition: html.py:71

Variable Documentation

◆ _allName

html._allName
private

Definition at line 45 of file html.py.

◆ _allTPEfficLegend

html._allTPEfficLegend
private

Definition at line 251 of file html.py.

◆ _allTPEfficName

html._allTPEfficName
private

Definition at line 46 of file html.py.

◆ _bhadronLegend

html._bhadronLegend
private

Definition at line 258 of file html.py.

◆ _bhadronName

html._bhadronName
private

Definition at line 53 of file html.py.

◆ _bhadronPtLegend

html._bhadronPtLegend
private

Definition at line 259 of file html.py.

◆ _btvLegend

html._btvLegend
private

Definition at line 250 of file html.py.

◆ _conversionName

html._conversionName
private

Definition at line 51 of file html.py.

◆ _displacedName

html._displacedName
private

Definition at line 54 of file html.py.

◆ _fromPVAllTP2Legend

html._fromPVAllTP2Legend
private

Definition at line 256 of file html.py.

◆ _fromPVAllTPLegend

html._fromPVAllTPLegend
private

Definition at line 254 of file html.py.

◆ _fromPVAllTPName

html._fromPVAllTPName
private

Definition at line 48 of file html.py.

◆ _fromPVAllTPPt2Legend

html._fromPVAllTPPt2Legend
private

Definition at line 257 of file html.py.

◆ _fromPVAllTPPtLegend

html._fromPVAllTPPtLegend
private

Definition at line 255 of file html.py.

◆ _fromPVLegend

html._fromPVLegend
private

Definition at line 252 of file html.py.

◆ _fromPVName

html._fromPVName
private

Definition at line 47 of file html.py.

◆ _fromPVPtLegend

html._fromPVPtLegend
private

Definition at line 253 of file html.py.

◆ _gsfName

html._gsfName
private

Definition at line 52 of file html.py.

◆ _pageNameMap

html._pageNameMap
private

Definition at line 190 of file html.py.

◆ _sampleFileName

html._sampleFileName
private

Definition at line 26 of file html.py.

◆ _sampleName

html._sampleName
private

Definition at line 7 of file html.py.

◆ _sectionNameMapOrder

html._sectionNameMapOrder
private

Definition at line 201 of file html.py.

◆ _tpEtaGreater2p7Name

html._tpEtaGreater2p7Name
private

Definition at line 50 of file html.py.

◆ _tpPtLess09Name

html._tpPtLess09Name
private

Definition at line 49 of file html.py.

◆ _trackAlgoName

html._trackAlgoName
private

Definition at line 139 of file html.py.

◆ _trackAlgoOrder

html._trackAlgoOrder
private

Definition at line 154 of file html.py.

◆ _trackQualityNameOrder

html._trackQualityNameOrder
private

Definition at line 73 of file html.py.