Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003 
0004 
0005 process = cms.Process("HLTMuonOfflineAnalysis")
0006 
0007 #### Load packages
0008 process.load("DQMOffline.Trigger.MuonOffline_Trigger_cff")
0009 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0010 process.load("DQMServices.Components.DQMStoreStats_cfi")
0011 
0012 #### Process command-line arguments
0013 options = VarParsing('analysis')
0014 #options.setDefault('inputFiles', ' /store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/80X_mcRun2_asymptotic_v6-v1/10000/28B122AD-67E4-E511-9BDF-0CC47A4D766C.root')
0015 options.setDefault('inputFiles', 
0016                    '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/44D4EAC0-4CE4-E511-BDC4-0CC47A4D75F0.root',
0017                    '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/9AA555F6-5CE4-E511-ACB9-0CC47A4D769E.root',
0018                     '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/A08C6EC8-4DE4-E511-B109-0025905A60DA.root',
0019                     '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/AA56D3B8-4CE4-E511-8B4E-002618FDA207.root',
0020                     '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/B8818F85-58E4-E511-BC34-0025905A610A.root',
0021                     '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/D69DC0C1-4CE4-E511-8C1A-0025905B85EE.root',
0022                     '/store/relval/CMSSW_8_0_1/RelValZMM_13/GEN-SIM-RECO/PU25ns_80X_mcRun2_asymptotic_v6-v1/10000/F0C5A7C0-4CE4-E511-80CC-0025905A6068.root'
0023                    )
0024 options.setDefault('outputFile', './muonTest.root')
0025 
0026 options.parseArguments()
0027 
0028 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0029 #process.GlobalTag.globaltag = "auto:run2_hlt_GRun"
0030 
0031 
0032 
0033 process.maxEvents = cms.untracked.PSet(
0034     input = cms.untracked.int32(-1)
0035 )
0036 
0037 process.source = cms.Source("PoolSource",
0038     skipEvents = cms.untracked.uint32(0),
0039     fileNames = cms.untracked.vstring(options.inputFiles),
0040 )
0041 
0042 process.DQMStore = cms.Service("DQMStore")
0043 
0044 process.MessageLogger = cms.Service("MessageLogger",
0045     debugModules = cms.untracked.vstring('*'),
0046     cout = cms.untracked.PSet(
0047         threshold = cms.untracked.string('WARNING')
0048     ),
0049     categories = cms.untracked.vstring('HLTMuonVal'),
0050     destinations = cms.untracked.vstring('cout')
0051 )
0052 
0053 process.out = cms.OutputModule("PoolOutputModule",
0054     outputCommands = cms.untracked.vstring(
0055         'drop *', 
0056         'keep *_MEtoEDMConverter_*_*'
0057     ),
0058     fileName = cms.untracked.string(options.outputFile),
0059 )
0060 
0061 process.analyzerpath = cms.Path(
0062     process.muonFullOfflineDQM *
0063 #    process.dqmStoreStats *
0064     process.MEtoEDMConverter )
0065 
0066 process.outpath = cms.EndPath(process.out)