Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-13 03:24:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoLocalCalo.HGCalRecProducers.HGCalUncalibRecHitProducer_cfi import HGCalUncalibRecHitProducer
0004 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchefrontDigitizer, hgchebackDigitizer, hfnoseDigitizer
0005 
0006 fCPerMIP_mpv = cms.vdouble(1.25,2.57,3.88) #120um, 200um, 300um
0007 fCPerMIP_mean = cms.vdouble(2.06,3.43,5.15) #120um, 200um, 300um
0008 
0009 # HGCAL producer of rechits starting from digis
0010 HGCalUncalibRecHit = HGCalUncalibRecHitProducer.clone(
0011 
0012     HGCEEConfig = cms.PSet(
0013         isSiFE = cms.bool(True),
0014         # adc information
0015         adcNbits      = hgceeDigitizer.digiCfg.feCfg.adcNbits,
0016         adcSaturation = hgceeDigitizer.digiCfg.feCfg.adcSaturation_fC,
0017         #tdc information
0018         tdcNbits      = hgceeDigitizer.digiCfg.feCfg.tdcNbits,
0019         tdcSaturation = hgceeDigitizer.digiCfg.feCfg.tdcSaturation_fC,
0020         tdcOnset      = hgceeDigitizer.digiCfg.feCfg.tdcOnset_fC,
0021         toaLSB_ns     = hgceeDigitizer.digiCfg.feCfg.toaLSB_ns,
0022         tofDelay      = hgceeDigitizer.tofDelay,
0023         fCPerMIP      = fCPerMIP_mpv
0024         ),
0025 
0026     HGCHEFConfig = cms.PSet(
0027         isSiFE = cms.bool(True),
0028         # adc information
0029         adcNbits      = hgchefrontDigitizer.digiCfg.feCfg.adcNbits,
0030         adcSaturation = hgchefrontDigitizer.digiCfg.feCfg.adcSaturation_fC,
0031         #tdc information
0032         tdcNbits      = hgchefrontDigitizer.digiCfg.feCfg.tdcNbits,
0033         tdcSaturation = hgchefrontDigitizer.digiCfg.feCfg.tdcSaturation_fC,
0034         tdcOnset      = hgchefrontDigitizer.digiCfg.feCfg.tdcOnset_fC,
0035         toaLSB_ns     = hgchefrontDigitizer.digiCfg.feCfg.toaLSB_ns,
0036         tofDelay      = hgchefrontDigitizer.tofDelay,
0037         fCPerMIP      = fCPerMIP_mpv
0038         ),
0039 
0040     HGCHEBConfig = cms.PSet(
0041         isSiFE  = cms.bool(True),
0042         # adc information
0043         adcNbits      = hgchebackDigitizer.digiCfg.feCfg.adcNbits,
0044         adcSaturation = hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC,
0045         #tdc information
0046         tdcNbits      = hgchebackDigitizer.digiCfg.feCfg.tdcNbits,
0047         tdcSaturation = hgchebackDigitizer.digiCfg.feCfg.tdcSaturation_fC,
0048         tdcOnset      = hgchebackDigitizer.digiCfg.feCfg.tdcOnset_fC,
0049         toaLSB_ns     = hgchebackDigitizer.digiCfg.feCfg.toaLSB_ns,
0050         tofDelay      = hgchebackDigitizer.tofDelay,
0051         fCPerMIP      = cms.vdouble(1.0,1.0,1.0) #dummy values, it's scintillator
0052         ),
0053 
0054     HGCHFNoseConfig = cms.PSet(
0055         isSiFE = cms.bool(False),
0056         # adc information
0057         adcNbits      = hfnoseDigitizer.digiCfg.feCfg.adcNbits,
0058         adcSaturation = hfnoseDigitizer.digiCfg.feCfg.adcSaturation_fC,
0059         #tdc information
0060         tdcNbits      = hfnoseDigitizer.digiCfg.feCfg.tdcNbits,
0061         tdcSaturation = hfnoseDigitizer.digiCfg.feCfg.tdcSaturation_fC,
0062         tdcOnset      = hfnoseDigitizer.digiCfg.feCfg.tdcOnset_fC,
0063         toaLSB_ns     = hfnoseDigitizer.digiCfg.feCfg.toaLSB_ns,
0064         tofDelay      = hfnoseDigitizer.tofDelay,
0065         fCPerMIP      = fCPerMIP_mpv
0066         )
0067 )
0068 
0069 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
0070 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_mean )
0071 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_mean )
0072 
0073 from Configuration.Eras.Modifier_phase2_hgcalV16_cff import phase2_hgcalV16
0074 phase2_hgcalV16.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_mean )
0075 phase2_hgcalV16.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_mean )
0076 
0077 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
0078 phase2_hfnose.toModify( HGCalUncalibRecHit.HGCHFNoseConfig ,
0079           isSiFE = True ,
0080           fCPerMIP = fCPerMIP_mean
0081 )
0082 
0083 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
0084 ticl_v5.toModify(HGCalUncalibRecHit, computeLocalTime = cms.bool(True))