CMS 3D CMS Logo

PPSTransport_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # to avoid higher level moodules to import uneeded objects, import module as _module
5 #
6 from SimTransport.PPSProtonTransport.CommonParameters_cfi import commonParameters as _commonParameters
7 from SimTransport.PPSProtonTransport.HectorTransport_cfi import hector_2016 as _hector_2016
8 from SimTransport.PPSProtonTransport.HectorTransport_cfi import hector_2016 as _hector_2017
9 from SimTransport.PPSProtonTransport.HectorTransport_cfi import hector_2016 as _hector_2018
10 from SimTransport.PPSProtonTransport.HectorTransport_cfi import hector_2021 as _hector_2021
11 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2016 as _opticalfunctionsTransportSetup_2016
12 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2017 as _opticalfunctionsTransportSetup_2017
13 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2018 as _opticalfunctionsTransportSetup_2018
14 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2021 as _opticalfunctionsTransportSetup_2021
15 
16 _LHCTransportPSet = cms.PSet()
17 
18 # To configure the optical function parameter, use _opticalfunctionsTransportSetup_XXXX.es_source
19 
20 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
21 ctpps_2016.toReplaceWith(_LHCTransportPSet, _hector_2016)
22 
23 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
24 ctpps_2017.toReplaceWith(_LHCTransportPSet, _hector_2017)
25 
26 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
27 ctpps_2018.toReplaceWith(_LHCTransportPSet,_hector_2018)
28 #ctpps_2018.toReplaceWith(_LHCTransportPSet,_opticalfunctionsTransportSetup_2018)
29 
30 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
31 #ctpps_2021.toReplaceWith(_LHCTransportPSet, _hector_2021) # there is no LHCInfo tag for Run3 yet, force to use a nonDB propagation
32 ctpps_2021.toReplaceWith(_LHCTransportPSet, _opticalfunctionsTransportSetup_2021) # there is no LHCInfo tag for Run3 yet, force to use a nonDB propagation
33 
34 LHCTransport = cms.EDProducer("PPSSimTrackProducer",_commonParameters,_LHCTransportPSet)