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 CalibPPS.ESProducers.ctppsBeamParametersFromLHCInfoESSource_cfi import *
7 
9 ctppsInterpolatedOpticalFunctionsESSource.lhcInfoLabel = ""
10 
12 
13 from CondCore.CondDB.CondDB_cfi import *
14 ppsDBESSource = cms.ESSource("PoolDBESSource",
15  label = cms.string(""),
16  validityRange = cms.EventRange("0:min - 999999:max"),
17  beamEnergy = cms.double(6500),
18  xangle = cms.double(-1),
19  timetype = cms.untracked.string('runnumber'),
20  DumpStat=cms.untracked.bool(False),
21  toGet = cms.VPSet(
22  cms.PSet(
23  record = cms.string('LHCInfoRcd'),
24  tag = cms.string("LHCInfoEndFill_prompt_v2"), # FrontierProd
25  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
26  ),
27  cms.PSet(
28  record = cms.string('CTPPSOpticsRcd'),
29  tag = cms.string("PPSOpticalFunctions_offline_v6"),
30  connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
31  )
32  )
33 )
34 es_prefer_ppsDBESSource = cms.ESPrefer("PoolDBESSource","ppsDBESSource")
35 
36 _opticsConfig = cms.PSet(
37  defaultCrossingAngle=cms.double(0.0),
38  es_source = cms.PSet()
39  )
40 
41 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
42 ctpps_2016.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2016.opticalFunctionConfig)
43 
44 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
45 ctpps_2017.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2017.opticalFunctionConfig)
46 
47 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
48 ctpps_2018.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2018.opticalFunctionConfig)
49 
50 from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021
51 ctpps_2021.toReplaceWith(_opticsConfig, opticalfunctionsTransportSetup_2021.opticalFunctionConfig)
52 
53 ctppsBeamParametersESSource.halfXangleX45 = _opticsConfig.defaultCrossingAngle
54 ctppsBeamParametersESSource.halfXangleX56 = _opticsConfig.defaultCrossingAngle
55 ctppsOpticalFunctionsESSource.configuration.append(_opticsConfig.es_source)
56 
57 # clean up to avoid spreading uneeded modules up in the configuration chain
58 del _opticsConfig
59 del opticalfunctionsTransportSetup_2016
60 del opticalfunctionsTransportSetup_2018
61 del opticalfunctionsTransportSetup_2017
62 del opticalfunctionsTransportSetup_2021
ctppsInterpolatedOpticalFunctionsESSource_cfi
add 2016 pre-TS2 configuration config_2016_preTS2 = cms.PSet( validityRange = cms....
ctppsOpticalFunctionsESSource_cfi
ctppsBeamParametersESSource_cfi
OpticalFunctionsConfig_cfi
CondDB_cfi