CMS 3D CMS Logo

OpticalFunctionsConfig_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 _baseOpticalFunctionsParameters = cms.PSet(
4  TransportMethod = cms.string('OpticalFunctions'),
5  ApplyZShift = cms.bool(True),
6  lhcInfoLabel = cms.string(""),
7  opticsLabel = cms.string(""),
8  useEmpiricalApertures = cms.bool(False)
9 )
10 
11 _config_2016_preTS2 = cms.PSet(
12  opticalFunctionConfig = cms.PSet(
13  es_source = cms.PSet(
14  validityRange = cms.EventRange("0:min - 999999:max"),
15  opticalFunctions = cms.VPSet(
16  cms.PSet( xangle = cms.double(185), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2016_preTS2/version2/185urad.root") )
17  )
18  ),
19  defaultCrossingAngle = cms.double(185.0)
20  ),
21  optics_parameters = cms.PSet(
22  empiricalAperture45_xi0_int = cms.double(0.111),
23  empiricalAperture45_xi0_slp = cms.double(0.000E+00),
24  empiricalAperture45_a_int = cms.double(127.0),
25  empiricalAperture45_a_slp = cms.double(-0.000),
26  empiricalAperture56_xi0_int = cms.double(0.138),
27  empiricalAperture56_xi0_slp = cms.double(0.000E+00),
28  empiricalAperture56_a_int = cms.double(191.6),
29  empiricalAperture56_a_slp = cms.double(-0.000)
30  )
31 )
32 
33 _config_2016_postTS2 = cms.PSet(
34  opticalFunctionConfig = cms.PSet(
35  es_source = cms.PSet(
36  validityRange = cms.EventRange("0:min - 999999:max"),
37  opticalFunctions = cms.VPSet(
38  cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2016_postTS2/version2/140urad.root") )
39  )
40  ),
41  defaultCrossingAngle = cms.double(140.0)
42  ),
43  optics_parameters = cms.PSet(
44  empiricalAperture45_xi0_int = cms.double(0.104),
45  empiricalAperture45_xi0_slp = cms.double(0.000E+00),
46  empiricalAperture45_a_int = cms.double(116.4),
47  empiricalAperture45_a_slp = cms.double(-0.000),
48  empiricalAperture56_xi0_int = cms.double(0.110),
49  empiricalAperture56_xi0_slp = cms.double(0.),
50  empiricalAperture56_a_int = cms.double(150.0),
51  empiricalAperture56_a_slp = cms.double(0.)
52  )
53 )
54 
55 _config_2017_preTS2 = cms.PSet(
56  opticalFunctionConfig = cms.PSet(
57  es_source = cms.PSet(
58  validityRange = cms.EventRange("0:min - 999999:max"),
59  opticalFunctions = cms.VPSet(
60  cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2017/version4/120urad.root") ),
61  cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2017/version4/130urad.root") ),
62  cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2017/version4/140urad.root") )
63  )
64  ),
65  defaultCrossingAngle = cms.double(140.0)
66  ),
67  optics_parameters = cms.PSet(
68  empiricalAperture45_xi0_int = cms.double(0.066),
69  empiricalAperture45_xi0_slp = cms.double(3.536E-04),
70  empiricalAperture45_a_int = cms.double(47.7),
71  empiricalAperture45_a_slp = cms.double(0.447),
72  empiricalAperture56_xi0_int = cms.double(0.062),
73  empiricalAperture56_xi0_slp = cms.double(5.956E-04),
74  empiricalAperture56_a_int = cms.double(-31.9),
75  empiricalAperture56_a_slp = cms.double(1.323)
76  )
77 )
78 
79 _config_2017_postTS2 = cms.PSet(
80  opticalFunctionConfig = cms.PSet(
81  es_source = cms.PSet(
82  validityRange = cms.EventRange("0:min - 999999:max"),
83  opticalFunctions = cms.VPSet(
84  cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2017/version4/120urad.root") ),
85  cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2017/version4/130urad.root") ),
86  cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2017/version4/140urad.root") )
87  )
88  ),
89  defaultCrossingAngle = cms.double(140.0)
90  ),
91  optics_parameters = cms.PSet(
92  empiricalAperture45_xi0_int = cms.double(0.073),
93  empiricalAperture45_xi0_slp = cms.double(4.107E-04),
94  empiricalAperture45_a_int = cms.double(39.0),
95  empiricalAperture45_a_slp = cms.double(0.768),
96  empiricalAperture56_xi0_int = cms.double(0.067),
97  empiricalAperture56_xi0_slp = cms.double(6.868E-04),
98  empiricalAperture56_a_int = cms.double(-50.2),
99  empiricalAperture56_a_slp = cms.double(1.740)
100  )
101 )
102 
103 _config_2018 = cms.PSet(
104  opticalFunctionConfig = cms.PSet(
105  es_source = cms.PSet(
106  validityRange = cms.EventRange("0:min - 999999:max"),
107  opticalFunctions = cms.VPSet(
108  cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2018/version4/120urad.root") ),
109  cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2018/version4/130urad.root") ),
110  cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2018/version4/140urad.root") )
111  )
112  ),
113  defaultCrossingAngle = cms.double(140.0)
114  ),
115  optics_parameters = cms.PSet(
116  empiricalAperture45_xi0_int = cms.double(0.079),
117  empiricalAperture45_xi0_slp = cms.double(4.211E-04),
118  empiricalAperture45_a_int = cms.double(42.8),
119  empiricalAperture45_a_slp = cms.double(0.669),
120  empiricalAperture56_xi0_int = cms.double(0.074),
121  empiricalAperture56_xi0_slp = cms.double(6.604E-04),
122  empiricalAperture56_a_int = cms.double(-22.7),
123  empiricalAperture56_a_slp = cms.double(1.600)
124  )
125 )
126 
127 _config_2021 = cms.PSet(
128  opticalFunctionConfig = cms.PSet(
129  es_source = cms.PSet(
130  validityRange = cms.EventRange("0:min - 999999:max"),
131  opticalFunctions = cms.VPSet(
132  cms.PSet( xangle = cms.double(110.444), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2021/version_pre3/110.444urad.root") ),
133  cms.PSet( xangle = cms.double(184.017), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2021/version_pre3/184.017urad.root") )
134  )
135  ),
136  defaultCrossingAngle = cms.double(0.0)
137  ),
138  optics_parameters = cms.PSet(
139  empiricalAperture45_xi0_int = cms.double(0.079),
140  empiricalAperture45_xi0_slp = cms.double(4.211E-04),
141  empiricalAperture45_a_int = cms.double(42.8),
142  empiricalAperture45_a_slp = cms.double(0.669),
143  empiricalAperture56_xi0_int = cms.double(0.074),
144  empiricalAperture56_xi0_slp = cms.double(6.604E-04),
145  empiricalAperture56_a_int = cms.double(-22.7),
146  empiricalAperture56_a_slp = cms.double(1.600)
147  )
148 )
149 
150 _opticalfunctionsTransportSetup_2016_preTS2 =cms.PSet(
151  BeamEnergy=cms.double(6500),
152  opticalFunctionConfig = _config_2016_preTS2.opticalFunctionConfig,
153  optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2016_preTS2.optics_parameters)
154 )
155 
156 _opticalfunctionsTransportSetup_2016_postTS2 =cms.PSet(
157  BeamEnergy=cms.double(6500),
158  opticalFunctionConfig = _config_2016_postTS2.opticalFunctionConfig,
159  optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2016_postTS2.optics_parameters)
160 )
161 
162 _opticalfunctionsTransportSetup_2017_preTS2 =cms.PSet(
163  BeamEnergy=cms.double(6500),
164  opticalFunctionConfig = _config_2017_preTS2.opticalFunctionConfig,
165  optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2017_preTS2.optics_parameters)
166 )
167 
168 _opticalfunctionsTransportSetup_2017_postTS2 =cms.PSet(
169  BeamEnergy=cms.double(6500),
170  opticalFunctionConfig = _config_2017_postTS2.opticalFunctionConfig,
171  optics_parameters = cms.PSet(_baseOpticalFunctionsParameters,_config_2017_postTS2.optics_parameters)
172 )
173 
174 opticalfunctionsTransportSetup_2018 =cms.PSet(
175  _baseOpticalFunctionsParameters,
176  _config_2018.opticalFunctionConfig,
177  _config_2018.optics_parameters
178 )
179 
180 opticalfunctionsTransportSetup_2021 =cms.PSet(
181  _baseOpticalFunctionsParameters,
182  _config_2021.opticalFunctionConfig,
183  _config_2021.optics_parameters,
184  BeamEnergy=cms.double(7000)
185 )
186 
187 # Default setup
188 opticalfunctionsTransportSetup_2016 = _opticalfunctionsTransportSetup_2016_preTS2.clone()
189 opticalfunctionsTransportSetup_2017 = _opticalfunctionsTransportSetup_2017_preTS2.clone()