CMS 3D CMS Logo

Functions | Variables
particleFlowDQM_cff Namespace Reference

Functions

def createGenJetPlots (ptbins, etabins)
 
def createRecoJetPlots (ptbins, etabins)
 
def createResponsePlots (ptbins, etabins)
 
def make_response_plot_pset (name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh)
 

Variables

 etaBins
 
 etabins
 
 genJetCollection
 
 genjetDir
 
 genJetPlots
 
 genJetsOn
 
 jetDeltaR
 
 jetResponseDir
 
 name
 
 offsetDir
 
 pdgKeys
 
 pdgStrs
 
 PFCandAnalyzerDQM
 
 PFCandType
 
 pfJetAnalyzerDQM
 
 pfJetDQMPostProcessor
 
 pfPuppiJetAnalyzerDQM
 
 ptBins
 
 recoJetCollection
 
 recoJetPlots
 
 recoJetsOn
 
 recoPtCut
 
 responsePlots
 
 title
 
 vjetResponseDir
 

Function Documentation

◆ createGenJetPlots()

def particleFlowDQM_cff.createGenJetPlots (   ptbins,
  etabins 
)

Definition at line 42 of file particleFlowDQM_cff.py.

References defaults_cfi.genjet_distribution_name(), and isotrackApplyRegressor.range.

42 def createGenJetPlots(ptbins, etabins):
43  plots = []
44  for ietabin in range(len(etabins)-1):
45  eta_low = etabins[ietabin]
46  eta_high = etabins[ietabin + 1]
47  plots += [
48  cms.PSet(
49  name = cms.string(genjet_distribution_name(ietabin)),
50  title = cms.string("GenJet pT ({0} <= |eta| <= {1})".format(eta_low, eta_high)),
51  ptBins = cms.vdouble(ptbins),
52  etaBinLow = cms.double(eta_low),
53  etaBinHigh = cms.double(eta_high),
54  )]
55  return plots
56 
def createGenJetPlots(ptbins, etabins)
def genjet_distribution_name(ietabin)
Definition: defaults_cfi.py:14

◆ createRecoJetPlots()

def particleFlowDQM_cff.createRecoJetPlots (   ptbins,
  etabins 
)

Definition at line 57 of file particleFlowDQM_cff.py.

References isotrackApplyRegressor.range, and defaults_cfi.recojet_distribution_name().

57 def createRecoJetPlots(ptbins, etabins):
58  plots = []
59  for ietabin in range(len(etabins)-1):
60  eta_low = etabins[ietabin]
61  eta_high = etabins[ietabin + 1]
62  plots += [
63  cms.PSet(
64  name = cms.string(recojet_distribution_name(ietabin)),
65  title = cms.string("RecoJet ({0} <= |eta| <= {1})".format(eta_low, eta_high)),
66  ptBins = cms.vdouble(ptbins),
67  etaBinLow = cms.double(eta_low),
68  etaBinHigh = cms.double(eta_high),
69  )]
70  return plots
71 
72 #----- ----- ----- ----- ----- ----- ----- -----
73 #
74 # Config for analyzer and postprocessor
75 #
76 
def createRecoJetPlots(ptbins, etabins)
def recojet_distribution_name(ietabin)
Definition: defaults_cfi.py:18

◆ createResponsePlots()

def particleFlowDQM_cff.createResponsePlots (   ptbins,
  etabins 
)

Definition at line 29 of file particleFlowDQM_cff.py.

References make_response_plot_pset(), isotrackApplyRegressor.range, and defaults_cfi.response_distribution_name().

29 def createResponsePlots(ptbins, etabins):
30  response_plots = []
31  #we always use a range [ibin, ibin+1)
32  for ietabin in range(len(etabins)-1):
33  for iptbin in range(len(ptbins)-1):
34 
35  response_plots += [make_response_plot_pset(
36  response_distribution_name(iptbin, ietabin),
37  "Jet response (pT/pTgen) in {0} <= pt < {1}, {2} <= |eta| < {3})".format(ptbins[iptbin], ptbins[iptbin+1], etabins[ietabin], etabins[ietabin+1]),
38  100, 0.0, 3.0, ptbins[iptbin], ptbins[iptbin+1], etabins[ietabin], etabins[ietabin+1]
39  )]
40  return response_plots
41 
def response_distribution_name(iptbin, ietabin)
Definition: defaults_cfi.py:9
def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh)
def createResponsePlots(ptbins, etabins)

◆ make_response_plot_pset()

def particleFlowDQM_cff.make_response_plot_pset (   name,
  title,
  responseNbins,
  responseLow,
  responseHigh,
  ptBinLow,
  ptBinHigh,
  etaBinLow,
  etaBinHigh 
)

Definition at line 10 of file particleFlowDQM_cff.py.

Referenced by createResponsePlots().

10 def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh):
11  return cms.PSet(
12  name = cms.string(name),
13  title = cms.string(title),
14  responseNbins = cms.uint32(responseNbins),
15  responseLow = cms.double(responseLow),
16  responseHigh = cms.double(responseHigh),
17  ptBinLow = cms.double(ptBinLow),
18  ptBinHigh = cms.double(ptBinHigh),
19  etaBinLow = cms.double(etaBinLow),
20  etaBinHigh = cms.double(etaBinHigh),
21  )
22 
23 #Jet response is plotted in histograms which can be subdivided by pt and |eta| of the genjet.
24 #To minimize the amount of logic on the C++ side, we define all response plots here.
25 #Each plot has low and high pt and |eta| edges, the plot is filled only if the genjet
26 #is in the bin defined by the edges.
27 #It is your job here to make sure you define the bins in a non-overlapping way if
28 #you want to emulate a 2D map over (pT, |eta|) of 1D histograms.
def make_response_plot_pset(name, title, responseNbins, responseLow, responseHigh, ptBinLow, ptBinHigh, etaBinLow, etaBinHigh)

Variable Documentation

◆ etaBins

particleFlowDQM_cff.etaBins

Definition at line 110 of file particleFlowDQM_cff.py.

◆ etabins

particleFlowDQM_cff.etabins

Definition at line 118 of file particleFlowDQM_cff.py.

◆ genJetCollection

particleFlowDQM_cff.genJetCollection

◆ genjetDir

particleFlowDQM_cff.genjetDir

Definition at line 107 of file particleFlowDQM_cff.py.

◆ genJetPlots

particleFlowDQM_cff.genJetPlots

Definition at line 90 of file particleFlowDQM_cff.py.

◆ genJetsOn

particleFlowDQM_cff.genJetsOn

Definition at line 87 of file particleFlowDQM_cff.py.

◆ jetDeltaR

particleFlowDQM_cff.jetDeltaR

Definition at line 84 of file particleFlowDQM_cff.py.

◆ jetResponseDir

particleFlowDQM_cff.jetResponseDir

Definition at line 106 of file particleFlowDQM_cff.py.

◆ name

particleFlowDQM_cff.name

Definition at line 77 of file particleFlowDQM_cff.py.

◆ offsetDir

particleFlowDQM_cff.offsetDir

Definition at line 108 of file particleFlowDQM_cff.py.

◆ pdgKeys

particleFlowDQM_cff.pdgKeys

Definition at line 119 of file particleFlowDQM_cff.py.

◆ pdgStrs

particleFlowDQM_cff.pdgStrs

Definition at line 120 of file particleFlowDQM_cff.py.

◆ PFCandAnalyzerDQM

particleFlowDQM_cff.PFCandAnalyzerDQM

Definition at line 116 of file particleFlowDQM_cff.py.

◆ PFCandType

particleFlowDQM_cff.PFCandType

Definition at line 117 of file particleFlowDQM_cff.py.

◆ pfJetAnalyzerDQM

particleFlowDQM_cff.pfJetAnalyzerDQM

Definition at line 79 of file particleFlowDQM_cff.py.

◆ pfJetDQMPostProcessor

particleFlowDQM_cff.pfJetDQMPostProcessor

Definition at line 104 of file particleFlowDQM_cff.py.

◆ pfPuppiJetAnalyzerDQM

particleFlowDQM_cff.pfPuppiJetAnalyzerDQM

Definition at line 94 of file particleFlowDQM_cff.py.

◆ ptBins

particleFlowDQM_cff.ptBins

Definition at line 109 of file particleFlowDQM_cff.py.

◆ recoJetCollection

particleFlowDQM_cff.recoJetCollection

◆ recoJetPlots

particleFlowDQM_cff.recoJetPlots

Definition at line 91 of file particleFlowDQM_cff.py.

◆ recoJetsOn

particleFlowDQM_cff.recoJetsOn

Definition at line 88 of file particleFlowDQM_cff.py.

◆ recoPtCut

particleFlowDQM_cff.recoPtCut

Definition at line 111 of file particleFlowDQM_cff.py.

◆ responsePlots

particleFlowDQM_cff.responsePlots

Definition at line 89 of file particleFlowDQM_cff.py.

◆ title

particleFlowDQM_cff.title

Definition at line 78 of file particleFlowDQM_cff.py.

◆ vjetResponseDir

particleFlowDQM_cff.vjetResponseDir

Definition at line 99 of file particleFlowDQM_cff.py.