Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-22 02:23:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def LegacyPFClusterProducer(**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       ),
0061       positionCalc = cms.PSet(
0062         algoName = cms.string('Basic2DGenericPFlowPositionCalc'),
0063         minFractionInCalc = cms.double(1e-09),
0064         posCalcNCrystals = cms.int32(5),
0065         logWeightDenominatorByDetector = cms.VPSet(
0066           cms.PSet(
0067             depths = cms.vint32(
0068               1,
0069               2,
0070               3,
0071               4
0072             ),
0073             detector = cms.string('HCAL_BARREL1'),
0074             logWeightDenominator = cms.vdouble(
0075               0.1,
0076               0.2,
0077               0.3,
0078               0.3
0079             )
0080           ),
0081           cms.PSet(
0082             depths = cms.vint32(
0083               1,
0084               2,
0085               3,
0086               4,
0087               5,
0088               6,
0089               7
0090             ),
0091             detector = cms.string('HCAL_ENDCAP'),
0092             logWeightDenominator = cms.vdouble(
0093               0.1,
0094               0.2,
0095               0.2,
0096               0.2,
0097               0.2,
0098               0.2,
0099               0.2
0100             )
0101           )
0102         ),
0103         minAllowedNormalization = cms.double(1e-09),
0104         timeResolutionCalcBarrel = cms.PSet(),
0105         timeResolutionCalcEndcap = cms.PSet()
0106       ),
0107       allCellsPositionCalc = cms.PSet(
0108         algoName = cms.string('Basic2DGenericPFlowPositionCalc'),
0109         minFractionInCalc = cms.double(1e-09),
0110         posCalcNCrystals = cms.int32(-1),
0111         logWeightDenominatorByDetector = cms.VPSet(
0112           cms.PSet(
0113             depths = cms.vint32(
0114               1,
0115               2,
0116               3,
0117               4
0118             ),
0119             detector = cms.string('HCAL_BARREL1'),
0120             logWeightDenominator = cms.vdouble(
0121               0.1,
0122               0.2,
0123               0.3,
0124               0.3
0125             )
0126           ),
0127           cms.PSet(
0128             depths = cms.vint32(
0129               1,
0130               2,
0131               3,
0132               4,
0133               5,
0134               6,
0135               7
0136             ),
0137             detector = cms.string('HCAL_ENDCAP'),
0138             logWeightDenominator = cms.vdouble(
0139               0.1,
0140               0.2,
0141               0.2,
0142               0.2,
0143               0.2,
0144               0.2,
0145               0.2
0146             )
0147           )
0148         ),
0149         minAllowedNormalization = cms.double(1e-09),
0150         timeResolutionCalcBarrel = cms.PSet(),
0151         timeResolutionCalcEndcap = cms.PSet()
0152       ),
0153       timeResolutionCalcBarrel = cms.PSet(
0154         corrTermLowE = cms.double(0),
0155         threshLowE = cms.double(6),
0156         noiseTerm = cms.double(21.86),
0157         constantTermLowE = cms.double(4.24),
0158         noiseTermLowE = cms.double(8),
0159         threshHighE = cms.double(15),
0160         constantTerm = cms.double(2.82)
0161       ),
0162       timeResolutionCalcEndcap = cms.PSet(
0163         corrTermLowE = cms.double(0),
0164         threshLowE = cms.double(6),
0165         noiseTerm = cms.double(21.86),
0166         constantTermLowE = cms.double(4.24),
0167         noiseTermLowE = cms.double(8),
0168         threshHighE = cms.double(15),
0169         constantTerm = cms.double(2.82)
0170       ),
0171       positionReCalc = cms.PSet(),
0172       energyCorrector = cms.PSet()
0173     ),
0174     mightGet = cms.optional.untracked.vstring
0175   )
0176   for k,v in kwargs.items():
0177     setattr(mod, k, v)
0178   return mod