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 
0023 #
0024 #--- When read in RECO file including EDM from ME
0025 process.source = cms.Source("PoolSource",
0026     processingMode = cms.untracked.string('RunsAndLumis'),
0027 #   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')
0028 #    fileNames = cms.untracked.vstring('file:reco_DQM_cruzet98154_v5.root',
0029 #                                      'file:reco_DQM_cruzet98154_v7.root')
0030      fileNames = cms.untracked.vstring('file:reco_DQM_cruzet100945.root')
0031 #    fileNames = cms.untracked.vstring('file:reco_DQM_cruzet100945_v1.root',
0032 #                                      'file:reco_DQM_cruzet100945_v2.root')
0033 #    fileNames = cms.untracked.vstring(
0034 #    '/store/data/Commissioning09/Calo/RECO/v3/000/100/945/FA72B935-0960-DE11-A902-000423D98DB4.root',
0035 #    '/store/data/Commissioning09/Calo/RECO/v3/000/100/945/0C547BAF-0C60-DE11-83C3-000423D98868.root')
0036 #    fileNames = cms.untracked.vstring(
0037 #    'file:/tmp/hatake/EADF3BE3-BE4F-DE11-8BB8-000423D9870C.root')
0038 )
0039 
0040 #-----
0041 
0042 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0043 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0044 
0045 #-----------------------------
0046 # Specify root file including reference histograms
0047 #-----------------------------
0048 
0049 #-----------------------------
0050 # Locate a directory in DQMStore
0051 #-----------------------------
0052 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0053 process.dqmInfoJetMET = DQMEDAnalyzer('DQMEventInfo',
0054                 subSystemFolder = cms.untracked.string('JetMET')
0055                 )
0056 
0057 #-----------------------------
0058 # JetMET Certification Module 
0059 #-----------------------------
0060 process.load("DQMOffline.JetMET.dataCertificationJetMET_cff")
0061 process.dataCertificationJetMET = DQMEDHarvester('DataCertificationJetMET',
0062 #
0063                               refFileName    = cms.untracked.string(""),
0064 #
0065 #--- 0: harvest EDM files, 1: read in DQM root file
0066                               TestType       = cms.untracked.int32(0),
0067 #
0068 #--- When read in DQM root file as input for certification
0069 #                             fileName       = cms.untracked.string("jetMETMonitoring_cruzet98154.root"),
0070 #
0071 #--- When read in RECO file including EDM from ME
0072                               fileName       = cms.untracked.string(""),
0073 #
0074 #--- Do note save here. Save output by dqmSaver
0075                               OutputFile     = cms.untracked.bool(False),
0076                               OutputFileName = cms.untracked.string(""),
0077 #
0078                               Verbose        = cms.untracked.int32(0)
0079 )
0080 
0081 #-----------------------------
0082 #
0083 #-----------------------------
0084 #process.load("DQMOffline.Trigger.JetMETHLTOfflineClient_cfi")
0085 #from DQMOffline.Trigger.JetMETHLTOfflineClient_cfi import *
0086 
0087 #-----------------------------
0088 #
0089 #-----------------------------
0090 
0091 process.p = cms.Path(process.EDMtoME
0092                      * process.dqmInfoJetMET
0093                      * process.dataCertificationJetMETSequence
0094                      * process.dqmSaver)
0095