File indexing completed on 2024-08-27 22:59:30
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def PFBlockProducer(**kwargs):
0004 mod = cms.EDProducer('PFBlockProducer',
0005 verbose = cms.untracked.bool(False),
0006 debug = cms.untracked.bool(False),
0007 elementImporters = cms.VPSet(
0008 cms.PSet(
0009 gsfsAreSecondary = cms.bool(False),
0010 importerName = cms.string('GSFTrackImporter'),
0011 source = cms.InputTag('pfTrackElec'),
0012 superClustersArePF = cms.bool(True)
0013 ),
0014 cms.PSet(
0015 importerName = cms.string('ConvBremTrackImporter'),
0016 source = cms.InputTag('pfTrackElec'),
0017 vetoEndcap = cms.bool(False)
0018 ),
0019 cms.PSet(
0020 hbheRecHitsTag = cms.InputTag('hbhereco'),
0021 importerName = cms.string('SuperClusterImporter'),
0022 maxSeverityHB = cms.int32(9),
0023 maxSeverityHE = cms.int32(9),
0024 maximumHoverE = cms.double(0.5),
0025 minPTforBypass = cms.double(100),
0026 minSuperClusterPt = cms.double(10),
0027 source_eb = cms.InputTag('particleFlowSuperClusterECAL', 'particleFlowSuperClusterECALBarrel'),
0028 source_ee = cms.InputTag('particleFlowSuperClusterECAL', 'particleFlowSuperClusterECALEndcapWithPreshower'),
0029 superClustersArePF = cms.bool(True),
0030 usePFThresholdsFromDB = cms.bool(False)
0031 ),
0032 cms.PSet(
0033 importerName = cms.string('ConversionTrackImporter'),
0034 source = cms.InputTag('pfConversions'),
0035 vetoEndcap = cms.bool(False)
0036 ),
0037 cms.PSet(
0038 importerName = cms.string('NuclearInteractionTrackImporter'),
0039 source = cms.InputTag('pfDisplacedTrackerVertex'),
0040 vetoEndcap = cms.bool(False)
0041 ),
0042 cms.PSet(
0043 DPtOverPtCuts_byTrackAlgo = cms.vdouble(
0044 10,
0045 10,
0046 10,
0047 10,
0048 10,
0049 5
0050 ),
0051 NHitCuts_byTrackAlgo = cms.vuint32(
0052 3,
0053 3,
0054 3,
0055 3,
0056 3,
0057 3
0058 ),
0059 cleanBadConvertedBrems = cms.bool(True),
0060 importerName = cms.string('GeneralTracksImporter'),
0061 muonMaxDPtOPt = cms.double(1),
0062 muonSrc = cms.InputTag('muons1stStep'),
0063 source = cms.InputTag('pfTrack'),
0064 trackQuality = cms.string('highPurity'),
0065 useIterativeTracking = cms.bool(True),
0066 vetoEndcap = cms.bool(False)
0067 ),
0068 cms.PSet(
0069 BCtoPFCMap = cms.InputTag('particleFlowSuperClusterECAL', 'PFClusterAssociationEBEE'),
0070 importerName = cms.string('ECALClusterImporter'),
0071 source = cms.InputTag('particleFlowClusterECAL')
0072 ),
0073 cms.PSet(
0074 importerName = cms.string('GenericClusterImporter'),
0075 source = cms.InputTag('particleFlowClusterHCAL')
0076 ),
0077 cms.PSet(
0078 importerName = cms.string('GenericClusterImporter'),
0079 source = cms.InputTag('particleFlowBadHcalPseudoCluster')
0080 ),
0081 cms.PSet(
0082 importerName = cms.string('GenericClusterImporter'),
0083 source = cms.InputTag('particleFlowClusterHO')
0084 ),
0085 cms.PSet(
0086 importerName = cms.string('GenericClusterImporter'),
0087 source = cms.InputTag('particleFlowClusterHF')
0088 ),
0089 cms.PSet(
0090 importerName = cms.string('GenericClusterImporter'),
0091 source = cms.InputTag('particleFlowClusterPS')
0092 )
0093 ),
0094 linkDefinitions = cms.VPSet(
0095 cms.PSet(
0096 linkType = cms.string('PS1:ECAL'),
0097 linkerName = cms.string('PreshowerAndECALLinker'),
0098 useKDTree = cms.bool(True)
0099 ),
0100 cms.PSet(
0101 linkType = cms.string('PS2:ECAL'),
0102 linkerName = cms.string('PreshowerAndECALLinker'),
0103 useKDTree = cms.bool(True)
0104 ),
0105 cms.PSet(
0106 linkType = cms.string('TRACK:ECAL'),
0107 linkerName = cms.string('TrackAndECALLinker'),
0108 useKDTree = cms.bool(True)
0109 ),
0110 cms.PSet(
0111 linkType = cms.string('TRACK:HCAL'),
0112 linkerName = cms.string('TrackAndHCALLinker'),
0113 nMaxHcalLinksPerTrack = cms.int32(1),
0114 trajectoryLayerEntrance = cms.string('HCALEntrance'),
0115 trajectoryLayerExit = cms.string('HCALExit'),
0116 useKDTree = cms.bool(True)
0117 ),
0118 cms.PSet(
0119 linkType = cms.string('TRACK:HO'),
0120 linkerName = cms.string('TrackAndHOLinker'),
0121 useKDTree = cms.bool(False)
0122 ),
0123 cms.PSet(
0124 linkType = cms.string('ECAL:HCAL'),
0125 linkerName = cms.string('ECALAndHCALLinker'),
0126 minAbsEtaEcal = cms.double(2.5),
0127 useKDTree = cms.bool(False)
0128 ),
0129 cms.PSet(
0130 linkType = cms.string('HCAL:HO'),
0131 linkerName = cms.string('HCALAndHOLinker'),
0132 useKDTree = cms.bool(False)
0133 ),
0134 cms.PSet(
0135 linkType = cms.string('HFEM:HFHAD'),
0136 linkerName = cms.string('HFEMAndHFHADLinker'),
0137 useKDTree = cms.bool(False)
0138 ),
0139 cms.PSet(
0140 linkType = cms.string('TRACK:TRACK'),
0141 linkerName = cms.string('TrackAndTrackLinker'),
0142 useKDTree = cms.bool(False)
0143 ),
0144 cms.PSet(
0145 linkType = cms.string('ECAL:ECAL'),
0146 linkerName = cms.string('ECALAndECALLinker'),
0147 useKDTree = cms.bool(False)
0148 ),
0149 cms.PSet(
0150 linkType = cms.string('GSF:ECAL'),
0151 linkerName = cms.string('GSFAndECALLinker'),
0152 useKDTree = cms.bool(False)
0153 ),
0154 cms.PSet(
0155 linkType = cms.string('TRACK:GSF'),
0156 linkerName = cms.string('TrackAndGSFLinker'),
0157 useConvertedBrems = cms.bool(True),
0158 useKDTree = cms.bool(False)
0159 ),
0160 cms.PSet(
0161 linkType = cms.string('GSF:BREM'),
0162 linkerName = cms.string('GSFAndBREMLinker'),
0163 useKDTree = cms.bool(False)
0164 ),
0165 cms.PSet(
0166 linkType = cms.string('GSF:GSF'),
0167 linkerName = cms.string('GSFAndGSFLinker'),
0168 useKDTree = cms.bool(False)
0169 ),
0170 cms.PSet(
0171 linkType = cms.string('ECAL:BREM'),
0172 linkerName = cms.string('ECALAndBREMLinker'),
0173 useKDTree = cms.bool(False)
0174 ),
0175 cms.PSet(
0176 linkType = cms.string('GSF:HCAL'),
0177 linkerName = cms.string('GSFAndHCALLinker'),
0178 useKDTree = cms.bool(False)
0179 ),
0180 cms.PSet(
0181 linkType = cms.string('HCAL:BREM'),
0182 linkerName = cms.string('HCALAndBREMLinker'),
0183 useKDTree = cms.bool(False)
0184 ),
0185 cms.PSet(
0186 SuperClusterMatchByRef = cms.bool(True),
0187 linkType = cms.string('SC:ECAL'),
0188 linkerName = cms.string('SCAndECALLinker'),
0189 useKDTree = cms.bool(False)
0190 )
0191 ),
0192 mightGet = cms.optional.untracked.vstring
0193 )
0194 for k,v in kwargs.items():
0195 setattr(mod, k, v)
0196 return mod