CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
def _allToBTV
 
def _allToHP
 
def _allToPixel
 
def _lowerFirst
 
def _ptCut
 
def _sectionNameLegend
 
def _toAlgoMask
 
def _toHP
 
def _toOriAlgo
 
def _toPixel
 

Variables

string _allName = "All tracks"
 
string _allTPEfficLegend = "All tracks, efficiency denominator contains all TrackingParticles"
 
string _allTPEfficName = _allName+" (all TPs)"
 
string _bhadronLegend = "All tracks, efficiency denominator contains only TrackingParticles from B-hadron decays"
 
string _bhadronName = "All tracks (B-hadron TPs)"
 
string _bhadronPtLegend = "Tracks (pT > 0.9 GeV), efficiency denominator contains only TrackingParticles from B-hadron decays"
 
string _btvLegend = "BTV-like selected tracks"
 
string _conversionName = "Tracks for conversions"
 
string _displacedName = "All tracks (TPs with no tip or lip cuts)"
 
string _fromPVAllTP2Legend = "Tracks from reco PV (another method), fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"
 
string _fromPVAllTPLegend = "Tracks from reco PV, fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"
 
string _fromPVAllTPName = "Tracks from PV (all TPs)"
 
string _fromPVAllTPPt2Legend = "Tracks (pT > 0.9 GeV) from reco PV (another method), fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"
 
string _fromPVAllTPPtLegend = "Tracks (pT > 0.9 GeV) from reco PV, fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"
 
string _fromPVLegend = "Tracks from reco PV vs. TrackingParticles from gen PV (fake rate includes pileup tracks)"
 
string _fromPVName = "Tracks from PV"
 
string _fromPVPtLegend = "Tracks (pT > 0.9 GeV) from reco PV vs. TrackingParticles from gen PV (fake rate includes pileup tracks)"
 
string _gsfName = "Electron GSF tracks"
 
dictionary _pageNameMap
 
dictionary _sampleFileName
 
dictionary _sampleName
 
tuple _sectionNameMapOrder
 
string _tpEtaGreater2p7Name = "All tracks (TP |eta| > 2.7)"
 
string _tpPtLess09Name = "All tracks (TP pT < 0.9 GeV)"
 
dictionary _trackAlgoName
 
list _trackAlgoOrder
 
tuple _trackQualityNameOrder
 

Function Documentation

def html._allPtCut (   s)
private

Definition at line 65 of file html.py.

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

Definition at line 63 of file html.py.

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

Definition at line 61 of file html.py.

Referenced by _sectionNameLegend().

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

Definition at line 69 of file html.py.

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

Definition at line 4 of file html.py.

Referenced by _toHP().

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

Definition at line 67 of file html.py.

References python.rootplot.root2matplotlib.replace().

67 
68 def _ptCut(s):
return s.replace("Tracks", "Tracks pT > 0.9 GeV").replace("tracks", "tracks pT > 0.9 GeV")
def _ptCut
Definition: html.py:67
def html._sectionNameLegend ( )
private

Definition at line 261 of file html.py.

References _allToHP(), and _toHP().

Referenced by html.Page._appendLegend().

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

Definition at line 59 of file html.py.

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

Definition at line 55 of file html.py.

References _lowerFirst().

Referenced by _sectionNameLegend().

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

Definition at line 57 of file html.py.

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

Definition at line 71 of file html.py.

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

Variable Documentation

string html._allName = "All tracks"

Definition at line 45 of file html.py.

string html._allTPEfficLegend = "All tracks, efficiency denominator contains all TrackingParticles"

Definition at line 251 of file html.py.

string html._allTPEfficName = _allName+" (all TPs)"

Definition at line 46 of file html.py.

string html._bhadronLegend = "All tracks, efficiency denominator contains only TrackingParticles from B-hadron decays"

Definition at line 258 of file html.py.

string html._bhadronName = "All tracks (B-hadron TPs)"

Definition at line 53 of file html.py.

string html._bhadronPtLegend = "Tracks (pT > 0.9 GeV), efficiency denominator contains only TrackingParticles from B-hadron decays"

Definition at line 259 of file html.py.

string html._btvLegend = "BTV-like selected tracks"

Definition at line 250 of file html.py.

string html._conversionName = "Tracks for conversions"

Definition at line 51 of file html.py.

string html._displacedName = "All tracks (TPs with no tip or lip cuts)"

Definition at line 54 of file html.py.

string html._fromPVAllTP2Legend = "Tracks from reco PV (another method), fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"

Definition at line 256 of file html.py.

string html._fromPVAllTPLegend = "Tracks from reco PV, fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"

Definition at line 254 of file html.py.

string html._fromPVAllTPName = "Tracks from PV (all TPs)"

Definition at line 48 of file html.py.

string html._fromPVAllTPPt2Legend = "Tracks (pT > 0.9 GeV) from reco PV (another method), fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"

Definition at line 257 of file html.py.

string html._fromPVAllTPPtLegend = "Tracks (pT > 0.9 GeV) from reco PV, fake rate numerator contains all TrackingParticles (separates fake tracks from pileup tracks)"

Definition at line 255 of file html.py.

string html._fromPVLegend = "Tracks from reco PV vs. TrackingParticles from gen PV (fake rate includes pileup tracks)"

Definition at line 252 of file html.py.

string html._fromPVName = "Tracks from PV"

Definition at line 47 of file html.py.

string html._fromPVPtLegend = "Tracks (pT > 0.9 GeV) from reco PV vs. TrackingParticles from gen PV (fake rate includes pileup tracks)"

Definition at line 253 of file html.py.

string html._gsfName = "Electron GSF tracks"

Definition at line 52 of file html.py.

dictionary html._pageNameMap
Initial value:
1 = {
2  "summary": "Summary",
3  "vertex": "Vertex",
4  "v0": "V0",
5  "miniaod": "MiniAOD",
6  "timing": "Timing",
7  "hlt": "HLT",
8  "pixel": "Pixel tracks",
9  "pf": "PF",
10 }

Definition at line 190 of file html.py.

dictionary html._sampleFileName
Initial value:
1 = {
2  "RelValMinBias": "minbias",
3  "RelValTTbar": "ttbar",
4  "RelValQCD_Pt_600_800": "qcd600",
5  "RelValQCD_Pt_3000_3500": "qcd3000",
6  "RelValQCD_FlatPt_15_3000": "qcdflat",
7  "RelValZMM": "zmm",
8  "RelValWjet_Pt_3000_3500": "wjet3000",
9  "RelValH125GGgluonfusion": "hgg",
10  "RelValSingleElectronPt35": "ele35",
11  "RelValSingleElectronPt35Extended": "ele35ext",
12  "RelValSingleElectronPt10": "ele10",
13  "RelValSingleMuPt1": "mu1",
14  "RelValSingleMuPt10": "mu10",
15  "RelValSingleMuPt10Extended": "mu10ext",
16  "RelValSingleMuPt100": "mu100",
17  "RelValTenMuE_0_200": "tenmu200",
18 }

Definition at line 26 of file html.py.

dictionary html._sampleName
Initial value:
1 = {
2  "RelValMinBias": "Min Bias",
3  "RelValTTbar": "TTbar",
4  "RelValQCD_Pt_600_800": "QCD Pt 600 to 800",
5  "RelValQCD_Pt_3000_3500": "QCD Pt 3000 to 3500",
6  "RelValQCD_FlatPt_15_3000": "QCD Flat Pt 15 to 3000",
7  "RelValZMM": "ZMuMu",
8  "RelValWjet_Pt_3000_3500": "Wjet Pt 3000 to 3500",
9  "RelValH125GGgluonfusion": "Higgs to gamma gamma",
10  "RelValSingleElectronPt35": "Single Electron Pt 35",
11  "RelValSingleElectronPt35Extended": "Single Electron Pt 35 (extended eta)",
12  "RelValSingleElectronPt10": "Single Electron Pt 10",
13  "RelValSingleMuPt1": "Single Muon Pt 1",
14  "RelValSingleMuPt10": "Single Muon Pt 10",
15  "RelValSingleMuPt10Extended": "Single Muon Pt 10 (extended eta)",
16  "RelValSingleMuPt100": "Single Muon Pt 100",
17  "RelValTenMuE_0_200": "Ten muon Pt 0-200",
18 }

Definition at line 7 of file html.py.

tuple html._sectionNameMapOrder

Definition at line 201 of file html.py.

string html._tpEtaGreater2p7Name = "All tracks (TP |eta| > 2.7)"

Definition at line 50 of file html.py.

string html._tpPtLess09Name = "All tracks (TP pT < 0.9 GeV)"

Definition at line 49 of file html.py.

dictionary html._trackAlgoName
Initial value:
1 = {
2  "ootb": "Out of the box",
3  "iter0" : "Iterative Step 0",
4  "iter1" : "Iterative Step 1",
5  "iter2" : "Iterative Step 2",
6  "iter3" : "Iterative Step 3",
7  "iter4" : "Iterative Step 4",
8  "iter5" : "Iterative Step 5",
9  "iter6" : "Iterative Step 6",
10  "iter7" : "Iterative Step 7",
11  "iter9" : "Iterative Step 9",
12  "iter10": "Iterative Step 10",
13  "pixel": "Pixel tracks",
14 }

Definition at line 139 of file html.py.

list html._trackAlgoOrder

Definition at line 154 of file html.py.

tuple html._trackQualityNameOrder

Definition at line 73 of file html.py.