Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:51

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('RECODQM')
0004 
0005 # import of standard configurations
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load('Configuration.EventContent.EventContent_cff')
0009 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0010 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0011 process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 
0014 # load DQM
0015 process.load("DQMServices.Core.DQM_cfg")
0016 process.load("DQMServices.Components.DQMEnvironment_cfi")
0017 
0018 # my analyzer
0019 process.load('DQMServices.Examples.test.DQMExample_Step1_cfi')
0020 
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(200)
0024 )
0025 
0026 with open('fileList.log') as f:
0027     lines = f.readlines()
0028 
0029 # Input source
0030 process.source = cms.Source("PoolSource",
0031     secondaryFileNames = cms.untracked.vstring(),
0032     fileNames = cms.untracked.vstring(lines)
0033 )
0034 
0035 
0036 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0037                                      fileName = cms.untracked.string("OUT_step1.root"))
0038 
0039 # Other statements
0040 from Configuration.AlCa.GlobalTag import GlobalTag
0041 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')  #for MC
0042 
0043 
0044 # Path and EndPath definitions
0045 process.dqmoffline_step = cms.Path(process.DQMExample_Step1)
0046 #process.dqmsave_step = cms.Path(process.DQMSaver)
0047 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0048 
0049 
0050 # Schedule definition
0051 process.schedule = cms.Schedule(
0052     process.dqmoffline_step,
0053     process.DQMoutput_step
0054 #    process.dqmsave_step
0055     )