Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:24

0001 # FFTJet pile-up processor module configuration for PFJets.
0002 # This configuration file has a large number of Gausian filters configured.
0003 
0004 import math
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 from RecoJets.FFTJetProducers.fftjetcommon_cfi import *
0008 import RecoJets.FFTJetProducers.pileup_shape_Summer11_PF_v1_cfi as pf_ps
0009 
0010 # A good ratio is about 1.1 for PFJets, could be larger for CaloJets
0011 fftjet_pileup_phi_to_eta_ratio = 1.1
0012 
0013 # Note that for the grid below we do not really care that
0014 # convolution results will wrap around in eta
0015 fftjet_pileup_grid_pf = cms.PSet(
0016     nEtaBins = cms.uint32(pf_ps.fftjet_pileup_eta_bins),
0017     etaMin = cms.double(-pf_ps.fftjet_pileup_eta_max),
0018     etaMax = cms.double(pf_ps.fftjet_pileup_eta_max),
0019     nPhiBins = cms.uint32(pf_ps.fftjet_pileup_phi_bins),
0020     phiBin0Edge = cms.double(0.0),
0021     title = cms.untracked.string("FFTJet Pileup Grid")
0022 )
0023 
0024 fftjetPileupProcessorPf = cms.EDProducer(
0025     "FFTJetPileupProcessor",
0026     #
0027     # The main eta and phi scale factors for the filters
0028     kernelEtaScale = cms.double(math.sqrt(1.0/fftjet_pileup_phi_to_eta_ratio)),
0029     kernelPhiScale = cms.double(math.sqrt(fftjet_pileup_phi_to_eta_ratio)),
0030     #
0031     # Label for the produced objects
0032     outputLabel = cms.string("FFTJetPileupPFStudy"),
0033     #
0034     # Label for the input collection of Candidate objects
0035     src = cms.InputTag("particleFlow"),
0036     #
0037     # Label for the jets. Vertex correction may be done for "CaloJet" only.
0038     jetType = cms.string("PFJet"),
0039     #
0040     # Perform vertex correction?
0041     doPVCorrection = cms.bool(False),
0042     #
0043     # Label for the input collection of vertex objects. Meaningful
0044     # only when "doPVCorrection" is True
0045     srcPVs = cms.InputTag("offlinePrimaryVertices"),
0046     #
0047     # Eta-dependent magnitude factors for the data. These can be used
0048     # to flatten the expected pileup shape.
0049     etaDependentMagnutideFactors = cms.vdouble(pf_ps.fftjet_pileup_magnitude_factors),
0050     #
0051     # Configuration for the energy discretization grid
0052     GridConfiguration = fftjet_pileup_grid_pf,
0053     #
0054     # Convolution range
0055     convolverMinBin = cms.uint32(pf_ps.fftjet_pileup_min_eta_bin),
0056     convolverMaxBin = cms.uint32(pf_ps.fftjet_pileup_max_eta_bin),
0057     #
0058     # The set of scales used by the filters. The scales will be generated
0059     # uniformly in the log space. The settings below correspond to 5% 
0060     # bandwidth increase for each scale.
0061     nScales = cms.uint32(50),
0062     minScale = cms.double(0.05),
0063     maxScale = cms.double(0.546066656464),
0064     #
0065     # The number of percentile points to use
0066     nPercentiles = cms.uint32(50),
0067     #
0068     # Files for mixing in external grids
0069     externalGridFiles = cms.vstring(),
0070     #
0071     # Energy cutoff for external grids (removes some crazy grids)
0072     externalGridMaxEnergy = cms.double(20000.0),
0073     #
0074     # Anomalous calo tower definition (comes from JetProducers default)
0075     anomalous = fftjet_anomalous_tower_default,
0076     #
0077     # Some parameters inherited from FFTJetInterface which no longer
0078     # play any role
0079     insertCompleteEvent = cms.bool(fftjet_insert_complete_event),
0080     completeEventScale = cms.double(fftjet_complete_event_scale),
0081     #
0082     # Parameters related to accessing the table of flattening factors from DB
0083     flatteningTableRecord = cms.string("flatteningTableRecord"),
0084     flatteningTableName = cms.string("flatteningTableName"),
0085     flatteningTableCategory = cms.string("flatteningTableCategory"),
0086     loadFlatteningFactorsFromDB = cms.bool(False)
0087 )