Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:55

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