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 #--- Load dqm root files
0023 process.dqmFileReaderJetMET = cms.EDFilter("DQMFileReader",
0024   FileNames = cms.untracked.vstring('jetMETMonitoring_cruzet100945.root',
0025                                     'jetMETMonitoring_cruzet100945b.root')
0026 )
0027 
0028 #-----
0029 
0030 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0031 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0032 
0033 #-----------------------------
0034 # Specify root file including reference histograms
0035 #-----------------------------
0036 #process.DQMStore.verbose = 5
0037 
0038 #-----------------------------
0039 # Locate a directory in DQMStore
0040 #-----------------------------
0041 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0042 process.dqmInfoJetMET = DQMEDAnalyzer('DQMEventInfo',
0043                 subSystemFolder = cms.untracked.string('JetMET')
0044                 )
0045 
0046 #-----------------------------
0047 # JetMET Certification Module 
0048 #-----------------------------
0049 process.load("DQMOffline.JetMET.dataCertificationJetMET_cff")
0050 process.dataCertificationJetMET = DQMEDHarvester('DataCertificationJetMET',
0051 #
0052                               refFileName    = cms.untracked.string(""),
0053 #
0054 #--- 0: harvest EDM files, 1: read in DQM root file
0055                               TestType       = cms.untracked.int32(0),
0056 #
0057 #--- When read in DQM root file as input for certification
0058 #                             fileName       = cms.untracked.string("/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/data/PromptReco/100/945/DQM_V0001_R000100945__Cosmics__Commissioning09-PromptReco-v3__RECO.root"),
0059 #                             fileName       = cms.untracked.string("/uscms_data/d2/hatake/DQM-data/DQM_V0001_R000100945__Cosmics__Commissioning09-PromptReco-v3__RECO.root"),
0060 #
0061 #--- When read in RECO file including EDM from ME
0062                               fileName       = cms.untracked.string(""),
0063 #
0064 #--- Do note save here. Save output by dqmSaver
0065                               OutputFile     = cms.untracked.bool(False),
0066                               OutputFileName = cms.untracked.string(""),
0067 #
0068                               Verbose        = cms.untracked.int32(0)
0069 )
0070 
0071 #-----------------------------
0072 # 
0073 #-----------------------------
0074 process.p = cms.Path(process.dqmFileReaderJetMET
0075                      * process.dqmInfoJetMET
0076                      * process.dataCertificationJetMETSequence
0077                      * process.dqmSaver)
0078 
0079