File indexing completed on 2024-08-27 22:59:16
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def HLTEcalResonanceFilter(**kwargs):
0004 mod = cms.EDFilter('HLTEcalResonanceFilter',
0005 barrelHits = cms.InputTag('hltEcalRegionalPi0EtaRecHit', 'EcalRecHitsEB'),
0006 endcapHits = cms.InputTag('hltEcalRegionalPi0EtaRecHit', 'EcalRecHitsEE'),
0007 preshRecHitProducer = cms.InputTag('hltEcalRegionalPi0EtaRecHit', 'EcalRecHitsES'),
0008 barrelClusters = cms.InputTag('hltSimple3x3Clusters', 'Simple3x3ClustersBarrel'),
0009 endcapClusters = cms.InputTag('hltSimple3x3Clusters', 'Simple3x3ClustersEndcap'),
0010 useRecoFlag = cms.bool(False),
0011 flagLevelRecHitsToUse = cms.int32(1),
0012 useDBStatus = cms.bool(True),
0013 statusLevelRecHitsToUse = cms.int32(1),
0014 doSelBarrel = cms.bool(True),
0015 barrelSelection = cms.PSet(
0016 selePtGamma = cms.double(1),
0017 selePtPair = cms.double(2),
0018 seleMinvMaxBarrel = cms.double(0.22),
0019 seleMinvMinBarrel = cms.double(0.06),
0020 removePi0CandidatesForEta = cms.bool(False),
0021 massLowPi0Cand = cms.double(0.104),
0022 massHighPi0Cand = cms.double(0.163),
0023 seleS4S9Gamma = cms.double(0.83),
0024 seleS9S25Gamma = cms.double(0),
0025 ptMinForIsolation = cms.double(1),
0026 seleIso = cms.double(0.5),
0027 seleBeltDR = cms.double(0.2),
0028 seleBeltDeta = cms.double(0.05),
0029 store5x5RecHitEB = cms.bool(False),
0030 barrelHitCollection = cms.string('pi0EcalRecHitsEB')
0031 ),
0032 doSelEndcap = cms.bool(True),
0033 endcapSelection = cms.PSet(
0034 seleMinvMaxEndCap = cms.double(0.3),
0035 seleMinvMinEndCap = cms.double(0.05),
0036 region1_EndCap = cms.double(2),
0037 selePtGammaEndCap_region1 = cms.double(0.8),
0038 selePtPairEndCap_region1 = cms.double(3),
0039 region2_EndCap = cms.double(2.5),
0040 selePtGammaEndCap_region2 = cms.double(0.5),
0041 selePtPairEndCap_region2 = cms.double(2),
0042 selePtGammaEndCap_region3 = cms.double(0.3),
0043 selePtPairEndCap_region3 = cms.double(1.2),
0044 selePtPairMaxEndCap_region3 = cms.double(2.5),
0045 seleS4S9GammaEndCap = cms.double(0.9),
0046 seleS9S25GammaEndCap = cms.double(0),
0047 ptMinForIsolationEndCap = cms.double(0.5),
0048 seleIsoEndCap = cms.double(0.5),
0049 seleBeltDREndCap = cms.double(0.2),
0050 seleBeltDetaEndCap = cms.double(0.05),
0051 store5x5RecHitEE = cms.bool(False),
0052 endcapHitCollection = cms.string('pi0EcalRecHitsEE')
0053 ),
0054 storeRecHitES = cms.bool(True),
0055 preshowerSelection = cms.PSet(
0056 ESCollection = cms.string('pi0EcalRecHitsES'),
0057 preshNclust = cms.int32(4),
0058 preshClusterEnergyCut = cms.double(0),
0059 preshStripEnergyCut = cms.double(0),
0060 preshSeededNstrip = cms.int32(15),
0061 preshCalibPlaneX = cms.double(1),
0062 preshCalibPlaneY = cms.double(0.7),
0063 preshCalibGamma = cms.double(0.024),
0064 preshCalibMIP = cms.double(9e-05),
0065 debugLevelES = cms.string('')
0066 ),
0067 debugLevel = cms.int32(0),
0068 mightGet = cms.optional.untracked.vstring
0069 )
0070 for k,v in kwargs.items():
0071 setattr(mod, k, v)
0072 return mod