1 import FWCore.ParameterSet.Config
as cms
3 _common_BTLparameters = cms.PSet(
4 bxTime = cms.double(25),
5 LightYield = cms.double(40000.),
6 LightCollectionEff = cms.double(0.25),
7 PhotonDetectionEff = cms.double(0.20),
10 _barrel_MTDDigitizer = cms.PSet(
11 digitizerName = cms.string(
"BTLDigitizer"),
12 inputSimHits = cms.InputTag(
"g4SimHits:FastTimerHitsBarrel"),
13 digiCollectionTag = cms.string(
"FTLBarrel"),
14 maxSimHitsAccTime = cms.uint32(100),
15 premixStage1 = cms.bool(
False),
16 premixStage1MinCharge = cms.double(1e-4),
17 premixStage1MaxCharge = cms.double(1e6),
18 DeviceSimulation = cms.PSet(
19 _common_BTLparameters,
20 LightCollectionSlope = cms.double(0.075),
21 LCEpositionSlope = cms.double(0.071),
23 ElectronicsSimulation = cms.PSet(
24 _common_BTLparameters,
25 TestBeamMIPTimeRes = cms.double(4.293),
27 ScintillatorRiseTime = cms.double(1.1),
28 ScintillatorDecayTime = cms.double(40.),
29 ChannelTimeOffset = cms.double(0.),
30 smearChannelTimeOffset = cms.double(0.),
31 EnergyThreshold = cms.double(4.),
32 TimeThreshold1 = cms.double(20.),
33 TimeThreshold2 = cms.double(50.),
34 ReferencePulseNpe = cms.double(100.),
35 DarkCountRate = cms.double(10.),
36 SinglePhotonTimeResolution = cms.double(0.060),
37 SigmaElectronicNoise = cms.double(1.),
38 SigmaClock = cms.double(0.015),
39 CorrelationCoefficient = cms.double(1.),
40 SmearTimeForOOTtails = cms.bool(
True),
41 Npe_to_pC = cms.double(0.016),
42 Npe_to_V = cms.double(0.0064),
43 SigmaRelTOFHIRenergy = cms.vdouble(0.139,-4.35e-05,3.315e-09,-1.20e-13,1.67e-18),
46 adcNbits = cms.uint32(10),
48 tdcNbits = cms.uint32(10),
50 adcSaturation_MIP = cms.double(600.),
52 adcThreshold_MIP = cms.double(0.064),
54 toaLSB_ns = cms.double(0.020),
60 _endcap_MTDDigitizer = cms.PSet(
61 digitizerName = cms.string(
"ETLDigitizer"),
62 inputSimHits = cms.InputTag(
"g4SimHits:FastTimerHitsEndcap"),
63 digiCollectionTag = cms.string(
"FTLEndcap"),
64 maxSimHitsAccTime = cms.uint32(100),
65 premixStage1 = cms.bool(
False),
66 premixStage1MinCharge = cms.double(1e-4),
67 premixStage1MaxCharge = cms.double(1e6),
68 DeviceSimulation = cms.PSet(
69 bxTime = cms.double(25),
70 IntegratedLuminosity = cms.double(1000.0),
71 FluenceVsRadius = cms.string(
"1.937*TMath::Power(x,-1.706)"),
72 LGADGainVsFluence = cms.string(
"TMath::Min(15.,30.-x)"),
73 LGADGainDegradation = cms.string(
"TMath::Max(1.0, TMath::Min(x, x + 0.05/0.01 * (x - 1) + y * (1 - x)/0.01))"),
74 applyDegradation = cms.bool(
False),
75 tofDelay = cms.double(1),
76 meVPerMIP = cms.double(0.085),
77 MPVMuon = cms.string(
"1.21561e-05 + 8.89462e-07 / (x * x)"),
78 MPVPion = cms.string(
"1.24531e-05 + 7.16578e-07 / (x * x)"),
79 MPVKaon = cms.string(
"1.20998e-05 + 2.47192e-06 / (x * x * x)"),
80 MPVElectron = cms.string(
"1.30030e-05 + 1.55166e-07 / (x * x)"),
81 MPVProton = cms.string(
"1.13666e-05 + 1.20093e-05 / (x * x)")
83 ElectronicsSimulation = cms.PSet(
84 bxTime = cms.double(25),
85 IntegratedLuminosity = cms.double(1000.),
87 adcNbits = cms.uint32(8),
89 tdcNbits = cms.uint32(11),
91 adcSaturation_MIP = cms.double(100),
93 adcThreshold_MIP = cms.double(0.025),
94 iThreshold_MIP = cms.double(0.9525),
96 toaLSB_ns = cms.double(0.013),
97 referenceChargeColl = cms.double(1.0),
98 noiseLevel = cms.double(0.3554),
99 sigmaDistorsion = cms.double(0.0),
100 sigmaTDC = cms.double(0.010),
101 formulaLandauNoise = cms.string(
"TMath::Max(0.020, 0.020 * (0.35 * (x - 1.0) + 1.0))")
105 from Configuration.Eras.Modifier_phase2_etlV4_cff
import phase2_etlV4
106 phase2_etlV4.toModify(_endcap_MTDDigitizer.DeviceSimulation, meVPerMIP = 0.015 )
108 from Configuration.ProcessModifiers.premix_stage1_cff
import premix_stage1
109 for _m
in [_barrel_MTDDigitizer, _endcap_MTDDigitizer]:
110 premix_stage1.toModify(_m, premixStage1 =
True)
113 mtdDigitizer = cms.PSet(
114 accumulatorType = cms.string(
"MTDDigiProducer"),
115 makeDigiSimLinks = cms.bool(
False),
116 verbosity = cms.untracked.uint32(0),
118 barrelDigitizer = _barrel_MTDDigitizer,
119 endcapDigitizer = _endcap_MTDDigitizer