CMS 3D CMS Logo

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