import FWCore.ParameterSet.Config as cms from Validation.CTPPS.simu_config.base_cff import * import CalibPPS.ESProducers.ppsAssociationCuts_non_DB_cff as ac ac.use_single_infinite_iov_entry(ac.ppsAssociationCutsESSource, ac.p2022) from CalibPPS.ESProducers.ctppsOpticalFunctions_non_DB_cff import optics_2022 as selected_optics # base profile settings for 2022 profile_base_2022 = profile_base.clone( ctppsLHCInfo=dict(beamEnergy=7000), ctppsOpticalFunctions=dict( opticalFunctions=selected_optics.opticalFunctions, scoringPlanes=selected_optics.scoringPlanes, ), ctppsDirectSimuData=dict( empiricalAperture45=cms.string("1E3*([xi] - 0.20)"), empiricalAperture56=cms.string("1E3*([xi] - 0.20)"))) # adjust basic settings generator.energy = profile_base_2022.ctppsLHCInfo.beamEnergy from Geometry.VeryForwardGeometry.geometryRPFromDD_2022_cfi import * ctppsCompositeESSource.compactViewTag = ctppsGeometryESModule.compactViewTag del ctppsGeometryESModule # this functionality is replaced by the composite ES source # local reconstruction ctppsLocalTrackLiteProducer.includeStrips = False ctppsLocalTrackLiteProducer.includePixels = True ctppsLocalTrackLiteProducer.includeDiamonds = True
import FWCore.ParameterSet.Config as cms from CalibPPS.ESProducers.ctppsCompositeESSource_cfi import ctppsCompositeESSource as _esComp from CalibPPS.ESProducers.ppsAssociationCuts_non_DB_cff import use_single_infinite_iov_entry, p2022 from CalibPPS.ESProducers.ppsAssociationCuts_non_DB_cff import ppsAssociationCutsESSource as _esAssCuts from Geometry.VeryForwardGeometry.commons_cff import cloneGeometry from SimPPS.DirectSimProducer.profiles_2022_cff import profile_2022_default from SimPPS.DirectSimProducer.simPPS2017_cfi import rpIds ppsAssociationCutsESSource = _esAssCuts.clone() use_single_infinite_iov_entry(ppsAssociationCutsESSource, p2022) XMLIdealGeometryESSource_CTPPS, _ctppsGeometryESModule = cloneGeometry('Geometry.VeryForwardGeometry.geometryRPFromDD_2022_cfi') # not cloning the ctppsGeometryESModule, as it is replaced by the composite ES source ctppsCompositeESSource = _esComp.clone( generateEveryNEvents = 100, periods = [profile_2022_default], # geometry (using 2017 here is OK) compactViewTag = _ctppsGeometryESModule.compactViewTag, isRun2 = _ctppsGeometryESModule.isRun2 )