1 import FWCore.ParameterSet.Config
as cms
7 ctppsInterpolatedOpticalFunctionsESSource.lhcInfoLabel =
""
10 # For optical functions and LHCinfo not yet in a GT, use the definitino below
11 ppsTransportESSource = cms.ESSource("PoolDBESSource")
13 _ppsESSource2021 = cms.ESSource("PoolDBESSource",
14 connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
15 timetype = cms.untracked.string('runnumber'),
18 record = cms.string('LHCInfoRcd'),
19 tag = cms.string("LHCInfo_2021_mc_v1")
22 record = cms.string('CTPPSOpticsRcd'),
23 tag = cms.string("PPSOpticalFunctions_2021_mc_v1")
28 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
29 ctpps_2021.toReplaceWith(ppsTransportESSource,_ppsESSource2021)
32 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
33 ctpps_2016.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2016.opticalFunctionConfig)
35 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
36 ctpps_2017.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2017.opticalFunctionConfig)
38 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
39 ctpps_2018.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2018.opticalFunctionConfig)
41 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
42 ctpps_2021.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2021.opticalFunctionConfig)
44 ctppsBeamParametersESSource.halfXangleX45 = _opticsConfig.defaultCrossingAngle
45 ctppsBeamParametersESSource.halfXangleX56 = _opticsConfig.defaultCrossingAngle
46 ctppsOpticalFunctionsESSource.configuration.append(_opticsConfig.es_source)
47 # clean up to avoid spreading uneeded modules up in the configuration chain
49 del opticalfunctionsTransportSetup_2016
50 del opticalfunctionsTransportSetup_2018
51 del opticalfunctionsTransportSetup_2017
52 del opticalfunctionsTransportSetup_2021
add 2016 pre-TS2 configuration config_2016_preTS2 = cms.PSet( validityRange = cms.EventRange("273725:min - 280385:max"),