CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hgcalLayerClusters_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cfi import hgcalLayerClusters as hgcalLayerClusters_
4 
5 from RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi import dEdX, HGCalRecHit
6 
8 
9 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import fC_per_ele, HGCAL_noises, hgceeDigitizer, hgchebackDigitizer, hfnoseDigitizer
10 
11 hgcalLayerClusters = hgcalLayerClusters_.clone(
12  timeOffset = hgceeDigitizer.tofDelay,
13  plugin = dict(
14  dEdXweights = dEdX.weights.value(),
15  #With the introduction of 7 regional factors (6 for silicon plus 1 for scintillator),
16  #we extend fcPerMip (along with noises below) so that it is guaranteed that they have 6 entries.
17  fcPerMip = HGCalUncalibRecHit.HGCEEConfig.fCPerMIP.value() + HGCalUncalibRecHit.HGCHEFConfig.fCPerMIP.value(),
18  thicknessCorrection = HGCalRecHit.thicknessCorrection.value(),
19  sciThicknessCorrection = HGCalRecHit.sciThicknessCorrection.value(),
20  deltasi_index_regemfac = HGCalRecHit.deltasi_index_regemfac.value(),
21  fcPerEle = fC_per_ele,
22  #Extending noises as fcPerMip, see comment above.
23  noises = HGCAL_noises.values.value() + HGCAL_noises.values.value(),
24  noiseMip = hgchebackDigitizer.digiCfg.noise.value()
25  )
26 )
27 
28 hgcalLayerClustersHFNose = hgcalLayerClusters_.clone(
29  detector = 'HFNose',
30  timeOffset = hfnoseDigitizer.tofDelay.value(),
31  nHitsTime = 3,
32  plugin = dict(
33  dEdXweights = dEdX.weightsNose.value(),
34  maxNumberOfThickIndices = 3,
35  fcPerMip = HGCalUncalibRecHit.HGCHFNoseConfig.fCPerMIP.value(),
36  thicknessCorrection = HGCalRecHit.thicknessNoseCorrection.value(),
37  fcPerEle = fC_per_ele,
38  noises = HGCAL_noises.values.value(),
39  noiseMip = hgchebackDigitizer.digiCfg.noise.value()
40  )
41 )