Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-04 22:45:24

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C10_cff import Phase2C10
0004 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0005 from Configuration.ProcessModifiers.gpu_cff import gpu
0006 from Configuration.ProcessModifiers.gpuValidationEcal_cff import gpuValidationEcal
0007 
0008 process = cms.Process('RECO',Phase2C10,phase2_ecal_devel, gpu, gpuValidationEcal)
0009 
0010 # import of standard configurations
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0016 process.load('Configuration.Geometry.GeometryExtended2026D60Reco_cff')
0017 process.load('Configuration.StandardSequences.MagneticField_cff')
0018 process.load('Configuration.StandardSequences.RawToDigi_cff')
0019 process.load('Configuration.StandardSequences.L1Reco_cff')
0020 process.load('Configuration.StandardSequences.Reconstruction_cff')
0021 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0022 process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
0023 process.load('RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitPhase2_cff')
0024 process.load('RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(100),
0028     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0029 )
0030 
0031 process.load('HLTrigger.Timer.FastTimerService_cfi')
0032 process.FastTimerService.enableDQM = False
0033 process.FastTimerService.printRunSummary = False
0034 process.FastTimerService.printJobSummary = True
0035 process.FastTimerService.writeJSONSummary = True
0036 process.FastTimerService.jsonFileName = 'resources.json'
0037 process.MessageLogger.FastReport = cms.untracked.PSet()
0038 
0039 
0040 
0041 # Input source
0042 process.source = cms.Source("PoolSource",
0043     fileNames = cms.untracked.vstring('/store/group/dpg_ecal/comm_ecal/upgrade/Phase2CMSSW///RelValTTbar_14TeV_ecaldigi_123X_mcRun4_realistic_v3_2026D77noPU-v1.root'),
0044     secondaryFileNames = cms.untracked.vstring()
0045 )
0046 
0047 process.options = cms.untracked.PSet(
0048     FailPath = cms.untracked.vstring(),
0049     IgnoreCompletely = cms.untracked.vstring(),
0050     Rethrow = cms.untracked.vstring(),
0051     SkipEvent = cms.untracked.vstring(),
0052     allowUnscheduled = cms.obsolete.untracked.bool,
0053     canDeleteEarly = cms.untracked.vstring(),
0054     emptyRunLumiMode = cms.obsolete.untracked.string,
0055     eventSetup = cms.untracked.PSet(
0056         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0057             allowAnyLabel_=cms.required.untracked.uint32
0058         ),
0059         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0060     ),
0061     fileMode = cms.untracked.string('FULLMERGE'),
0062     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0063     makeTriggerResults = cms.obsolete.untracked.bool,
0064     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0065     numberOfConcurrentRuns = cms.untracked.uint32(1),
0066     numberOfStreams = cms.untracked.uint32(0),
0067     numberOfThreads = cms.untracked.uint32(1),
0068     printDependencies = cms.untracked.bool(False),
0069     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0070     throwIfIllegalParameter = cms.untracked.bool(True),
0071     wantSummary = cms.untracked.bool(True)
0072 )
0073 
0074 # Production Info
0075 process.configurationMetadata = cms.untracked.PSet(
0076     annotation = cms.untracked.string('step3GPU nevts:10'),
0077     name = cms.untracked.string('Applications'),
0078     version = cms.untracked.string('$Revision: 1.19 $')
0079 )
0080 
0081 # Set up the DQM GPU validation task
0082 process.ecalMonitorTaskEcalOnly.workers = ["GpuTask"]
0083 process.ecalMonitorTaskEcalOnly.collectionTags.EBCpuUncalibRecHit = "ecalUncalibRecHitPhase2@cpu:EcalUncalibRecHitsEB"
0084 process.ecalMonitorTaskEcalOnly.collectionTags.EBGpuUncalibRecHit = "ecalUncalibRecHitPhase2@cuda:EcalUncalibRecHitsEB"
0085 
0086 # Output definition
0087 outputCommand = process.FEVTDEBUGHLTEventContent.outputCommands
0088 outputCommand.append('keep *_ecalUncalibRecHitPhase2*_*_RECO')
0089 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0090     dataset = cms.untracked.PSet(
0091         dataTier = cms.untracked.string('GEN-SIM-RECO'),
0092         filterName = cms.untracked.string('')
0093     ),
0094     fileName = cms.untracked.string('file:step3GPU.root'),
0095     outputCommands = outputCommand,
0096     splitLevel = cms.untracked.int32(0)
0097 )
0098 
0099 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0100     dataset = cms.untracked.PSet(
0101         dataTier = cms.untracked.string('DQMIO'),
0102         filterName = cms.untracked.string('')
0103     ),
0104     fileName = cms.untracked.string('file:step3GPU_inDQM.root'),
0105     outputCommands = process.DQMEventContent.outputCommands,
0106     splitLevel = cms.untracked.int32(0)
0107 )
0108 
0109 # Additional output definition
0110 
0111 # Other statements
0112 from Configuration.AlCa.GlobalTag import GlobalTag
0113 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '')
0114 
0115 # Path and EndPath definitions
0116 process.L1Reco_step = cms.Path(process.L1Reco)
0117 process.reconstruction_step = cms.Path(cms.Sequence(cms.Task(
0118     process.bunchSpacingProducer,
0119     process.ecalUncalibRecHitPhase2Task
0120 )))
0121 process.dqmoffline_step = cms.EndPath(process.DQMOfflineEcalOnly)
0122 
0123 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0124 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0125 
0126 # Schedule definition
0127 process.schedule = cms.Schedule(process.L1Reco_step,process.reconstruction_step,process.dqmoffline_step,process.FEVTDEBUGHLToutput_step,process.DQMoutput_step)
0128 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0129 associatePatAlgosToolsTask(process)
0130 
0131 
0132 
0133 # Customisation from command line
0134 
0135 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0136 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0137 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0138 
0139 # Add early deletion of temporary data products to reduce peak memory need
0140 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0141 process = customiseEarlyDelete(process)
0142 # End adding early deletion