CMS 3D CMS Logo

HGCalUncalibRecHit_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchefrontDigitizer, hgchebackDigitizer
4 
5 fCPerMIP_v9 = cms.vdouble(2.06,3.43,5.15) #120um, 200um, 300um
6 
7 # HGCAL producer of rechits starting from digis
8 HGCalUncalibRecHit = cms.EDProducer(
9  "HGCalUncalibRecHitProducer",
10  HGCEEdigiCollection = cms.InputTag('hgcalDigis:EE'),
11  HGCEEhitCollection = cms.string('HGCEEUncalibRecHits'),
12  HGCHEFdigiCollection = cms.InputTag('hgcalDigis:HEfront'),
13  HGCHEFhitCollection = cms.string('HGCHEFUncalibRecHits'),
14  HGCHEBdigiCollection = cms.InputTag('hgcalDigis:HEback'),
15  HGCHEBhitCollection = cms.string('HGCHEBUncalibRecHits'),
16 
17  HGCEEConfig = cms.PSet(
18  isSiFE = cms.bool(True),
19  # adc information
20  adcNbits = hgceeDigitizer.digiCfg.feCfg.adcNbits,
21  adcSaturation = hgceeDigitizer.digiCfg.feCfg.adcSaturation_fC,
22  #tdc information
23  tdcNbits = hgceeDigitizer.digiCfg.feCfg.tdcNbits,
24  tdcSaturation = hgceeDigitizer.digiCfg.feCfg.tdcSaturation_fC,
25  tdcOnset = hgceeDigitizer.digiCfg.feCfg.tdcOnset_fC,
26  toaLSB_ns = hgceeDigitizer.digiCfg.feCfg.toaLSB_ns,
27  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
28  ),
29 
30  HGCHEFConfig = cms.PSet(
31  isSiFE = cms.bool(True),
32  # adc information
33  adcNbits = hgchefrontDigitizer.digiCfg.feCfg.adcNbits,
34  adcSaturation = hgchefrontDigitizer.digiCfg.feCfg.adcSaturation_fC,
35  #tdc information
36  tdcNbits = hgchefrontDigitizer.digiCfg.feCfg.tdcNbits,
37  tdcSaturation = hgchefrontDigitizer.digiCfg.feCfg.tdcSaturation_fC,
38  tdcOnset = hgchefrontDigitizer.digiCfg.feCfg.tdcOnset_fC,
39  toaLSB_ns = hgchefrontDigitizer.digiCfg.feCfg.toaLSB_ns,
40  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
41  ),
42 
43  HGCHEBConfig = cms.PSet(
44  isSiFE = cms.bool(False),
45  adcNbits = hgchebackDigitizer.digiCfg.feCfg.adcNbits,
46  adcSaturation = hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC,
47  fCPerMIP = cms.vdouble(1.0,1.0,1.0) #dummy values, it's scintillator
48  ),
49 
50  algo = cms.string("HGCalUncalibRecHitWorkerWeights")
51 )
52 
53 from Configuration.Eras.Modifier_phase2_hgcalV9_cff import phase2_hgcalV9
54 phase2_hgcalV9.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_v9 )
55 phase2_hgcalV9.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_v9 )