File indexing completed on 2024-04-06 12:30:51
0001
0002
0003
0004 import FWCore.ParameterSet.Config as cms
0005
0006 from Configuration.StandardSequences.Eras import eras
0007 process = cms.Process('RECO',eras.Run2_2017)
0008
0009
0010 process.load('Configuration.StandardSequences.Services_cff')
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.load("Configuration.EventContent.EventContent_cff")
0013 process.load('Configuration.StandardSequences.MagneticField_cff')
0014 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0015 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0016 process.load('Configuration.StandardSequences.GeometryDB_cff')
0017 process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi")
0018
0019 """
0020 process.GlobalTag.toGet = cms.VPSet(
0021 cms.PSet(record = cms.string("GeometryFileRcd"),
0022 tag = cms.string("XMLFILE_Geometry_110YV3_Extended2017CTPPS_mc"),
0023 connect = cms.string("sqlite_file:PPS_geometry_DB.db")
0024 )
0025 )
0026 process.XMLFromDBSource.label=''
0027 """
0028
0029 process.maxEvents = cms.untracked.PSet(
0030 input = cms.untracked.int32(-1)
0031 )
0032
0033 process.source = cms.Source("EmptyIOVSource",
0034 timetype = cms.string('runnumber'),
0035 firstValue = cms.uint64(1),
0036 lastValue = cms.uint64(1),
0037 interval = cms.uint64(1)
0038 )
0039
0040
0041 process.source = cms.Source("PoolSource",
0042 fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW2017.root'),
0043 secondaryFileNames = cms.untracked.vstring()
0044 )
0045
0046
0047 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )
0048
0049 process.options = cms.untracked.PSet(
0050 SkipEvent = cms.untracked.vstring('ProductNotFound')
0051 )
0052
0053
0054
0055 process.output = cms.OutputModule("PoolOutputModule",
0056 fileName = cms.untracked.string('step3_RAW2DIGI_RECO2017.root'),
0057 outputCommands = cms.untracked.vstring("drop *","keep SimVertexs_g4SimHits_*_*","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*')
0058 )
0059
0060
0061
0062
0063 from Configuration.AlCa.GlobalTag import GlobalTag
0064 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')
0065
0066 """
0067 process.GlobalTag.toGet = cms.VPSet(
0068 cms.PSet(
0069 record = cms.string('CTPPSPixelGainCalibrationsRcd'),
0070 tag = cms.string("CTPPSPixelGainCalibrations_mc"),
0071 connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0072 ),
0073 cms.PSet(
0074 record = cms.string('CTPPSPixelAnalysisMaskRcd'),
0075 tag = cms.string("CTPPSPixelAnalysisMask_mc"),
0076 label = cms.untracked.string(""),
0077 connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0078 ),
0079 cms.PSet(
0080 record = cms.string('CTPPSPixelDAQMappingRcd'),
0081 tag = cms.string("CTPPSPixelDAQMapping_mc"),
0082 connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0083 )
0084 )
0085 """
0086
0087 process.load('CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi')
0088 process.totemDAQMappingESSourceXML.configuration = cms.VPSet(
0089 cms.PSet(
0090 validityRange = cms.EventRange("1:min - 999999999:max"),
0091 mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2017.xml"),
0092 maskFileNames = cms.vstring()
0093 )
0094 )
0095
0096
0097 process.load('Configuration.StandardSequences.RawToDigi_cff')
0098
0099
0100 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
0101 totemRPRawToDigi.RawToDigi.testID = cms.uint32(1)
0102
0103 from RecoPPS.Local.totemRPLocalReconstruction_cff import totemRPLocalReconstruction
0104 process.load('RecoPPS.Local.totemRPLocalReconstruction_cff')
0105 from RecoPPS.Local.ctppsPixelLocalReconstruction_cff import ctppsPixelLocalReconstruction
0106 process.load('RecoPPS.Local.ctppsPixelLocalReconstruction_cff')
0107
0108
0109 process.raw2digi_step = cms.Path(process.ctppsRawToDigi)
0110 process.reco_step = cms.Path(process.totemRPLocalReconstruction*process.ctppsPixelLocalReconstruction)
0111 process.endjob_step = cms.EndPath(process.endOfProcess)
0112 process.output_step = cms.EndPath(process.output)
0113
0114
0115 process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step)
0116
0117
0118 for path in process.paths:
0119
0120 getattr(process,path)._seq = getattr(process,path)._seq
0121