Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-11 03:35:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 
0005 process = cms.Process('ALCARECO',Run2_2018)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.RawToDigi_cff')
0016 process.load('Configuration.StandardSequences.Reconstruction_cff')
0017 process.load('Configuration.StandardSequences.AlCaRecoStreams_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 
0021 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000)
0022 if hasattr(process,'MessageLogger'):
0023     process.MessageLogger.HcalIsoTrackX=dict()
0024     process.MessageLogger.HcalIsoTrack=dict()
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(-1)
0028 )
0029 
0030 # Input source
0031 process.source = cms.Source("PoolSource",
0032     fileNames = cms.untracked.vstring(
0033         'file:/afs/cern.ch/user/h/huwang/work/public/for_Sunanda/RECO_data.root',
0034     ),
0035     secondaryFileNames = cms.untracked.vstring()
0036 )
0037 
0038 process.options = cms.untracked.PSet(
0039 
0040 )
0041 
0042 # Production Info
0043 process.configurationMetadata = cms.untracked.PSet(
0044     annotation = cms.untracked.string('reco_MC nevts:100'),
0045     name = cms.untracked.string('Applications'),
0046     version = cms.untracked.string('$Revision: 1.19 $')
0047 )
0048 
0049 # Output definition
0050 process.ALCARECOStreamHcalCalIsoTrkFilter = cms.OutputModule("PoolOutputModule",
0051     SelectEvents = cms.untracked.PSet(
0052         SelectEvents = cms.vstring('pathALCARECOHcalCalIsoTrkFilterNoHLT')
0053     ),
0054     dataset = cms.untracked.PSet(
0055         dataTier = cms.untracked.string('ALCARECO'),
0056         filterName = cms.untracked.string('ALCARECOHcalCalIsoTrkFilterNoHLT')
0057     ),
0058     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0059     outputCommands = process.OutALCARECOHcalCalIsoTrkFilter.outputCommands,
0060     fileName = cms.untracked.string('oldPoolOutput.root'),
0061 )
0062 
0063 # Additional output definition
0064 
0065 # Other statements
0066 from Configuration.AlCa.GlobalTag import GlobalTag
0067 process.GlobalTag = GlobalTag(process.GlobalTag, '106X_upgrade2018_realistic_v11_L1v1', '')
0068 
0069 # Path and EndPath definitions
0070 process.raw2digi_step = cms.Path(process.RawToDigi)
0071 process.reconstruction_step = cms.Path(process.reconstruction)
0072 process.endjob_step = cms.EndPath(process.endOfProcess)
0073 process.ALCARECOStreamHcalCalIsoTrkFilterOutPath = cms.EndPath(process.ALCARECOStreamHcalCalIsoTrkFilter)
0074 
0075 process.alcaIsoTracksFilter.debugEvents = [640818633, 640797426, 641251898,
0076                                            641261804, 641172007, 641031809]
0077 
0078 # Schedule definition
0079 process.schedule = cms.Schedule(process.pathALCARECOHcalCalIsoTrkFilterNoHLT,process.endjob_step,process.ALCARECOStreamHcalCalIsoTrkFilterOutPath)
0080 
0081 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0082 associatePatAlgosToolsTask(process)
0083 
0084 #Setup FWK for multithreaded
0085 process.options.numberOfThreads=cms.untracked.uint32(1)
0086 process.options.numberOfStreams=cms.untracked.uint32(0)
0087 process.options.numberOfConcurrentLuminosityBlocks=cms.untracked.uint32(1)
0088 
0089 
0090 # Customisation from command line
0091 
0092 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0093 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0094 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0095 
0096 # Add early deletion of temporary data products to reduce peak memory need
0097 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0098 process = customiseEarlyDelete(process)
0099 # End adding early deletion