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
 
 genJetCollection
 
 genjetDir
 
 genJetPlots
 
 jetDeltaR
 
 jetResponseDir
 
 name
 
 pfDQM
 
 pfJetAnalyzerDQM
 
 pfJetDQMPostProcessor
 
 ptBins
 
 recoJetCollection
 
 recoPtCut
 
 responsePlots
 
 title
 

Function Documentation

def particleFlowDQM_cff.createGenJetPlots (   ptbins,
  etabins 
)

Definition at line 41 of file particleFlowDQM_cff.py.

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

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

Definition at line 28 of file particleFlowDQM_cff.py.

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

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

Definition at line 9 of file particleFlowDQM_cff.py.

Referenced by createResponsePlots().

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

particleFlowDQM_cff.etaBins

Definition at line 80 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.genJetCollection

Definition at line 67 of file particleFlowDQM_cff.py.

Referenced by PFJetAnalyzerDQM.analyze(), and PhotonValidator.analyze().

particleFlowDQM_cff.genjetDir

Definition at line 78 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.genJetPlots

Definition at line 71 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.jetDeltaR

Definition at line 68 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.jetResponseDir

Definition at line 77 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.name

Definition at line 61 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.pfDQM

Definition at line 90 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.pfJetAnalyzerDQM

Definition at line 63 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.pfJetDQMPostProcessor

Definition at line 75 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.ptBins
particleFlowDQM_cff.recoJetCollection

Definition at line 66 of file particleFlowDQM_cff.py.

Referenced by PFJetAnalyzerDQM.analyze().

particleFlowDQM_cff.recoPtCut

Definition at line 81 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.responsePlots

Definition at line 70 of file particleFlowDQM_cff.py.

particleFlowDQM_cff.title

Definition at line 62 of file particleFlowDQM_cff.py.