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 fCPerMIP_v10 = fCPerMIP_v9
8 
9 # HGCAL producer of rechits starting from digis
10 HGCalUncalibRecHit = cms.EDProducer(
11  "HGCalUncalibRecHitProducer",
12  HGCEEdigiCollection = cms.InputTag('hgcalDigis:EE'),
13  HGCEEhitCollection = cms.string('HGCEEUncalibRecHits'),
14  HGCHEFdigiCollection = cms.InputTag('hgcalDigis:HEfront'),
15  HGCHEFhitCollection = cms.string('HGCHEFUncalibRecHits'),
16  HGCHEBdigiCollection = cms.InputTag('hgcalDigis:HEback'),
17  HGCHEBhitCollection = cms.string('HGCHEBUncalibRecHits'),
18 
19  HGCEEConfig = cms.PSet(
20  isSiFE = cms.bool(True),
21  # adc information
22  adcNbits = hgceeDigitizer.digiCfg.feCfg.adcNbits,
23  adcSaturation = hgceeDigitizer.digiCfg.feCfg.adcSaturation_fC,
24  #tdc information
25  tdcNbits = hgceeDigitizer.digiCfg.feCfg.tdcNbits,
26  tdcSaturation = hgceeDigitizer.digiCfg.feCfg.tdcSaturation_fC,
27  tdcOnset = hgceeDigitizer.digiCfg.feCfg.tdcOnset_fC,
28  toaLSB_ns = hgceeDigitizer.digiCfg.feCfg.toaLSB_ns,
29  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
30  ),
31 
32  HGCHEFConfig = cms.PSet(
33  isSiFE = cms.bool(True),
34  # adc information
35  adcNbits = hgchefrontDigitizer.digiCfg.feCfg.adcNbits,
36  adcSaturation = hgchefrontDigitizer.digiCfg.feCfg.adcSaturation_fC,
37  #tdc information
38  tdcNbits = hgchefrontDigitizer.digiCfg.feCfg.tdcNbits,
39  tdcSaturation = hgchefrontDigitizer.digiCfg.feCfg.tdcSaturation_fC,
40  tdcOnset = hgchefrontDigitizer.digiCfg.feCfg.tdcOnset_fC,
41  toaLSB_ns = hgchefrontDigitizer.digiCfg.feCfg.toaLSB_ns,
42  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
43  ),
44 
45  HGCHEBConfig = cms.PSet(
46  isSiFE = cms.bool(False),
47  adcNbits = hgchebackDigitizer.digiCfg.feCfg.adcNbits,
48  adcSaturation = hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC,
49  fCPerMIP = cms.vdouble(1.0,1.0,1.0) #dummy values, it's scintillator
50  ),
51 
52  algo = cms.string("HGCalUncalibRecHitWorkerWeights")
53 )
54 
55 from Configuration.Eras.Modifier_phase2_hgcalV9_cff import phase2_hgcalV9
56 phase2_hgcalV9.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_v9 )
57 phase2_hgcalV9.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_v9 )
58 
59 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
60 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_v10 )
61 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_v10 )
62 
63 
64