CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ecalRecHit_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoLocalCalo.EcalRecAlgos.ecalCleaningAlgo import cleaningAlgoConfig
4 
5 # rechit producer
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'),
11  # db statuses to be exluded from reconstruction (some will be recovered)
12  ChannelStatusToBeExcluded = cms.vstring( 'kDAC',
13  'kNoisy',
14  'kNNoisy',
15  'kFixedG6',
16  'kFixedG1',
17  'kFixedG0',
18  'kNonRespondingIsolated',
19  'kDeadVFE',
20  'kDeadFE',
21  'kNoDataNoTP',),
22  # avoid propagation of dead channels other than after recovery
23  killDeadChannels = cms.bool(True),
24  algo = cms.string("EcalRecHitWorkerSimple"),
25  # define maximal and minimal values for the laser corrections
26 
27  EBLaserMIN = cms.double(0.5),
28  EELaserMIN = cms.double(0.5),
29 
30  EBLaserMAX = cms.double(3.0),
31  EELaserMAX = cms.double(8.0),
32 
33 
34  # apply laser corrections
35  laserCorrection = cms.bool(True),
36 
37  # reco flags association to DB flag
38  flagsMapDBReco = cms.PSet(
39  kGood = cms.vstring('kOk','kDAC','kNoLaser','kNoisy'),
40  kNoisy = cms.vstring('kNNoisy','kFixedG6','kFixedG1'),
41  kNeighboursRecovered = cms.vstring('kFixedG0',
42  'kNonRespondingIsolated',
43  'kDeadVFE'),
44  kTowerRecovered = cms.vstring('kDeadFE'),
45  kDead = cms.vstring('kNoDataNoTP')
46  ),
47 
48  # for channel recovery
49  algoRecover = cms.string("EcalRecHitWorkerRecover"),
50  recoverEBIsolatedChannels = cms.bool(False),
51  recoverEEIsolatedChannels = cms.bool(False),
52  recoverEBVFE = cms.bool(False),
53  recoverEEVFE = cms.bool(False),
54  recoverEBFE = cms.bool(True),
55  recoverEEFE = cms.bool(True),
56  #db statuses for which recovery in EE/EB should not be attempted
57  dbStatusToBeExcludedEE = cms.vint32(
58  14, # dead, no TP
59  78, # dead, HV off
60  142, # dead,LV off
61  ),
62  dbStatusToBeExcludedEB = cms.vint32(
63  14, # dead, no TP
64  78, # dead, HV off
65  142, # dead,LV off
66  ),
67  # --- logWarnings for saturated DeadFEs
68  # if the logWarningThreshold is negative the Algo will not try recovery (in EE is not tested we may need negative threshold e.g. -1.e+9)
69  # if you want to enable recovery but you don't wish to throw logWarnings put the logWarningThresholds very high e.g +1.e+9
70  # ~64 GeV is the TP saturation level
71  logWarningEtThreshold_EB_FE = cms.double(50),# in EB logWarningThreshold is actually in E (GeV)
72  logWarningEtThreshold_EE_FE = cms.double(50),# in EE the energy should correspond to Et (GeV) but the recovered values of energies are not tested if make sense
73  ebDetIdToBeRecovered = cms.InputTag("ecalDetIdToBeRecovered:ebDetId"),
74  eeDetIdToBeRecovered = cms.InputTag("ecalDetIdToBeRecovered:eeDetId"),
75  ebFEToBeRecovered = cms.InputTag("ecalDetIdToBeRecovered:ebFE"),
76  eeFEToBeRecovered = cms.InputTag("ecalDetIdToBeRecovered:eeFE"),
77  singleChannelRecoveryMethod = cms.string("NeuralNetworks"),
78  singleChannelRecoveryThreshold = cms.double(8),
79  triggerPrimitiveDigiCollection = cms.InputTag("ecalDigis:EcalTriggerPrimitives"),
80  cleaningConfig=cleaningAlgoConfig,
81 
82  )