CMS 3D CMS Logo

fftjetpileupprocessor_pfstudy_cfi.py
Go to the documentation of this file.
1 # FFTJet pile-up processor module configuration for PFJets.
2 # This configuration file has a large number of Gausian filters configured.
3 
4 import math
5 import FWCore.ParameterSet.Config as cms
6 
8 import RecoJets.FFTJetProducers.pileup_shape_Summer11_PF_v1_cfi as pf_ps
9 
10 # A good ratio is about 1.1 for PFJets, could be larger for CaloJets
11 fftjet_pileup_phi_to_eta_ratio = 1.1
12 
13 # Note that for the grid below we do not really care that
14 # convolution results will wrap around in eta
15 fftjet_pileup_grid_pf = cms.PSet(
16  nEtaBins = cms.uint32(pf_ps.fftjet_pileup_eta_bins),
17  etaMin = cms.double(-pf_ps.fftjet_pileup_eta_max),
18  etaMax = cms.double(pf_ps.fftjet_pileup_eta_max),
19  nPhiBins = cms.uint32(pf_ps.fftjet_pileup_phi_bins),
20  phiBin0Edge = cms.double(0.0),
21  title = cms.untracked.string("FFTJet Pileup Grid")
22 )
23 
24 fftjetPileupProcessorPf = cms.EDProducer(
25  "FFTJetPileupProcessor",
26  #
27  # The main eta and phi scale factors for the filters
28  kernelEtaScale = cms.double(math.sqrt(1.0/fftjet_pileup_phi_to_eta_ratio)),
29  kernelPhiScale = cms.double(math.sqrt(fftjet_pileup_phi_to_eta_ratio)),
30  #
31  # Label for the produced objects
32  outputLabel = cms.string("FFTJetPileupPFStudy"),
33  #
34  # Label for the input collection of Candidate objects
35  src = cms.InputTag("particleFlow"),
36  #
37  # Label for the jets. Vertex correction may be done for "CaloJet" only.
38  jetType = cms.string("PFJet"),
39  #
40  # Perform vertex correction?
41  doPVCorrection = cms.bool(False),
42  #
43  # Label for the input collection of vertex objects. Meaningful
44  # only when "doPVCorrection" is True
45  srcPVs = cms.InputTag("offlinePrimaryVertices"),
46  #
47  # Eta-dependent magnitude factors for the data. These can be used
48  # to flatten the expected pileup shape.
49  etaDependentMagnutideFactors = cms.vdouble(pf_ps.fftjet_pileup_magnitude_factors),
50  #
51  # Configuration for the energy discretization grid
52  GridConfiguration = fftjet_pileup_grid_pf,
53  #
54  # Convolution range
55  convolverMinBin = cms.uint32(pf_ps.fftjet_pileup_min_eta_bin),
56  convolverMaxBin = cms.uint32(pf_ps.fftjet_pileup_max_eta_bin),
57  #
58  # The set of scales used by the filters. The scales will be generated
59  # uniformly in the log space. The settings below correspond to 5%
60  # bandwidth increase for each scale.
61  nScales = cms.uint32(50),
62  minScale = cms.double(0.05),
63  maxScale = cms.double(0.546066656464),
64  #
65  # The number of percentile points to use
66  nPercentiles = cms.uint32(50),
67  #
68  # Files for mixing in external grids
69  externalGridFiles = cms.vstring(),
70  #
71  # Energy cutoff for external grids (removes some crazy grids)
72  externalGridMaxEnergy = cms.double(20000.0),
73  #
74  # Anomalous calo tower definition (comes from JetProducers default)
75  anomalous = fftjet_anomalous_tower_default,
76  #
77  # Some parameters inherited from FFTJetInterface which no longer
78  # play any role
79  insertCompleteEvent = cms.bool(fftjet_insert_complete_event),
80  completeEventScale = cms.double(fftjet_complete_event_scale),
81  #
82  # Parameters related to accessing the table of flattening factors from DB
83  flatteningTableRecord = cms.string("flatteningTableRecord"),
84  flatteningTableName = cms.string("flatteningTableName"),
85  flatteningTableCategory = cms.string("flatteningTableCategory"),
86  loadFlatteningFactorsFromDB = cms.bool(False)
87 )