CMS 3D CMS Logo

HGCalUncalibRecHit_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoLocalCalo.HGCalRecProducers.HGCalUncalibRecHitProducer_cfi import HGCalUncalibRecHitProducer
4 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchefrontDigitizer, hgchebackDigitizer, hfnoseDigitizer
5 
6 fCPerMIP_mpv = cms.vdouble(1.25,2.57,3.88) #120um, 200um, 300um
7 fCPerMIP_mean = cms.vdouble(2.06,3.43,5.15) #120um, 200um, 300um
8 
9 # HGCAL producer of rechits starting from digis
10 HGCalUncalibRecHit = HGCalUncalibRecHitProducer.clone(
11 
12  HGCEEConfig = cms.PSet(
13  isSiFE = cms.bool(True),
14  # adc information
15  adcNbits = hgceeDigitizer.digiCfg.feCfg.adcNbits,
16  adcSaturation = hgceeDigitizer.digiCfg.feCfg.adcSaturation_fC,
17  #tdc information
18  tdcNbits = hgceeDigitizer.digiCfg.feCfg.tdcNbits,
19  tdcSaturation = hgceeDigitizer.digiCfg.feCfg.tdcSaturation_fC,
20  tdcOnset = hgceeDigitizer.digiCfg.feCfg.tdcOnset_fC,
21  toaLSB_ns = hgceeDigitizer.digiCfg.feCfg.toaLSB_ns,
22  tofDelay = hgceeDigitizer.tofDelay,
23  fCPerMIP = fCPerMIP_mpv
24  ),
25 
26  HGCHEFConfig = cms.PSet(
27  isSiFE = cms.bool(True),
28  # adc information
29  adcNbits = hgchefrontDigitizer.digiCfg.feCfg.adcNbits,
30  adcSaturation = hgchefrontDigitizer.digiCfg.feCfg.adcSaturation_fC,
31  #tdc information
32  tdcNbits = hgchefrontDigitizer.digiCfg.feCfg.tdcNbits,
33  tdcSaturation = hgchefrontDigitizer.digiCfg.feCfg.tdcSaturation_fC,
34  tdcOnset = hgchefrontDigitizer.digiCfg.feCfg.tdcOnset_fC,
35  toaLSB_ns = hgchefrontDigitizer.digiCfg.feCfg.toaLSB_ns,
36  tofDelay = hgchefrontDigitizer.tofDelay,
37  fCPerMIP = fCPerMIP_mpv
38  ),
39 
40  HGCHEBConfig = cms.PSet(
41  isSiFE = cms.bool(True),
42  # adc information
43  adcNbits = hgchebackDigitizer.digiCfg.feCfg.adcNbits,
44  adcSaturation = hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC,
45  #tdc information
46  tdcNbits = hgchebackDigitizer.digiCfg.feCfg.tdcNbits,
47  tdcSaturation = hgchebackDigitizer.digiCfg.feCfg.tdcSaturation_fC,
48  tdcOnset = hgchebackDigitizer.digiCfg.feCfg.tdcOnset_fC,
49  toaLSB_ns = hgchebackDigitizer.digiCfg.feCfg.toaLSB_ns,
50  tofDelay = hgchebackDigitizer.tofDelay,
51  fCPerMIP = cms.vdouble(1.0,1.0,1.0) #dummy values, it's scintillator
52  ),
53 
54  HGCHFNoseConfig = cms.PSet(
55  isSiFE = cms.bool(False),
56  # adc information
57  adcNbits = hfnoseDigitizer.digiCfg.feCfg.adcNbits,
58  adcSaturation = hfnoseDigitizer.digiCfg.feCfg.adcSaturation_fC,
59  #tdc information
60  tdcNbits = hfnoseDigitizer.digiCfg.feCfg.tdcNbits,
61  tdcSaturation = hfnoseDigitizer.digiCfg.feCfg.tdcSaturation_fC,
62  tdcOnset = hfnoseDigitizer.digiCfg.feCfg.tdcOnset_fC,
63  toaLSB_ns = hfnoseDigitizer.digiCfg.feCfg.toaLSB_ns,
64  tofDelay = hfnoseDigitizer.tofDelay,
65  fCPerMIP = fCPerMIP_mpv
66  )
67 )
68 
69 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
70 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_mean )
71 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_mean )
72 
73 from Configuration.Eras.Modifier_phase2_hgcalV16_cff import phase2_hgcalV16
74 phase2_hgcalV16.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_mean )
75 phase2_hgcalV16.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_mean )
76 
77 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
78 phase2_hfnose.toModify( HGCalUncalibRecHit.HGCHFNoseConfig ,
79  isSiFE = True ,
80  fCPerMIP = fCPerMIP_mean
81 )
82 
83 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
84 ticl_v5.toModify(HGCalUncalibRecHit, computeLocalTime = cms.bool(True))