CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 _allToHP
 
def _lowerFirst
 
def _ptCut
 
def _sectionNameLegend
 
def _toHP
 

Variables

string _allTPEfficLegend = "All tracks, efficiency denominator contains all TrackingParticles"
 
string _allTPEfficName = "All tracks (all TPs)"
 
string _conversionName = "Tracks for conversions"
 
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
 
dictionary _trackAlgoName
 
list _trackAlgoOrder
 
tuple _trackQualityNameOrder
 

Function Documentation

def html._allToHP (   s)
private

Definition at line 50 of file html.py.

Referenced by _sectionNameLegend().

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

References python.rootplot.root2matplotlib.replace().

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

Definition at line 48 of file html.py.

References _lowerFirst().

Referenced by _sectionNameLegend().

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

Variable Documentation

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

Definition at line 175 of file html.py.

string html._allTPEfficName = "All tracks (all TPs)"

Definition at line 43 of file html.py.

string html._conversionName = "Tracks for conversions"

Definition at line 46 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 180 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 178 of file html.py.

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

Definition at line 45 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 181 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 179 of file html.py.

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

Definition at line 176 of file html.py.

string html._fromPVName = "Tracks from PV"

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

string html._gsfName = "Electron GSF tracks"

Definition at line 47 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 }

Definition at line 137 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  "RelValSingleMuPt10": "mu10",
14  "RelValSingleMuPt10Extended": "mu10ext",
15  "RelValSingleMuPt100": "mu100",
16  "RelValTenMuE_0_200": "tenmu200",
17 }

Definition at line 25 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  "RelValSingleMuPt10": "Single Muon Pt 10",
14  "RelValSingleMuPt10Extended": "Single Muon Pt 10 (extended eta)",
15  "RelValSingleMuPt100": "Single Muon Pt 100",
16  "RelValTenMuE_0_200": "Ten muon Pt 0-200",
17 }

Definition at line 7 of file html.py.

tuple html._sectionNameMapOrder
Initial value:
1 = collections.OrderedDict([
2  # These are for the summary page
3  ("seeding_seeds", "Seeds"),
4  ("building", "Built tracks"),
5  ("", "All tracks"),
6  ("highPurity", "High purity tracks"),
7  ("btvLike", "BTV-like"),
8  ("ak4PFJets", "AK4 PF jets"),
9  ("allTPEffic", _allTPEfficName),
10  ("allTPEffic_highPurity", _allTPEfficName.replace("All", "High purity")),
11  ("fromPV", _fromPVName),
12  ("fromPV_highPurity", "High purity "+_lowerFirst(_fromPVName)),
13  ("fromPVAllTP", _fromPVAllTPName),
14  ("fromPVAllTP_highPurity", "High purity "+_lowerFirst(_fromPVAllTPName)),
15  ("conversion", _conversionName),
16  ("gsf", _gsfName),
17  # These are for vertices
18  ("genvertex", "Gen vertices"),
19  ("pixelVertices", "Pixel vertices"),
20  ("selectedPixelVertices", "Selected pixel vertices"),
21  ("firstStepPrimaryVerticesPreSplitting", "firstStepPrimaryVerticesPreSplitting"),
22  ("firstStepPrimaryVertices", "firstStepPrimaryVertices"),
23  ("offlinePrimaryVertices", "All vertices (offlinePrimaryVertices)"),
24  ("selectedOfflinePrimaryVertices", "Selected vertices (selectedOfflinePrimaryVertices)"),
25  ("offlinePrimaryVerticesWithBS", "All vertices with BS constraint"),
26  ("selectedOfflinePrimaryVerticesWithBS", "Selected vertices with BS constraint"),
27  # These are for V0
28  ("k0", "K0"),
29  ("lambda", "Lambda"),
30 ])
def _lowerFirst
Definition: html.py:4

Definition at line 145 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 }

Definition at line 89 of file html.py.

list html._trackAlgoOrder

Definition at line 103 of file html.py.

tuple html._trackQualityNameOrder

Definition at line 54 of file html.py.