CMS 3D CMS Logo

Functions | Variables
particleFlowDQM_cff Namespace Reference

Functions

def createGenJetPlots (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
 
 pdgKeys
 
 pdgStrs
 
 PFCandAnalyzerDQM
 
 PFCandType
 
 pfJetAnalyzerDQM
 
 pfJetDQMPostProcessor
 
 pfPuppiJetAnalyzerDQM
 
 ptBins
 
 recoJetCollection
 
 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 FastTimerService_cff.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 
57 #----- ----- ----- ----- ----- ----- ----- -----
58 #
59 # Config for analyzer and postprocessor
60 #
61 
def createGenJetPlots(ptbins, etabins)
def genjet_distribution_name(ietabin)
Definition: defaults_cfi.py:14

◆ createResponsePlots()

def particleFlowDQM_cff.createResponsePlots (   ptbins,
  etabins 
)

Definition at line 29 of file particleFlowDQM_cff.py.

References make_response_plot_pset(), FastTimerService_cff.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 94 of file particleFlowDQM_cff.py.

◆ etabins

particleFlowDQM_cff.etabins

Definition at line 103 of file particleFlowDQM_cff.py.

◆ genJetCollection

particleFlowDQM_cff.genJetCollection

◆ genjetDir

particleFlowDQM_cff.genjetDir

Definition at line 92 of file particleFlowDQM_cff.py.

◆ genJetPlots

particleFlowDQM_cff.genJetPlots

Definition at line 75 of file particleFlowDQM_cff.py.

◆ genJetsOn

particleFlowDQM_cff.genJetsOn

Definition at line 72 of file particleFlowDQM_cff.py.

◆ jetDeltaR

particleFlowDQM_cff.jetDeltaR

Definition at line 69 of file particleFlowDQM_cff.py.

◆ jetResponseDir

particleFlowDQM_cff.jetResponseDir

Definition at line 91 of file particleFlowDQM_cff.py.

◆ name

particleFlowDQM_cff.name

Definition at line 62 of file particleFlowDQM_cff.py.

◆ pdgKeys

particleFlowDQM_cff.pdgKeys

Definition at line 104 of file particleFlowDQM_cff.py.

◆ pdgStrs

particleFlowDQM_cff.pdgStrs

Definition at line 105 of file particleFlowDQM_cff.py.

◆ PFCandAnalyzerDQM

particleFlowDQM_cff.PFCandAnalyzerDQM

Definition at line 101 of file particleFlowDQM_cff.py.

◆ PFCandType

particleFlowDQM_cff.PFCandType

Definition at line 102 of file particleFlowDQM_cff.py.

◆ pfJetAnalyzerDQM

particleFlowDQM_cff.pfJetAnalyzerDQM

Definition at line 64 of file particleFlowDQM_cff.py.

◆ pfJetDQMPostProcessor

particleFlowDQM_cff.pfJetDQMPostProcessor

Definition at line 89 of file particleFlowDQM_cff.py.

◆ pfPuppiJetAnalyzerDQM

particleFlowDQM_cff.pfPuppiJetAnalyzerDQM

Definition at line 79 of file particleFlowDQM_cff.py.

◆ ptBins

particleFlowDQM_cff.ptBins

Definition at line 93 of file particleFlowDQM_cff.py.

◆ recoJetCollection

particleFlowDQM_cff.recoJetCollection

◆ recoPtCut

particleFlowDQM_cff.recoPtCut

Definition at line 95 of file particleFlowDQM_cff.py.

◆ responsePlots

particleFlowDQM_cff.responsePlots

Definition at line 74 of file particleFlowDQM_cff.py.

◆ title

particleFlowDQM_cff.title

Definition at line 63 of file particleFlowDQM_cff.py.

◆ vjetResponseDir

particleFlowDQM_cff.vjetResponseDir

Definition at line 84 of file particleFlowDQM_cff.py.