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 _opticalfunctionsTransportSetup_2016_preTS2 =cms.PSet(
129 opticalFunctionConfig = _config_2016_preTS2.opticalFunctionConfig,
130 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2016_preTS2.optics_parameters)
133 _opticalfunctionsTransportSetup_2016_postTS2 =cms.PSet(
134 opticalFunctionConfig = _config_2016_postTS2.opticalFunctionConfig,
135 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2016_postTS2.optics_parameters)
138 _opticalfunctionsTransportSetup_2017_preTS2 =cms.PSet(
139 opticalFunctionConfig = _config_2017_preTS2.opticalFunctionConfig,
140 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2017_preTS2.optics_parameters)
143 _opticalfunctionsTransportSetup_2017_postTS2 =cms.PSet(
144 opticalFunctionConfig = _config_2017_postTS2.opticalFunctionConfig,
145 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2017_postTS2.optics_parameters)
148 opticalfunctionsTransportSetup_2018 =cms.PSet(
149 opticalFunctionConfig = _config_2018.opticalFunctionConfig,
150 optics_parameters = cms.PSet(_baseOpticalFunctionsParameters, _config_2018.optics_parameters)
154 opticalfunctionsTransportSetup_2016 = _opticalfunctionsTransportSetup_2016_preTS2.clone()
155 opticalfunctionsTransportSetup_2017 = _opticalfunctionsTransportSetup_2017_preTS2.clone()
156 opticalfunctionsTransportSetup_2021 = opticalfunctionsTransportSetup_2018.clone()