CMS 3D CMS Logo

Functions | Variables
defaults_cfi Namespace Reference

Functions

def genjet_distribution_name (ietabin)
 
def offset_name (var, ivar, itype)
 
def response_distribution_name (iptbin, ietabin)
 

Variables

 candidateDict
 
 candidateType
 
 eBinsOffset
 
 eHighOffset
 
 eLowOffset
 
 etabins
 
 etaBinsOffset
 
 genjetDir
 
 jetResponseDir
 
 muHighOffset
 
 muLowOffset
 
 npvHighOffset
 
 npvLowOffset
 
 offsetDir
 
 offsetPlotBaseName
 
 offsetR
 
 offsetVariableType
 
 pdgIDDict
 
 ptbins
 

Function Documentation

◆ genjet_distribution_name()

def defaults_cfi.genjet_distribution_name (   ietabin)

Definition at line 14 of file defaults_cfi.py.

14 def genjet_distribution_name(ietabin):
15  eta_string = "{0:.1f}".format(etabins[ietabin+1]).replace(".", "")
16  return "genjet_pt_eta{0}".format(eta_string)
17 

References python.rootplot.root2matplotlib.replace().

Referenced by particleFlowDQM_cff.createGenJetPlots().

◆ offset_name()

def defaults_cfi.offset_name (   var,
  ivar,
  itype 
)

Definition at line 66 of file defaults_cfi.py.

66 def offset_name( var, ivar, itype ) :
67  return "{0}_{1}{2}_{3}".format( offsetPlotBaseName, var, ivar, itype )

◆ response_distribution_name()

def defaults_cfi.response_distribution_name (   iptbin,
  ietabin 
)

Definition at line 9 of file defaults_cfi.py.

9 def response_distribution_name(iptbin, ietabin):
10  #convert 0.5 -> "05"
11  eta_string = "{0:.1f}".format(etabins[ietabin+1]).replace(".", "")
12  return "reso_dist_{0:.0f}_{1:.0f}_eta{2}".format(ptbins[iptbin], ptbins[iptbin+1], eta_string)
13 

References python.rootplot.root2matplotlib.replace().

Referenced by particleFlowDQM_cff.createResponsePlots().

Variable Documentation

◆ candidateDict

defaults_cfi.candidateDict

Definition at line 53 of file defaults_cfi.py.

◆ candidateType

defaults_cfi.candidateType

Definition at line 55 of file defaults_cfi.py.

◆ eBinsOffset

defaults_cfi.eBinsOffset

Definition at line 36 of file defaults_cfi.py.

◆ eHighOffset

defaults_cfi.eHighOffset

Definition at line 38 of file defaults_cfi.py.

◆ eLowOffset

defaults_cfi.eLowOffset

Definition at line 37 of file defaults_cfi.py.

◆ etabins

defaults_cfi.etabins

◆ etaBinsOffset

defaults_cfi.etaBinsOffset

Definition at line 23 of file defaults_cfi.py.

Referenced by PFClusterValidation.bookHistograms().

◆ genjetDir

defaults_cfi.genjetDir

Definition at line 19 of file defaults_cfi.py.

◆ jetResponseDir

defaults_cfi.jetResponseDir

Definition at line 18 of file defaults_cfi.py.

◆ muHighOffset

defaults_cfi.muHighOffset

Definition at line 31 of file defaults_cfi.py.

◆ muLowOffset

defaults_cfi.muLowOffset

Definition at line 30 of file defaults_cfi.py.

◆ npvHighOffset

defaults_cfi.npvHighOffset

Definition at line 34 of file defaults_cfi.py.

◆ npvLowOffset

defaults_cfi.npvLowOffset

Definition at line 33 of file defaults_cfi.py.

◆ offsetDir

defaults_cfi.offsetDir

Definition at line 61 of file defaults_cfi.py.

◆ offsetPlotBaseName

defaults_cfi.offsetPlotBaseName

Definition at line 60 of file defaults_cfi.py.

◆ offsetR

defaults_cfi.offsetR

Definition at line 62 of file defaults_cfi.py.

◆ offsetVariableType

defaults_cfi.offsetVariableType

Definition at line 64 of file defaults_cfi.py.

◆ pdgIDDict

defaults_cfi.pdgIDDict

Definition at line 58 of file defaults_cfi.py.

◆ ptbins

defaults_cfi.ptbins

Definition at line 3 of file defaults_cfi.py.

defaults_cfi.offset_name
def offset_name(var, ivar, itype)
Definition: defaults_cfi.py:66
defaults_cfi.genjet_distribution_name
def genjet_distribution_name(ietabin)
Definition: defaults_cfi.py:14
defaults_cfi.response_distribution_name
def response_distribution_name(iptbin, ietabin)
Definition: defaults_cfi.py:9
format
python.rootplot.root2matplotlib.replace
def replace(string, replacements)
Definition: root2matplotlib.py:444