Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:26

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 from Configuration.StandardSequences.Eras import eras
0007 process = cms.Process('RECO',eras.Run2_2018)
0008 
0009 # import of standard configurations
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 #process.load("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2018_cfi")           # CMS frame
0019 
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(-1)
0023 )
0024 
0025 process.source = cms.Source("EmptyIOVSource",
0026     timetype = cms.string('runnumber'),
0027     firstValue = cms.uint64(1),
0028     lastValue = cms.uint64(1),
0029     interval = cms.uint64(1)
0030 )
0031 
0032 # Input source
0033 process.source = cms.Source("PoolSource",
0034     fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW2018.root'),
0035     secondaryFileNames = cms.untracked.vstring()
0036 )
0037 
0038 # Track memory leaks
0039 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )
0040 
0041 process.options = cms.untracked.PSet(
0042     SkipEvent = cms.untracked.vstring('ProductNotFound')
0043 )
0044 
0045 # Output definition
0046 
0047 process.output = cms.OutputModule("PoolOutputModule",
0048     fileName = cms.untracked.string('step3_RAW2DIGI_RECO2018.root'),
0049     outputCommands = cms.untracked.vstring("drop *","keep SimVertexs_g4SimHits_*_*","keep PSimHits*_*_*_*","keep CTPPS*_*_*_*","keep *_*RP*_*_*",'keep *_LHCTransport_*_*')
0050 )
0051 
0052 
0053 # Additional output definition
0054 # Other statements
0055 from Configuration.AlCa.GlobalTag import GlobalTag
0056 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '')
0057 process.GlobalTag.toGet = cms.VPSet(
0058     cms.PSet(
0059         record = cms.string('CTPPSPixelGainCalibrationsRcd'),
0060         #tag = cms.string("CTPPSPixelGainCalibrations_mc"),
0061         tag = cms.string("CTPPSPixelGainCalibrations_v1_mc"),
0062         connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0063         ),
0064     cms.PSet(
0065         record = cms.string('CTPPSPixelAnalysisMaskRcd'),
0066         tag = cms.string("CTPPSPixelAnalysisMask_v1_mc"),
0067         label = cms.untracked.string(""),
0068         connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0069         ),
0070     cms.PSet(
0071         record = cms.string('CTPPSPixelDAQMappingRcd'),
0072         tag = cms.string("CTPPSPixelDAQMapping_v1_mc"),
0073         connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0074         )
0075 )
0076 # modify CTPPS 2018 raw-to-digi modules ONLY FOR PARTICLE GUN, TO AVOID RUN THIS FOR THE WHOLE CMS
0077 process.load('Configuration.StandardSequences.RawToDigi_cff')
0078              
0079 # do not make testID for simulation - keeping the frame
0080 from EventFilter.CTPPSRawToDigi.totemRPRawToDigi_cfi import totemRPRawToDigi
0081 totemRPRawToDigi.RawToDigi.testID = cms.uint32(1)
0082 
0083 from RecoPPS.Local.totemRPLocalReconstruction_cff import totemRPLocalReconstruction
0084 process.load('RecoPPS.Local.totemRPLocalReconstruction_cff')
0085 from RecoPPS.Local.ctppsPixelLocalReconstruction_cff import ctppsPixelLocalReconstruction
0086 process.load('RecoPPS.Local.ctppsPixelLocalReconstruction_cff')
0087 
0088 # Path and EndPath definitions
0089 process.raw2digi_step = cms.Path(process.ctppsRawToDigi)
0090 process.reco_step = cms.Path(process.totemRPLocalReconstruction*process.ctppsPixelLocalReconstruction)
0091 process.endjob_step = cms.EndPath(process.endOfProcess)
0092 process.output_step = cms.EndPath(process.output)
0093 
0094 # Schedule definition
0095 process.schedule = cms.Schedule(process.raw2digi_step,process.reco_step,process.endjob_step,process.output_step)
0096 
0097 # filter all path with the production filter sequence
0098 for path in process.paths:
0099     #  getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq
0100     getattr(process,path)._seq = getattr(process,path)._seq
0101