SimTransport
PPSProtonTransport
python
PPSTransportESSources_cfi.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
2
3
# beam optics
4
from
CalibPPS.ESProducers.ctppsBeamParametersFromLHCInfoESSource_cfi
import
*
5
from
CalibPPS.ESProducers.ctppsInterpolatedOpticalFunctionsESSource_cfi
import
*
6
ctppsInterpolatedOpticalFunctionsESSource.lhcInfoLabel =
""
7
8
9
# For optical functions from root file, when they are not yet in the database, use the definitino below
10
"""
11
from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import *
12
13
_opticsConfig = cms.PSet(
14
defaultCrossingAngle=cms.double(0.0),
15
es_source = cms.PSet()
16
)
17
18
from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
19
ctpps_2016.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2016.opticalFunctionConfig)
20
21
from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
22
ctpps_2017.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2017.opticalFunctionConfig)
23
24
from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
25
ctpps_2018.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2018.opticalFunctionConfig)
26
27
from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
28
ctpps_2021.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2021.opticalFunctionConfig)
29
30
ctppsBeamParametersESSource.halfXangleX45 = _opticsConfig.defaultCrossingAngle
31
ctppsBeamParametersESSource.halfXangleX56 = _opticsConfig.defaultCrossingAngle
32
ctppsOpticalFunctionsESSource.configuration.append(_opticsConfig.es_source)
33
# clean up to avoid spreading uneeded modules up in the configuration chain
34
del _opticsConfig
35
del opticalfunctionsTransportSetup_2016
36
del opticalfunctionsTransportSetup_2018
37
del opticalfunctionsTransportSetup_2017
38
del opticalfunctionsTransportSetup_2021
39
"""
ctppsBeamParametersFromLHCInfoESSource_cfi
ctppsInterpolatedOpticalFunctionsESSource_cfi
add 2016 pre-TS2 configuration config_2016_preTS2 = cms.PSet( validityRange = cms....
Generated for CMSSW Reference Manual by
1.8.16