CMS 3D CMS Logo

PPSTransport_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 g4SimHits.Generator.MinEtaCut = cms.double(-13.0)
4 g4SimHits.Generator.MaxEtaCut = cms.double( 13.0)
5 g4SimHits.Generator.HepMCProductLabel = 'LHCTransport'
6 g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)
7 g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)
8 
9 from IOMC.RandomEngine.IOMC_cff import *
10 RandomNumberGeneratorService.LHCTransport.engineName = cms.untracked.string('TRandom3')
11 
12 #
13 # to avoid higher level moodules to import uneeded objects, import module as _module
14 #
15 from SimTransport.PPSProtonTransport.CommonParameters_cfi import commonParameters as _commonParameters
16 from SimTransport.PPSProtonTransport.HectorTransport_cfi import hector_2016 as _hector_2016
17 from SimTransport.PPSProtonTransport.TotemTransport_cfi import totemTransportSetup_2016 as _totemTransportSetup_2016
18 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2016 as _opticalfunctionsTransportSetup_2016
19 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2017 as _opticalfunctionsTransportSetup_2017
20 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2018 as _opticalfunctionsTransportSetup_2018
21 from SimTransport.PPSProtonTransport.OpticalFunctionsConfig_cfi import opticalfunctionsTransportSetup_2021 as _opticalfunctionsTransportSetup_2021
22 
23 _LHCTransportPSet = cms.PSet()
24 
25 # so far, it is not yet defined the optic for 2017 and 2018, if needed, change the config for these year to the 2016 one
26 
27 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
28 #ctpps_2016.toReplaceWith(LHCTransportPSet, _totemTransportSetup_2016)
29 ctpps_2016.toReplaceWith(_LHCTransportPSet, _opticalfunctionsTransportSetup_2016.optics_parameters)
30 
31 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
32 ctpps_2017.toReplaceWith(_LHCTransportPSet, _opticalfunctionsTransportSetup_2017.optics_parameters)
33 
34 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
35 ctpps_2018.toReplaceWith(_LHCTransportPSet, _opticalfunctionsTransportSetup_2018.optics_parameters)
36 
37 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
38 ctpps_2021.toReplaceWith(_LHCTransportPSet, _opticalfunctionsTransportSetup_2021.optics_parameters)
39 
40 LHCTransport = cms.EDProducer("PPSSimTrackProducer",_commonParameters,_LHCTransportPSet)
g4SimHits_cfi
IOMC_cff
OpticalFunctionsConfig_cfi