CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_v10 = 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  HGCHFNosedigiCollection = cms.InputTag('hfnoseDigis:HFNose'),
17  HGCHFNosehitCollection = cms.string('HGCHFNoseUncalibRecHits'),
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(True),
47  # adc information
48  adcNbits = hgchebackDigitizer.digiCfg.feCfg.adcNbits,
49  adcSaturation = hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC,
50  #tdc information
51  tdcNbits = hgchebackDigitizer.digiCfg.feCfg.tdcNbits,
52  tdcSaturation = hgchebackDigitizer.digiCfg.feCfg.tdcSaturation_fC,
53  tdcOnset = hgchebackDigitizer.digiCfg.feCfg.tdcOnset_fC,
54  toaLSB_ns = hgchebackDigitizer.digiCfg.feCfg.toaLSB_ns,
55  fCPerMIP = cms.vdouble(1.0,1.0,1.0) #dummy values, it's scintillator
56  ),
57 
58  HGCHFNoseConfig = cms.PSet(
59  isSiFE = cms.bool(False),
60  # adc information
61  adcNbits = hfnoseDigitizer.digiCfg.feCfg.adcNbits,
62  adcSaturation = hfnoseDigitizer.digiCfg.feCfg.adcSaturation_fC,
63  #tdc information
64  tdcNbits = hfnoseDigitizer.digiCfg.feCfg.tdcNbits,
65  tdcSaturation = hfnoseDigitizer.digiCfg.feCfg.tdcSaturation_fC,
66  tdcOnset = hfnoseDigitizer.digiCfg.feCfg.tdcOnset_fC,
67  toaLSB_ns = hfnoseDigitizer.digiCfg.feCfg.toaLSB_ns,
68  fCPerMIP = cms.vdouble(1.25,2.57,3.88) #100um, 200um, 300um
69  ),
70 
71  algo = cms.string("HGCalUncalibRecHitWorkerWeights")
72 )
73 
74 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
75 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCEEConfig , fCPerMIP = fCPerMIP_v10 )
76 phase2_hgcalV10.toModify( HGCalUncalibRecHit.HGCHEFConfig , fCPerMIP = fCPerMIP_v10 )
77 
78 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
79 phase2_hfnose.toModify( HGCalUncalibRecHit.HGCHFNoseConfig ,
80  isSiFE = True ,
81  fCPerMIP = fCPerMIP_v10
82 )