Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:00:52

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       recHitEnergyNorms = cms.VPSet(
0023         cms.PSet(
0024           depths = cms.vint32(
0025             1,
0026             2,
0027             3,
0028             4
0029           ),
0030           detector = cms.string('HCAL_BARREL1'),
0031           recHitEnergyNorm = cms.vdouble(
0032             0.1,
0033             0.2,
0034             0.3,
0035             0.3
0036           )
0037         ),
0038         cms.PSet(
0039           depths = cms.vint32(
0040             1,
0041             2,
0042             3,
0043             4,
0044             5,
0045             6,
0046             7
0047           ),
0048           detector = cms.string('HCAL_ENDCAP'),
0049           recHitEnergyNorm = cms.vdouble(
0050             0.1,
0051             0.2,
0052             0.2,
0053             0.2,
0054             0.2,
0055             0.2,
0056             0.2
0057           )
0058         )
0059       ),
0060       positionCalc = cms.PSet(
0061         algoName = cms.string('Basic2DGenericPFlowPositionCalc'),
0062         minFractionInCalc = cms.double(1e-09),
0063         posCalcNCrystals = cms.int32(5),
0064         logWeightDenominatorByDetector = cms.VPSet(
0065           cms.PSet(
0066             depths = cms.vint32(
0067               1,
0068               2,
0069               3,
0070               4
0071             ),
0072             detector = cms.string('HCAL_BARREL1'),
0073             logWeightDenominator = cms.vdouble(
0074               0.1,
0075               0.2,
0076               0.3,
0077               0.3
0078             )
0079           ),
0080           cms.PSet(
0081             depths = cms.vint32(
0082               1,
0083               2,
0084               3,
0085               4,
0086               5,
0087               6,
0088               7
0089             ),
0090             detector = cms.string('HCAL_ENDCAP'),
0091             logWeightDenominator = cms.vdouble(
0092               0.1,
0093               0.2,
0094               0.2,
0095               0.2,
0096               0.2,
0097               0.2,
0098               0.2
0099             )
0100           )
0101         ),
0102         minAllowedNormalization = cms.double(1e-09)
0103       ),
0104       allCellsPositionCalc = cms.PSet(
0105         algoName = cms.string('Basic2DGenericPFlowPositionCalc'),
0106         minFractionInCalc = cms.double(1e-09),
0107         posCalcNCrystals = cms.int32(-1),
0108         logWeightDenominatorByDetector = cms.VPSet(
0109           cms.PSet(
0110             depths = cms.vint32(
0111               1,
0112               2,
0113               3,
0114               4
0115             ),
0116             detector = cms.string('HCAL_BARREL1'),
0117             logWeightDenominator = cms.vdouble(
0118               0.1,
0119               0.2,
0120               0.3,
0121               0.3
0122             )
0123           ),
0124           cms.PSet(
0125             depths = cms.vint32(
0126               1,
0127               2,
0128               3,
0129               4,
0130               5,
0131               6,
0132               7
0133             ),
0134             detector = cms.string('HCAL_ENDCAP'),
0135             logWeightDenominator = cms.vdouble(
0136               0.1,
0137               0.2,
0138               0.2,
0139               0.2,
0140               0.2,
0141               0.2,
0142               0.2
0143             )
0144           )
0145         ),
0146         minAllowedNormalization = cms.double(1e-09)
0147       ),
0148       timeResolutionCalcBarrel = cms.PSet(
0149         corrTermLowE = cms.double(0),
0150         threshLowE = cms.double(6),
0151         noiseTerm = cms.double(21.86),
0152         constantTermLowE = cms.double(4.24),
0153         noiseTermLowE = cms.double(8),
0154         threshHighE = cms.double(15),
0155         constantTerm = cms.double(2.82)
0156       ),
0157       timeResolutionCalcEndcap = cms.PSet(
0158         corrTermLowE = cms.double(0),
0159         threshLowE = cms.double(6),
0160         noiseTerm = cms.double(21.86),
0161         constantTermLowE = cms.double(4.24),
0162         noiseTermLowE = cms.double(8),
0163         threshHighE = cms.double(15),
0164         constantTerm = cms.double(2.82)
0165       ),
0166       positionReCalc = cms.PSet(),
0167       energyCorrector = cms.PSet()
0168     ),
0169     mightGet = cms.optional.untracked.vstring
0170   )
0171   for k,v in kwargs.items():
0172     setattr(mod, k, v)
0173   return mod