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, hfnoseDigitizer
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  HGCHFNosedigiCollection = cms.InputTag('hfnoseDigis:HFNose'),
19  HGCHFNosehitCollection = cms.string('HGCHFNoseUncalibRecHits'),
20 
21  HGCEEConfig = cms.PSet(
22  isSiFE = cms.bool(True),
23  # adc information
24  adcNbits = hgceeDigitizer.digiCfg.feCfg.adcNbits,
25  adcSaturation = hgceeDigitizer.digiCfg.feCfg.adcSaturation_fC,
26  #tdc information
27  tdcNbits = hgceeDigitizer.digiCfg.feCfg.tdcNbits,
28  tdcSaturation = hgceeDigitizer.digiCfg.feCfg.tdcSaturation_fC,
29  tdcOnset = hgceeDigitizer.digiCfg.feCfg.tdcOnset_fC,
30  toaLSB_ns = hgceeDigitizer.digiCfg.feCfg.toaLSB_ns,
31  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
32  ),
33 
34  HGCHEFConfig = cms.PSet(
35  isSiFE = cms.bool(True),
36  # adc information
37  adcNbits = hgchefrontDigitizer.digiCfg.feCfg.adcNbits,
38  adcSaturation = hgchefrontDigitizer.digiCfg.feCfg.adcSaturation_fC,
39  #tdc information
40  tdcNbits = hgchefrontDigitizer.digiCfg.feCfg.tdcNbits,
41  tdcSaturation = hgchefrontDigitizer.digiCfg.feCfg.tdcSaturation_fC,
42  tdcOnset = hgchefrontDigitizer.digiCfg.feCfg.tdcOnset_fC,
43  toaLSB_ns = hgchefrontDigitizer.digiCfg.feCfg.toaLSB_ns,
44  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
45  ),
46 
47  HGCHEBConfig = cms.PSet(
48  isSiFE = cms.bool(True),
49  # adc information
50  adcNbits = hgchebackDigitizer.digiCfg.feCfg.adcNbits,
51  adcSaturation = hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC,
52  #tdc information
53  tdcNbits = hgchebackDigitizer.digiCfg.feCfg.tdcNbits,
54  tdcSaturation = hgchebackDigitizer.digiCfg.feCfg.tdcSaturation_fC,
55  tdcOnset = hgchebackDigitizer.digiCfg.feCfg.tdcOnset_fC,
56  toaLSB_ns = hgchebackDigitizer.digiCfg.feCfg.toaLSB_ns,
57  fCPerMIP = cms.vdouble(1.0,1.0,1.0) #dummy values, it's scintillator
58  ),
59 
60  HGCHFNoseConfig = cms.PSet(
61  isSiFE = cms.bool(False),
62  # adc information
63  adcNbits = hfnoseDigitizer.digiCfg.feCfg.adcNbits,
64  adcSaturation = hfnoseDigitizer.digiCfg.feCfg.adcSaturation_fC,
65  #tdc information
66  tdcNbits = hfnoseDigitizer.digiCfg.feCfg.tdcNbits,
67  tdcSaturation = hfnoseDigitizer.digiCfg.feCfg.tdcSaturation_fC,
68  tdcOnset = hfnoseDigitizer.digiCfg.feCfg.tdcOnset_fC,
69  toaLSB_ns = hfnoseDigitizer.digiCfg.feCfg.toaLSB_ns,
70  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
71  ),
72 
73  algo = cms.string("HGCalUncalibRecHitWorkerWeights")
74 )
75 
76 from Configuration.Eras.Modifier_phase2_hgcalV9_cff import phase2_hgcalV9
77 phase2_hgcalV9.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_v9 )
78 phase2_hgcalV9.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_v9 )
79 
80 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
81 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_v10 )
82 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_v10 )
83 
84 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
85 phase2_hfnose.toModify( HGCalUncalibRecHit.HGCHFNoseConfig ,
86  isSiFE = True ,
87  fCPerMIP = fCPerMIP_v9
88 )
hgcalDigitizer_cfi