1 import FWCore.ParameterSet.Config
as cms
3 from RecoLocalCalo.EcalRecAlgos.ecalCleaningAlgo
import cleaningAlgoConfig
6 ecalRecHit = cms.EDProducer(
"EcalRecHitProducer",
7 EErechitCollection = cms.string(
'EcalRecHitsEE'),
8 EEuncalibRecHitCollection = cms.InputTag(
"ecalMultiFitUncalibRecHit",
"EcalUncalibRecHitsEE"),
9 EBuncalibRecHitCollection = cms.InputTag(
"ecalMultiFitUncalibRecHit",
"EcalUncalibRecHitsEB"),
10 EBrechitCollection = cms.string(
'EcalRecHitsEB'),
12 ChannelStatusToBeExcluded = cms.vstring(
'kDAC',
18 'kNonRespondingIsolated',
23 killDeadChannels = cms.bool(
True),
24 algo = cms.string(
"EcalRecHitWorkerSimple"),
27 EBLaserMIN = cms.double(0.5),
28 EELaserMIN = cms.double(0.5),
30 EBLaserMAX = cms.double(3.0),
31 EELaserMAX = cms.double(8.0),
34 skipTimeCalib = cms.bool(
False),
37 laserCorrection = cms.bool(
True),
40 flagsMapDBReco = cms.PSet(
41 kGood = cms.vstring(
'kOk',
'kDAC',
'kNoLaser',
'kNoisy'),
42 kNoisy = cms.vstring(
'kNNoisy',
'kFixedG6',
'kFixedG1'),
43 kNeighboursRecovered = cms.vstring(
'kFixedG0',
44 'kNonRespondingIsolated',
46 kTowerRecovered = cms.vstring(
'kDeadFE'),
47 kDead = cms.vstring(
'kNoDataNoTP')
51 algoRecover = cms.string(
"EcalRecHitWorkerRecover"),
52 recoverEBIsolatedChannels = cms.bool(
False),
53 recoverEEIsolatedChannels = cms.bool(
False),
54 recoverEBVFE = cms.bool(
False),
55 recoverEEVFE = cms.bool(
False),
56 recoverEBFE = cms.bool(
True),
57 recoverEEFE = cms.bool(
True),
59 dbStatusToBeExcludedEE = cms.vint32(
64 dbStatusToBeExcludedEB = cms.vint32(
73 logWarningEtThreshold_EB_FE = cms.double(50),
74 logWarningEtThreshold_EE_FE = cms.double(50),
75 ebDetIdToBeRecovered = cms.InputTag(
"ecalDetIdToBeRecovered:ebDetId"),
76 eeDetIdToBeRecovered = cms.InputTag(
"ecalDetIdToBeRecovered:eeDetId"),
77 ebFEToBeRecovered = cms.InputTag(
"ecalDetIdToBeRecovered:ebFE"),
78 eeFEToBeRecovered = cms.InputTag(
"ecalDetIdToBeRecovered:eeFE"),
79 singleChannelRecoveryMethod = cms.string(
"BDTG"),
80 singleChannelRecoveryThreshold = cms.double(0.70),
81 sum8ChannelRecoveryThreshold = cms.double(0.),
82 bdtWeightFileNoCracks = cms.FileInPath(
"RecoLocalCalo/EcalDeadChannelRecoveryAlgos/data/BDTWeights/bdtgAllRH_8GT700MeV_noCracks_ZskimData2017_v1.xml"),
83 bdtWeightFileCracks = cms.FileInPath(
"RecoLocalCalo/EcalDeadChannelRecoveryAlgos/data/BDTWeights/bdtgAllRH_8GT700MeV_onlyCracks_ZskimData2017_v1.xml"),
84 triggerPrimitiveDigiCollection = cms.InputTag(
"ecalDigis:EcalTriggerPrimitives"),
85 cleaningConfig=cleaningAlgoConfig,
89 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
91 fastSim.toModify(ecalRecHit,
92 killDeadChannels =
False,
95 recoverEBIsolatedChannels =
False