CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
fftjetproducer_cfi.py
Go to the documentation of this file.
1 import math
2 import FWCore.ParameterSet.Config as cms
3 
5 
6 fftjet_default_recombination_scale = 0.5
7 
8 # FFTJet jet producer configuration
9 fftjetJetMaker = cms.EDProducer(
10  "FFTJetProducer",
11  #
12  # Label for the input clustering tree (must be sparse)
13  treeLabel = cms.InputTag("fftjetpatreco", "FFTJetPatternRecognition"),
14  #
15  # Do we have the complete event at the lowest clustering tree scale?
16  # Note that sparse clustering tree removes it by default, even if
17  # it is inserted by the pattern recognition module.
18  insertCompleteEvent = cms.bool(fftjet_insert_complete_event),
19  completeEventScale = cms.double(fftjet_complete_event_scale),
20  #
21  # The initial set of scales used by the pattern recognition stage.
22  # This is also the final set unless clustering tree construction
23  # is adaptive. Needed here for reading back non-adaptive trees.
24  InitialScales = fftjet_patreco_scales_50,
25  #
26  # Label for the produced objects
27  outputLabel = cms.string("MadeByFFTJet"),
28  #
29  # Label for the input collection of Candidate objects
30  src = cms.InputTag("towerMaker"),
31  #
32  # Type of the jets which will be produced (should be consistent with
33  # the input collection). Valid types are "BasicJet", "GenJet", "CaloJet",
34  # "PFJet", and "TrackJet". The algorithm might do different things
35  # depending on the type. In particular, vertex correction may be done
36  # for "CaloJet".
37  jetType = cms.string("CaloJet"),
38  #
39  # Perform vertex correction?
40  doPVCorrection = cms.bool(False),
41  #
42  # Label for the input collection of vertex objects. Meaningful
43  # only when "doPVCorrection" is True
44  srcPVs = cms.InputTag("offlinePrimaryVertices"),
45  #
46  # Anomalous calo tower definition (comes from RecoJets default)
47  anomalous = fftjet_anomalous_tower_default,
48  #
49  # Magnitude correction factors (used only with gridded algorithms)
50  etaDependentMagnutideFactors = cms.vdouble(),
51  #
52  # If a gridded algorithm is used, do we want to pick up the discretized
53  # energy flow grid from the event record?
54  reuseExistingGrid = cms.bool(False),
55  #
56  # If we do not reuse an existing grid, we need to provide
57  # the grid configuration
58  GridConfiguration = fftjet_grid_256_128,
59  #
60  # Maximum number of iterations allowed for the iterative jet
61  # fitting. One-shot method is used if this number is 0 or 1.
62  maxIterations = cms.uint32(1),
63  #
64  # Number of leading jets for which the iterative jet fitting must
65  # converge before iterations are declared successful. This parameter
66  # is not terribly meaningfule unless you know how many jets you expect
67  # to get.
68  nJetsRequiredToConverge = cms.uint32(10),
69  #
70  # The distance cutoff for the convergence. The distance between
71  # the jets on two subsequent iterations must be less than this
72  # cutoff in order to declare that the jet reconstruction has
73  # converged. The distance function is defined by the "jetDistanceCalc"
74  # parameter. Used only if "maxIterations" is larger than 1.
75  convergenceDistance = cms.double(1.0e-6),
76  #
77  # Are we going to produce the set of constituents for each jet?
78  # If we are not doing this, the code will run faster.
79  assignConstituents = cms.bool(True),
80  #
81  # Are we going to resum constituents to calculate jet 4-vectors?
82  # This only makes sense when a gridded algorithm is used in the
83  # crisp 4-vector recombination mode to determine jet areas (note
84  # that "recombinationDataCutoff" parameter should be negative),
85  # and resumming is used to emulate vector algorithm recombination.
86  resumConstituents = cms.bool(False),
87  #
88  # Noise sigma parameter for the background functor (the interface
89  # to noise modeling is likely to be changed in the future)
90  noiseLevel = cms.double(0.15),
91  #
92  # Number of clusters requested. Works with both "locallyAdaptive"
93  # and "globallyAdaptive" resolution schemes.
94  nClustersRequested = cms.uint32(4),
95  #
96  # Maximum eta for gridded recombination algorithms. Grid cells
97  # with eta values ou t
98  gridScanMaxEta = cms.double(fftjet_standard_eta_range),
99  #
100  # Are we going to use gridded or vector algorithm? Vector algoritms
101  # are slightly more precise (no binning uncertainty introduced). However,
102  # jet-by-jet jet areas can be calculated only by gridded algorithms.
103  useGriddedAlgorithm = cms.bool(False),
104  #
105  # The recombination algorithm used. For vector algorithms, possible
106  # specifications are:
107  # "Kernel" -- use 4-vector recombination scheme
108  # "EtCentroid" -- use Et centroid (or "original Snowmass") scheme
109  # "EtSum" -- set the jet direction to the precluster direction
110  # For gridded algorithms additional specifications are available:
111  # "FasterKernel", "FasterEtCentroid", and "FasterEtSum". See the
112  # comments in the "FasterKernelRecombinationAlg.hh" header of the
113  # FFTJet package for limitations of those faster algorithms.
114  recombinationAlgorithm = cms.string("Kernel"),
115  #
116  # Are we going to utilize crisp or fuzzy clustering?
117  isCrisp = cms.bool(True),
118  #
119  # A parameter which defines when we will attempt to split the energy
120  # of a calorimeter cell if it is unlikely to belong to any jet and
121  # to the noise. Works with Et-dependent membership functions only.
122  # The default value of 0 means don't split, just assign this energy
123  # deposition to the unclustered energy.
124  unlikelyBgWeight = cms.double(0.0),
125  #
126  # The data cutoff for the gridded algorithms. Set this cutoff
127  # to some negative number if you want to calculate jet areas
128  # (this can also be done by turning on pile-up calculation
129  # as a separate step.) Set it to 0 or some positive number
130  # if you want to improve the code speed.
131  recombinationDataCutoff = cms.double(0.0),
132  #
133  # The built-in precluster selection for subsequent jet reconstruction
134  # can be performed according to the following schemes which, basically,
135  # describe how the resolution of the Gaussian filter is chosen:
136  # "fixed" -- use the same user-selected resolution across
137  # the whole eta-phi space
138  # "maximallyStable" -- pick up a single resolution according to
139  # a jet configuration stability criterion
140  # "globallyAdaptive" -- pick up a single resolution which gives
141  # a desired number of jets
142  # "locallyAdaptive" -- use different resolutions in different parts
143  # of the eta-phi space in order to maximize
144  # a certain optimization criterion
145  resolution = cms.string("fixed"),
146  #
147  # Scale parameter for the "fixed" and "locallyAdaptive" resolution schemes
148  fixedScale = cms.double(0.15),
149  #
150  # Minimum and maximum stable scales for the "maximallyStable"
151  # resolution scheme. Value of 0 means there is no limit, and
152  # all scales in the clustering tree are considered.
153  minStableScale = cms.double(0.0),
154  maxStableScale = cms.double(0.0),
155  #
156  # Stability exponent for the "maximallyStable" resolution scheme
157  stabilityAlpha = cms.double(0.5),
158  #
159  # The precluster discriminator which works together with the
160  # resolution selection scheme
161  PeakSelectorConfiguration = cms.PSet(
162  Class = cms.string("SimplePeakSelector"),
163  magCut = cms.double(0.1),
164  driftSpeedCut = cms.double(1.0e100),
165  magSpeedCut = cms.double(-1.0e100),
166  lifeTimeCut = cms.double(-1.0e100),
167  NNDCut = cms.double(-1.0e100),
168  etaCut = cms.double(1.0e100)
169  ),
170  #
171  # The jet membership function
172  jetMembershipFunction = fftjet_jet_membership_cone,
173  #
174  # The noise membership function
175  bgMembershipFunction = fftjet_noise_membership_smallconst,
176  #
177  # The recombination scale function
178  recoScaleCalcPeak = cms.PSet(
179  Class = cms.string("ConstDouble"),
180  value = cms.double(fftjet_default_recombination_scale)
181  ),
182  #
183  # The function which calculates eta-to-phi bandwidth ratio
184  # for the jet membership function. If the ratio is set to 0,
185  # the "setScaleRatio" membership function method will never
186  # be called, and the default ratio built into the membership
187  # functionwill be used instead.
188  recoScaleRatioCalcPeak = fftjet_peakfunctor_const_zero,
189  #
190  # The function which calculates the factor to be multiplied by
191  # the membership function
192  memberFactorCalcPeak = fftjet_peakfunctor_const_one,
193  #
194  # The following parameters must be specified if "maxIterations" value
195  # is larger than 1. They are used in the iterative mode only.
196  # recoScaleCalcJet = ,
197  # recoScaleRatioCalcJet = ,
198  # memberFactorCalcJet = ,
199  # jetDistanceCalc = ,
200  #
201  recoScaleCalcJet = cms.PSet(
202  Class = cms.string("ConstDouble"),
203  value = cms.double(fftjet_default_recombination_scale)
204  ),
205  recoScaleRatioCalcJet = fftjet_peakfunctor_const_one,
206  memberFactorCalcJet = fftjet_peakfunctor_const_one,
207  jetDistanceCalc = fftjet_convergence_jet_distance,
208  #
209  # Are we going to estimate the pile-up using actual jet shapes?
210  # Note that the following _must_ be defined if we want to do this:
211  # recoScaleCalcJet, recoScaleRatioCalcJet, memberFactorCalcJet,
212  # PileupGridConfiguration, and pileupDensityCalc
213  calculatePileup = cms.bool(False),
214  #
215  # If the pile-up is estimated, do we want to subtract it?
216  subtractPileup = cms.bool(False),
217  #
218  # If the pile-up is both estimated and subtracted, do we want to use
219  # the 4-vector pile-up subtraction scheme? (The alternative is based
220  # on scaling the jet Pt).
221  subtractPileupAs4Vec = cms.bool(False),
222  #
223  # Source of the pile-up energy flow data
224  pileupLabel = cms.InputTag("pileupestimator", "FFTJetPileupEstimatePF"),
225  #
226  # Label for GenJet collection in the "fromGenJets" resolution mode
227  genJetsLabel = cms.InputTag("fftgenjetproducer", "MadeByFFTJet"),
228  #
229  # Max number of preclusters. Does not take into account the possibility
230  # of further precluster removal by setting its membership factor to 0.
231  maxInitialPreclusters = cms.uint32(2147483647),
232  #
233  # Parameters related to pileup shape fetching from DB
234  pileupTableRecord = cms.string("pileupTableRecord"),
235  pileupTableName = cms.string("pileupTableName"),
236  pileupTableCategory = cms.string("pileupTableCategory"),
237  loadPileupFromDB = cms.bool(False)
238 )