CMS 3D CMS Logo

mtdUncalibratedRecHits_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 
6 _barrelAlgo = cms.PSet(
7  algoName = cms.string("BTLUncalibRecHitAlgo"),
8  adcNbits = mtdDigitizer.barrelDigitizer.ElectronicsSimulation.adcNbits,
9  adcSaturation = mtdDigitizer.barrelDigitizer.ElectronicsSimulation.adcSaturation_MIP,
10  toaLSB_ns = mtdDigitizer.barrelDigitizer.ElectronicsSimulation.toaLSB_ns,
11  timeResolutionInNs = cms.string("0.308*pow(x,-0.4175)"), # [ns]
12  timeCorr_p0 = cms.double( 2.21103),
13  timeCorr_p1 = cms.double(-0.933552),
14  timeCorr_p2 = cms.double( 0.),
15  c_LYSO = cms.double(13.846235) # in unit cm/ns
16 )
17 
18 
19 _endcapAlgo = cms.PSet(
20  algoName = cms.string("ETLUncalibRecHitAlgo"),
21  adcNbits = mtdDigitizer.endcapDigitizer.ElectronicsSimulation.adcNbits,
22  adcSaturation = mtdDigitizer.endcapDigitizer.ElectronicsSimulation.adcSaturation_MIP,
23  toaLSB_ns = mtdDigitizer.endcapDigitizer.ElectronicsSimulation.toaLSB_ns,
24  tofDelay = mtdDigitizer.endcapDigitizer.DeviceSimulation.tofDelay,
25  timeResolutionInNs = cms.string("0.039") # [ns]
26 )
27 
28 
29 mtdUncalibratedRecHits = cms.EDProducer(
30  "MTDUncalibratedRecHitProducer",
31  barrel = _barrelAlgo,
32  endcap = _endcapAlgo,
33  barrelDigis = cms.InputTag('mix:FTLBarrel'),
34  endcapDigis = cms.InputTag('mix:FTLEndcap'),
35  BarrelHitsName = cms.string('FTLBarrel'),
36  EndcapHitsName = cms.string('FTLEndcap')
37 )
38 
39 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
40 premix_stage2.toModify(mtdUncalibratedRecHits,
41  barrelDigis = 'mixData:FTLBarrel',
42  endcapDigis = 'mixData:FTLEndcap',
43 )