Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-02-20 03:45:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def LegacyPFClusterProducer(*args, **kwargs):
0004   mod = cms.EDProducer('LegacyPFClusterProducer',
0005     src = cms.InputTag('pfClusterSoAProducer'),
0006     PFRecHitsLabelIn = cms.InputTag('pfRecHitSoAProducerHCAL'),
0007     recHitsSource = cms.InputTag('legacyPFRecHitProducer'),
0008     usePFThresholdsFromDB = cms.bool(True),
0009     pfClusterBuilder = cms.PSet(
0010       maxIterations = cms.uint32(5),
0011       minFracTot = cms.double(1e-20),
0012       minFractionToKeep = cms.double(1e-07),
0013       excludeOtherSeeds = cms.bool(True),
0014       showerSigma = cms.double(10),
0015       stoppingTolerance = cms.double(1e-08),
0016       timeSigmaEB = cms.double(10),
0017       timeSigmaEE = cms.double(10),
0018       maxNSigmaTime = cms.double(10),
0019       minChi2Prob = cms.double(0),
0020       clusterTimeResFromSeed = cms.bool(False),
0021       algoName = cms.string(''),
0022       positionCalcForConvergence = cms.PSet(),
0023       recHitEnergyNorms = cms.VPSet(
0024         cms.PSet(
0025           depths = cms.vint32(
0026             1,
0027             2,
0028             3,
0029             4
0030           ),
0031           detector = cms.string('HCAL_BARREL1'),
0032           recHitEnergyNorm = cms.vdouble(
0033             0.1,
0034             0.2,
0035             0.3,
0036             0.3
0037           )
0038         ),
0039         cms.PSet(
0040           depths = cms.vint32(
0041             1,
0042             2,
0043             3,
0044             4,
0045             5,
0046             6,
0047             7
0048           ),
0049           detector = cms.string('HCAL_ENDCAP'),
0050           recHitEnergyNorm = cms.vdouble(
0051             0.1,
0052             0.2,
0053             0.2,
0054             0.2,
0055             0.2,
0056             0.2,
0057             0.2
0058           )
0059         ),
0060         template = cms.PSetTemplate(
0061           detector = cms.string(''),
0062           depths = cms.vint32(),
0063           recHitEnergyNorm = cms.vdouble()
0064         )
0065       ),
0066       positionCalc = cms.PSet(
0067         algoName = cms.string('Basic2DGenericPFlowPositionCalc'),
0068         minFractionInCalc = cms.double(1e-09),
0069         posCalcNCrystals = cms.int32(5),
0070         logWeightDenominatorByDetector = cms.VPSet(
0071           cms.PSet(
0072             depths = cms.vint32(
0073               1,
0074               2,
0075               3,
0076               4
0077             ),
0078             detector = cms.string('HCAL_BARREL1'),
0079             logWeightDenominator = cms.vdouble(
0080               0.1,
0081               0.2,
0082               0.3,
0083               0.3
0084             )
0085           ),
0086           cms.PSet(
0087             depths = cms.vint32(
0088               1,
0089               2,
0090               3,
0091               4,
0092               5,
0093               6,
0094               7
0095             ),
0096             detector = cms.string('HCAL_ENDCAP'),
0097             logWeightDenominator = cms.vdouble(
0098               0.1,
0099               0.2,
0100               0.2,
0101               0.2,
0102               0.2,
0103               0.2,
0104               0.2
0105             )
0106           ),
0107           template = cms.PSetTemplate(
0108             detector = cms.string(''),
0109             depths = cms.vint32(),
0110             logWeightDenominator = cms.vdouble()
0111           )
0112         ),
0113         minAllowedNormalization = cms.double(1e-09),
0114         timeResolutionCalcBarrel = cms.PSet(),
0115         timeResolutionCalcEndcap = cms.PSet()
0116       ),
0117       allCellsPositionCalc = cms.PSet(
0118         algoName = cms.string('Basic2DGenericPFlowPositionCalc'),
0119         minFractionInCalc = cms.double(1e-09),
0120         posCalcNCrystals = cms.int32(-1),
0121         logWeightDenominatorByDetector = cms.VPSet(
0122           cms.PSet(
0123             depths = cms.vint32(
0124               1,
0125               2,
0126               3,
0127               4
0128             ),
0129             detector = cms.string('HCAL_BARREL1'),
0130             logWeightDenominator = cms.vdouble(
0131               0.1,
0132               0.2,
0133               0.3,
0134               0.3
0135             )
0136           ),
0137           cms.PSet(
0138             depths = cms.vint32(
0139               1,
0140               2,
0141               3,
0142               4,
0143               5,
0144               6,
0145               7
0146             ),
0147             detector = cms.string('HCAL_ENDCAP'),
0148             logWeightDenominator = cms.vdouble(
0149               0.1,
0150               0.2,
0151               0.2,
0152               0.2,
0153               0.2,
0154               0.2,
0155               0.2
0156             )
0157           ),
0158           template = cms.PSetTemplate(
0159             detector = cms.string(''),
0160             depths = cms.vint32(),
0161             logWeightDenominator = cms.vdouble()
0162           )
0163         ),
0164         minAllowedNormalization = cms.double(1e-09),
0165         timeResolutionCalcBarrel = cms.PSet(),
0166         timeResolutionCalcEndcap = cms.PSet()
0167       ),
0168       timeResolutionCalcBarrel = cms.PSet(
0169         corrTermLowE = cms.double(0),
0170         threshLowE = cms.double(6),
0171         noiseTerm = cms.double(21.86),
0172         constantTermLowE = cms.double(4.24),
0173         noiseTermLowE = cms.double(8),
0174         threshHighE = cms.double(15),
0175         constantTerm = cms.double(2.82)
0176       ),
0177       timeResolutionCalcEndcap = cms.PSet(
0178         corrTermLowE = cms.double(0),
0179         threshLowE = cms.double(6),
0180         noiseTerm = cms.double(21.86),
0181         constantTermLowE = cms.double(4.24),
0182         noiseTermLowE = cms.double(8),
0183         threshHighE = cms.double(15),
0184         constantTerm = cms.double(2.82)
0185       ),
0186       positionReCalc = cms.PSet(),
0187       energyCorrector = cms.PSet()
0188     ),
0189     mightGet = cms.optional.untracked.vstring
0190   )
0191   for a in args:
0192     mod.update_(a)
0193   mod.update_(kwargs)
0194   return mod