Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:06

0001 ##-- Starting
0002 import FWCore.ParameterSet.Config as cms
0003 process = cms.Process("DQM")
0004 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0005 process.load('Configuration.EventContent.EventContent_cff')
0006 
0007 
0008 ##-- DQM Loading
0009 # DQM Services
0010 process.load("DQMServices.Core.DQM_cfg")
0011 process.load("DQMServices.Components.DQMEnvironment_cfi")
0012 # DQM Sources
0013 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0014 # DQMOffline/Trigger
0015 #process.load("DQMOffline.Trigger.JetMETHLTOfflineSource_cfi")
0016 process.load("DQMOffline.Trigger.JetMETHLTOfflineAnalyzer_cff")
0017 process.load("DQMOffline.Trigger.JetMETHLTOfflineClient_cfi")
0018 process.load("DQMOffline.Trigger.HLTJetMETQualityTester_cfi")
0019 process.load("DQMServices.Components.MEtoEDMConverter_cff")
0020 #
0021 process.DQMStore.verbose = 0 #0
0022 process.DQM.collectorHost = ''
0023 process.dqmSaver.convention = 'Online' #Online
0024 process.dqmSaver.saveByRun = 1 #0
0025 process.dqmSaver.saveAtJobEnd = True
0026 
0027 
0028 ##-- GlobalTag
0029 process.load('Configuration.StandardSequences.Services_cff')
0030 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0031 #process.GlobalTag.globaltag = 'GR_R_71_V1::All'
0032 
0033 #######
0034 # Other statements
0035 #from Configuration.Applications.ConfigBuilder import ConfigBuilder
0036 #process.DQMOffline.visit(ConfigBuilder.MassSearchReplaceProcessNameVisitor("HLT", "reHLT", whitelist = ("subSystemFolder",)))
0037 from Configuration.AlCa.GlobalTag import GlobalTag
0038 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:com10_GRun', '')
0039 
0040 
0041 ##-- DQMOffline/Trigger
0042 from DQMOffline.Trigger.JetMETHLTOfflineClient_cfi import *
0043 process.load("DQMServices.Components.DQMStoreStats_cfi")
0044 
0045 
0046 ##-- Source
0047 # Note: We need RECO here (not AOD), because of JetHelper Class
0048 process.maxEvents = cms.untracked.PSet(
0049     input = cms.untracked.int32(-1)
0050     )
0051 
0052 # Input source
0053 process.source = cms.Source("PoolSource",
0054         secondaryFileNames = cms.untracked.vstring(),
0055         fileNames = cms.untracked.vstring('/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/008429E1-53A1-E311-81A7-02163E00A313.root',
0056                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/08367C14-3CA1-E311-A4BE-0025904B2C74.root',
0057                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/08983374-3BA1-E311-B151-02163E009E00.root',
0058                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/0A1C5BCE-51A1-E311-B40C-02163E008F35.root',
0059                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/12741B3D-40A1-E311-BB08-0025904B26B4.root',
0060                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/1E090904-4AA1-E311-BF2A-02163E00E9E8.root',
0061                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/1EBC3C10-4DA1-E311-806C-02163E00E7AC.root',
0062                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/201C9342-35A1-E311-8CC8-02163E00E945.root',
0063                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/20F4610D-69A1-E311-8EBC-0025904B26B2.root',
0064                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/20FD35C2-3BA1-E311-A72F-02163E00E72D.root',
0065                                           '/store/relval/CMSSW_7_1_0_pre3/JetHT/RECO/GR_R_71_V1_RelVal_jet2012C-v1/00000/FE32B28F-60A1-E311-B9A1-02163E00E5CA.root'),
0066                             lumisToProcess = cms.untracked.VLuminosityBlockRange("199812:70-199812:141", "199812:144-199812:163", "199812:182-199812:211", "199812:214-199812:471", "199812:474-199812:505", "199812:508-199812:557", "199812:560-199812:571", "199812:574-199812:623", "199812:626-199812:751", "199812:754-199812:796")
0067                             )
0068 
0069 
0070 
0071 
0072 ##-- Output
0073 process.DQMoutput = cms.OutputModule("PoolOutputModule",
0074     splitLevel = cms.untracked.int32(0),
0075     outputCommands = process.DQMEventContent.outputCommands, #DQMEventContent
0076     fileName = cms.untracked.string('JetMET_DQM.root'),
0077     dataset = cms.untracked.PSet(
0078         filterName = cms.untracked.string(''),
0079         dataTier = cms.untracked.string('DQM')
0080     )
0081 )
0082 
0083 ##-- Logger
0084 process.MessageLogger = cms.Service("MessageLogger",
0085     detailedInfo = cms.untracked.PSet(
0086         threshold = cms.untracked.string('DEBUG')
0087     ),
0088     critical = cms.untracked.PSet(
0089         threshold = cms.untracked.string('ERROR')
0090     ),
0091     debugModules = cms.untracked.vstring('*'),
0092     cout = cms.untracked.PSet(
0093         threshold = cms.untracked.string('WARNING'),
0094         WARNING = cms.untracked.PSet(
0095             limit = cms.untracked.int32(0)
0096         ),
0097         noLineBreaks = cms.untracked.bool(True)
0098     ),
0099     destinations = cms.untracked.vstring('detailedInfo', 
0100         'critical', 
0101         'cout')
0102 )
0103 
0104 
0105 ##-- Config
0106 from DQMOffline.Trigger.JetMETHLTOfflineSource_cfi import *
0107 process.jetMETHLTOfflineSource.processname = cms.string("reHLT")
0108 process.jetMETHLTOfflineSource.triggerSummaryLabel = cms.InputTag("hltTriggerSummaryAOD","","reHLT")
0109 process.jetMETHLTOfflineSource.triggerResultsLabel = cms.InputTag("TriggerResults","","reHLT")
0110 process.jetMETHLTOfflineSource.plotEff = cms.untracked.bool(True)
0111 
0112 
0113 ##-- Let's it runs
0114 process.JetMETSource_step = cms.Path( process.jetMETHLTOfflineAnalyzer )
0115 process.JetMETClient_step = cms.Path( process.jetMETHLTOfflineClient )
0116 process.dqmsave_step      = cms.Path( process.dqmSaver )
0117 process.DQMoutput_step    = cms.EndPath( process.DQMoutput )
0118 # Schedule
0119 process.schedule = cms.Schedule(process.JetMETSource_step,
0120                                 process.JetMETClient_step,
0121                                 process.dqmsave_step,
0122                                 process.DQMoutput_step)