Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:49

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 = 'GR_R_52_V7::All'
0012 ##process.GlobalTag.globaltag = 'GR_R_38X_V13::All' 
0013 #process.GlobalTag.globaltag   = 'GR10_P_V10::All'
0014 
0015 ## input file (adapt input file name correspondingly)
0016 process.source = cms.Source("PoolSource",
0017     fileNames = cms.untracked.vstring("file:topDQM_production_1_1_NME.root"),
0018     processingMode = cms.untracked.string('RunsAndLumis')
0019 )
0020 
0021 ## number of events
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(-1)
0024 )
0025 
0026 ## output options
0027 process.options = cms.untracked.PSet(
0028     Rethrow  = cms.untracked.vstring('ProductNotFound'),
0029     fileMode = cms.untracked.string('FULLMERGE')
0030 )
0031 
0032 ## DQMStore and output configuration
0033 process.EDMtoMEConverter.convertOnEndLumi = True
0034 process.EDMtoMEConverter.convertOnEndRun  = True
0035 process.dqmSaver.saveByRun      = cms.untracked.int32( -1)
0036 process.dqmSaver.saveAtJobEnd   = cms.untracked.bool(True)
0037 process.dqmSaver.forceRunNumber = cms.untracked.int32(  1)
0038 process.dqmSaver.workflow       = cms.untracked.string('/TopVal/CMSSW_3_8_4/RECO') ## adapt apropriately
0039 
0040 
0041 ## path definitions
0042 process.edmtome = cms.Path(
0043     process.EDMtoME
0044 )
0045 process.dqmsave = cms.Path(
0046     process.DQMSaver
0047 )
0048 
0049 ## schedule definition
0050 process.schedule = cms.Schedule(process.edmtome,process.dqmsave)