1 import FWCore.ParameterSet.Config
as cms
3 _baseOpticalFunctionsParameters = cms.PSet(
4 TransportMethod = cms.string(
'OpticalFunctions'),
5 ApplyZShift = cms.bool(
True),
6 lhcInfoLabel = cms.string(
""),
7 opticsLabel = cms.string(
""),
8 produceHitsRelativeToBeam = cms.bool(
True),
9 useEmpiricalApertures = cms.bool(
True)
12 _config_2016_preTS2 = cms.PSet(
13 opticalFunctionConfig = cms.PSet(
15 validityRange = cms.EventRange(
"0:min - 999999:max"),
16 opticalFunctions = cms.VPSet(
17 cms.PSet( xangle = cms.double(185), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2016_preTS2/version2/185urad.root") )
20 defaultCrossingAngle = cms.double(185.0)
22 optics_parameters = cms.PSet(
23 empiricalAperture45_xi0_int = cms.double(0.111),
24 empiricalAperture45_xi0_slp = cms.double(0.000E+00),
25 empiricalAperture45_a_int = cms.double(127.0),
26 empiricalAperture45_a_slp = cms.double(-0.000),
27 empiricalAperture56_xi0_int = cms.double(0.138),
28 empiricalAperture56_xi0_slp = cms.double(0.000E+00),
29 empiricalAperture56_a_int = cms.double(191.6),
30 empiricalAperture56_a_slp = cms.double(-0.000),
34 _config_2016_postTS2 = cms.PSet(
35 opticalFunctionConfig = cms.PSet(
37 validityRange = cms.EventRange(
"0:min - 999999:max"),
38 opticalFunctions = cms.VPSet(
39 cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2016_postTS2/version2/140urad.root") )
42 defaultCrossingAngle = cms.double(140.0)
44 optics_parameters = cms.PSet(
45 empiricalAperture45_xi0_int = cms.double(0.104),
46 empiricalAperture45_xi0_slp = cms.double(0.000E+00),
47 empiricalAperture45_a_int = cms.double(116.4),
48 empiricalAperture45_a_slp = cms.double(-0.000),
49 empiricalAperture56_xi0_int = cms.double(0.110),
50 empiricalAperture56_xi0_slp = cms.double(0.),
51 empiricalAperture56_a_int = cms.double(150.0),
52 empiricalAperture56_a_slp = cms.double(0.),
56 _config_2017_preTS2 = cms.PSet(
57 opticalFunctionConfig = cms.PSet(
59 validityRange = cms.EventRange(
"0:min - 999999:max"),
60 opticalFunctions = cms.VPSet(
61 cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2017/version4/120urad.root") ),
62 cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2017/version4/130urad.root") ),
63 cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2017/version4/140urad.root") )
66 defaultCrossingAngle = cms.double(140.0)
68 optics_parameters = cms.PSet(
69 empiricalAperture45_xi0_int = cms.double(0.066),
70 empiricalAperture45_xi0_slp = cms.double(3.536E-04),
71 empiricalAperture45_a_int = cms.double(47.7),
72 empiricalAperture45_a_slp = cms.double(0.447),
73 empiricalAperture56_xi0_int = cms.double(0.062),
74 empiricalAperture56_xi0_slp = cms.double(5.956E-04),
75 empiricalAperture56_a_int = cms.double(-31.9),
76 empiricalAperture56_a_slp = cms.double(1.323),
80 _config_2017_postTS2 = cms.PSet(
81 opticalFunctionConfig = cms.PSet(
83 validityRange = cms.EventRange(
"0:min - 999999:max"),
84 opticalFunctions = cms.VPSet(
85 cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2017/version4/120urad.root") ),
86 cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2017/version4/130urad.root") ),
87 cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2017/version4/140urad.root") )
90 defaultCrossingAngle = cms.double(140.0)
92 optics_parameters = cms.PSet(
93 empiricalAperture45_xi0_int = cms.double(0.073),
94 empiricalAperture45_xi0_slp = cms.double(4.107E-04),
95 empiricalAperture45_a_int = cms.double(39.0),
96 empiricalAperture45_a_slp = cms.double(0.768),
97 empiricalAperture56_xi0_int = cms.double(0.067),
98 empiricalAperture56_xi0_slp = cms.double(6.868E-04),
99 empiricalAperture56_a_int = cms.double(-50.2),
100 empiricalAperture56_a_slp = cms.double(1.740),
104 _config_2018 = cms.PSet(
105 opticalFunctionConfig = cms.PSet(
106 es_source = cms.PSet(
107 validityRange = cms.EventRange(
"0:min - 999999:max"),
108 opticalFunctions = cms.VPSet(
109 cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2018/version4/120urad.root") ),
110 cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2018/version4/130urad.root") ),
111 cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2018/version4/140urad.root") )
114 defaultCrossingAngle = cms.double(140.0)
116 optics_parameters = cms.PSet(
117 empiricalAperture45_xi0_int = cms.double(0.079),
118 empiricalAperture45_xi0_slp = cms.double(4.211E-04),
119 empiricalAperture45_a_int = cms.double(42.8),
120 empiricalAperture45_a_slp = cms.double(0.669),
121 empiricalAperture56_xi0_int = cms.double(0.074),
122 empiricalAperture56_xi0_slp = cms.double(6.604E-04),
123 empiricalAperture56_a_int = cms.double(-22.7),
124 empiricalAperture56_a_slp = cms.double(1.600),
128 _config_2021 = cms.PSet(
129 opticalFunctionConfig = cms.PSet(
130 es_source = cms.PSet(
131 validityRange = cms.EventRange(
"0:min - 999999:max"),
132 opticalFunctions = cms.VPSet(
133 cms.PSet( xangle = cms.double(110.444), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2021/version_pre3/110.444urad.root") ),
134 cms.PSet( xangle = cms.double(184.017), fileName = cms.FileInPath(
"CalibPPS/ESProducers/data/optical_functions/2021/version_pre3/184.017urad.root") )
137 defaultCrossingAngle = cms.double(0.0)
139 optics_parameters = cms.PSet(
140 empiricalAperture45_xi0_int = cms.double(0.079),
141 empiricalAperture45_xi0_slp = cms.double(4.211E-04),
142 empiricalAperture45_a_int = cms.double(42.8),
143 empiricalAperture45_a_slp = cms.double(0.669),
144 empiricalAperture56_xi0_int = cms.double(0.074),
145 empiricalAperture56_xi0_slp = cms.double(6.604E-04),
146 empiricalAperture56_a_int = cms.double(-22.7),
147 empiricalAperture56_a_slp = cms.double(1.600)
151 _opticalfunctionsTransportSetup_2016_preTS2 =cms.PSet(
152 opticalFunctionConfig = _config_2016_preTS2.opticalFunctionConfig,
153 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2016_preTS2.optics_parameters)
156 _opticalfunctionsTransportSetup_2016_postTS2 =cms.PSet(
157 opticalFunctionConfig = _config_2016_postTS2.opticalFunctionConfig,
158 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2016_postTS2.optics_parameters)
161 _opticalfunctionsTransportSetup_2017_preTS2 =cms.PSet(
162 opticalFunctionConfig = _config_2017_preTS2.opticalFunctionConfig,
163 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2017_preTS2.optics_parameters)
166 _opticalfunctionsTransportSetup_2017_postTS2 =cms.PSet(
167 opticalFunctionConfig = _config_2017_postTS2.opticalFunctionConfig,
168 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2017_postTS2.optics_parameters)
171 opticalfunctionsTransportSetup_2018 =cms.PSet(
172 _baseOpticalFunctionsParameters,
173 _config_2018.opticalFunctionConfig,
174 _config_2018.optics_parameters
177 opticalfunctionsTransportSetup_2021 =cms.PSet(
178 _baseOpticalFunctionsParameters,
179 _config_2021.opticalFunctionConfig,
180 _config_2021.optics_parameters
184 opticalfunctionsTransportSetup_2016 = _opticalfunctionsTransportSetup_2016_preTS2.clone()
185 opticalfunctionsTransportSetup_2017 = _opticalfunctionsTransportSetup_2017_preTS2.clone()