Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('HARVESTING')
0004 
0005 # import of standard configurations
0006 process.load('Configuration.StandardSequences.Harvesting_cff')
0007 process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
0008 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0009 
0010 ## global tag
0011 process.GlobalTag.globaltag = 'MCRUN2_74_V9'
0012 ##process.GlobalTag.globaltag = 'GR_R_38X_V13::All' 
0013 #process.GlobalTag.globaltag   = 'GR10_P_V10::All'
0014 #process.GlobalTag.globaltag   = 'GR_R_52_V7::All'
0015 
0016 ## input file (adapt input file name correspondingly)
0017 process.source = cms.Source("PoolSource",
0018     fileNames = cms.untracked.vstring("file:topDQM_production.root"),
0019     processingMode = cms.untracked.string('RunsAndLumis')
0020 )
0021 
0022 ## number of events
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(-1)
0025 )
0026 
0027 ## output options
0028 process.options = cms.untracked.PSet(
0029     Rethrow  = cms.untracked.vstring('ProductNotFound'),
0030     fileMode = cms.untracked.string('FULLMERGE')
0031 )
0032 
0033 ## DQMStore and output configuration
0034 process.EDMtoMEConverter.convertOnEndLumi = True
0035 process.EDMtoMEConverter.convertOnEndRun  = True
0036 process.dqmSaver.saveByRun      = cms.untracked.int32( -1)
0037 process.dqmSaver.saveAtJobEnd   = cms.untracked.bool(True)
0038 process.dqmSaver.forceRunNumber = cms.untracked.int32(  1)
0039 process.dqmSaver.workflow       = cms.untracked.string('/TopVal/CMSSW_3_8_4/RECO') ## adapt apropriately
0040 
0041 
0042 ## path definitions
0043 process.edmtome = cms.Path(
0044     process.EDMtoME
0045 )
0046 process.dqmsave = cms.Path(
0047     process.DQMSaver
0048 )
0049 
0050 ## schedule definition
0051 process.schedule = cms.Schedule(process.edmtome,process.dqmsave)