CMS 3D CMS Logo

PPSTransportESSources_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # beam optics
4 from CondCore.CondDB.CondDB_cfi import *
7 ctppsInterpolatedOpticalFunctionsESSource.lhcInfoLabel = ""
8 
9 """
10 # For optical functions and LHCinfo not yet in a GT, use the definitino below
11 ppsTransportESSource = cms.ESSource("PoolDBESSource")
12 
13 _ppsESSource2021 = cms.ESSource("PoolDBESSource",
14  connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
15  timetype = cms.untracked.string('runnumber'),
16  toGet = cms.VPSet(
17  cms.PSet(
18  record = cms.string('LHCInfoRcd'),
19  tag = cms.string("LHCInfo_2021_mc_v1")
20  ),
21  cms.PSet(
22  record = cms.string('CTPPSOpticsRcd'),
23  tag = cms.string("PPSOpticalFunctions_2021_mc_v1")
24  )
25  )
26 )
27 
28 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
29 ctpps_2021.toReplaceWith(ppsTransportESSource,_ppsESSource2021)
30 del _ppsESSource2021
31 
32 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
33 ctpps_2016.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2016.opticalFunctionConfig)
34 
35 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
36 ctpps_2017.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2017.opticalFunctionConfig)
37 
38 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
39 ctpps_2018.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2018.opticalFunctionConfig)
40 
41 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
42 ctpps_2021.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2021.opticalFunctionConfig)
43 
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
48 del _opticsConfig
49 del opticalfunctionsTransportSetup_2016
50 del opticalfunctionsTransportSetup_2018
51 del opticalfunctionsTransportSetup_2017
52 del opticalfunctionsTransportSetup_2021
53 """
add 2016 pre-TS2 configuration config_2016_preTS2 = cms.PSet( validityRange = cms.EventRange("273725:min - 280385:max"),