Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:55

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 process = cms.Process("Demo")
0005 
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load("DQMServices.Core.DQM_cfg")
0008 process.DQM.collectorHost = ''
0009 
0010 #-----------------------------
0011 # DQM Environment & Specify inputs
0012 #-----------------------------
0013 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1)
0014 )
0015 
0016 #
0017 #--- When read in DQM root file as input for certification
0018 #process.source = cms.Source("EmptySource"
0019 #)
0020 
0021 #
0022 #--- When read in RECO file including EDM from ME
0023 process.source = cms.Source("PoolSource",
0024     processingMode = cms.untracked.string('RunsAndLumis'),
0025 #   fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/h/hatake/scratch0/dqm/CMSSW_3_1_0_pre11_DQM/src/step2_DT2_1_RAW2DIGI_RECO_DQM_aaa.root')
0026 #    fileNames = cms.untracked.vstring('file:reco_DQM_cruzet98154_v5.root',
0027 #                                      'file:reco_DQM_cruzet98154_v7.root')
0028      fileNames = cms.untracked.vstring('file:reco_DQM_cruzet100945.root')
0029 #    fileNames = cms.untracked.vstring('file:reco_DQM_cruzet100945_v1.root',
0030 #                                      'file:reco_DQM_cruzet100945_v2.root')
0031 #    fileNames = cms.untracked.vstring(
0032 #    '/store/data/Commissioning09/Calo/RECO/v3/000/100/945/FA72B935-0960-DE11-A902-000423D98DB4.root',
0033 #    '/store/data/Commissioning09/Calo/RECO/v3/000/100/945/0C547BAF-0C60-DE11-83C3-000423D98868.root')
0034 #    fileNames = cms.untracked.vstring(
0035 #    'file:/tmp/hatake/EADF3BE3-BE4F-DE11-8BB8-000423D9870C.root')
0036 )
0037 
0038 #-----
0039 
0040 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0041 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0042 
0043 #-----------------------------
0044 # Specify root file including reference histograms
0045 #-----------------------------
0046 
0047 #-----------------------------
0048 # Locate a directory in DQMStore
0049 #-----------------------------
0050 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0051 process.dqmInfoJetMET = DQMEDAnalyzer('DQMEventInfo',
0052                 subSystemFolder = cms.untracked.string('JetMET')
0053                 )
0054 
0055 #-----------------------------
0056 # JetMET Certification Module 
0057 #-----------------------------
0058 process.load("DQMOffline.JetMET.dataCertificationJetMET_cff")
0059 process.dataCertificationJetMET = DQMEDHarvester('DataCertificationJetMET',
0060 #
0061                               refFileName    = cms.untracked.string(""),
0062 #
0063 #--- 0: harvest EDM files, 1: read in DQM root file
0064                               TestType       = cms.untracked.int32(0),
0065 #
0066 #--- When read in DQM root file as input for certification
0067 #                             fileName       = cms.untracked.string("jetMETMonitoring_cruzet98154.root"),
0068 #
0069 #--- When read in RECO file including EDM from ME
0070                               fileName       = cms.untracked.string(""),
0071 #
0072 #--- Do note save here. Save output by dqmSaver
0073                               OutputFile     = cms.untracked.bool(False),
0074                               OutputFileName = cms.untracked.string(""),
0075 #
0076                               Verbose        = cms.untracked.int32(0)
0077 )
0078 
0079 #-----------------------------
0080 # 
0081 #-----------------------------
0082 process.load("DQMOffline.Trigger.JetMETHLTOfflineClient_cfi")
0083 from DQMOffline.Trigger.JetMETHLTOfflineClient_cfi import *
0084 
0085 #-----------------------------
0086 # 
0087 #-----------------------------
0088 #process.p = cms.Path(process.dqmInfoJetMET*process.dataCertificationJetMET)
0089 
0090 process.p = cms.Path(process.EDMtoME
0091                      * process.dqmInfoJetMET
0092                      * process.jetMETHLTOfflineClient
0093                      * process.dataCertificationJetMETSequence
0094                      * process.dqmSaver)
0095