Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-31 23:17:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cfi import hgcalLayerClusters as hgcalLayerClusters_
0004 
0005 from RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi import HGCalRecHit
0006 
0007 from RecoLocalCalo.HGCalRecProducers.HGCalUncalibRecHit_cfi import HGCalUncalibRecHit
0008 
0009 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import fC_per_ele, HGCAL_noises, hgceeDigitizer, hgchebackDigitizer, hfnoseDigitizer
0010 
0011 hgcalLayerClusters = hgcalLayerClusters_.clone(
0012     timeOffset = hgceeDigitizer.tofDelay,
0013     plugin = dict(
0014         dEdXweights = HGCalRecHit.layerWeights.value(),
0015         #With the introduction of 7 regional factors (6 for silicon plus 1 for scintillator),
0016         #we extend fcPerMip (along with noises below) so that it is guaranteed that they have 6 entries.
0017         fcPerMip = HGCalUncalibRecHit.HGCEEConfig.fCPerMIP.value() + HGCalUncalibRecHit.HGCHEFConfig.fCPerMIP.value(),
0018         thicknessCorrection = HGCalRecHit.thicknessCorrection.value(),
0019         sciThicknessCorrection = HGCalRecHit.sciThicknessCorrection.value(),
0020         deltasi_index_regemfac = HGCalRecHit.deltasi_index_regemfac.value(),
0021         fcPerEle = fC_per_ele,
0022         #Extending noises as fcPerMip, see comment above.
0023         noises = HGCAL_noises.values.value() + HGCAL_noises.values.value(),
0024         noiseMip = hgchebackDigitizer.digiCfg.noise.value()
0025     )
0026 )
0027 
0028 hgcalLayerClustersHFNose = hgcalLayerClusters_.clone(
0029     detector = 'HFNose',
0030     timeOffset = hfnoseDigitizer.tofDelay.value(),
0031     nHitsTime = 3,
0032     plugin = dict(
0033         dEdXweights = HGCalRecHit.layerNoseWeights.value(),
0034         maxNumberOfThickIndices = 3,
0035         fcPerMip = HGCalUncalibRecHit.HGCHFNoseConfig.fCPerMIP.value(),
0036         thicknessCorrection = HGCalRecHit.thicknessNoseCorrection.value(),
0037         fcPerEle = fC_per_ele,
0038         noises = HGCAL_noises.values.value(),
0039         noiseMip = hgchebackDigitizer.digiCfg.noise.value()
0040     )
0041 )