Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:33

0001 import os
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("JetMETDQMOffline")
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0007 
0008 from Configuration.StandardSequences.GeometryRecoDB_cff import *
0009 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0010 process.load('Configuration.StandardSequences.MagneticField_cff')
0011 process.load('Configuration.StandardSequences.Reconstruction_cff')
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 
0015 #for data in 720pre7
0016 process.GlobalTag.globaltag ='76X_mcRun2_asymptotic_v5'
0017 
0018 # check # of bins
0019 process.load("DQMServices.Components.DQMStoreStats_cfi")
0020 
0021 readFiles = cms.untracked.vstring()
0022 secFiles = cms.untracked.vstring() 
0023 process.source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
0024 readFiles.extend( [
0025        '/store/relval/CMSSW_7_6_0_pre7/RelValQCD_FlatPt_15_3000HS_13/MINIAODSIM/76X_mcRun2_asymptotic_v5-v1/00000/7E692CF1-2971-E511-9609-0025905A497A.root',
0026        '/store/relval/CMSSW_7_6_0_pre7/RelValQCD_FlatPt_15_3000HS_13/MINIAODSIM/76X_mcRun2_asymptotic_v5-v1/00000/B4DD46D7-2971-E511-B4DD-0025905A4964.root' 
0027        #'/store/relval/CMSSW_7_5_2/JetHT/MINIAOD/75X_dataRun1_HLT_frozen_v2_RelVal_jet2012D-v1/00000/7CEB618B-8151-E511-8D05-002618943857.root',
0028        #'/store/relval/CMSSW_7_5_2/JetHT/MINIAOD/75X_dataRun1_HLT_frozen_v2_RelVal_jet2012D-v1/00000/8A6ED13D-8351-E511-A6E1-0025905964C2.root',
0029        #'/store/relval/CMSSW_7_5_2/JetHT/MINIAOD/75X_dataRun1_HLT_frozen_v2_RelVal_jet2012D-v1/00000/9A6F45A5-8251-E511-8BB5-0025905964A6.root',
0030        #'/store/relval/CMSSW_7_5_2/JetHT/MINIAOD/75X_dataRun1_HLT_frozen_v2_RelVal_jet2012D-v1/00000/D6536366-7E51-E511-BC81-0025905A48F2.root',
0031        #'/store/relval/CMSSW_7_5_2/JetHT/MINIAOD/75X_dataRun1_HLT_frozen_v2_RelVal_jet2012D-v1/00000/DE6F609B-8251-E511-940D-002618943916.root' 
0032        ] );
0033 
0034 
0035 secFiles.extend( [
0036                ] )
0037 
0038 #
0039 process.maxEvents = cms.untracked.PSet(
0040     input = cms.untracked.int32( -1 )
0041 )
0042 
0043 process.load("DQMOffline.JetMET.dataCertificationJetMET_cff")
0044 
0045 process.load('Configuration/StandardSequences/EDMtoMEAtJobEnd_cff')
0046 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0047 #CMSSW expects same sequence name for different modes, comment out unneeded modes
0048 #pp MC
0049 #process.load("DQMOffline.JetMET.jetMETDQMOfflineSourceMC_cff")
0050 #pp data
0051 process.load("DQMOffline.JetMET.jetMETDQMOfflineSource_cff")
0052 #cosmic data
0053 #process.load("DQMOffline.JetMET.jetMETDQMOfflineSourceCosmic_cff")
0054 #cosmic MC
0055 #process.load("DQMOffline.JetMET.jetMETDQMOfflineSourceCosmicMC_cff")
0056 #for HI data
0057 #process.load("DQMOffline.JetMET.jetMETDQMOfflineSourceHI_cff")
0058 #for HI MC
0059 #process.load("DQMOffline.JetMET.jetMETDQMOfflineSourceHIMC_cff")
0060 
0061 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0062 Workflow = '/JetMET/'+str(cmssw_version)+'/Harvesting'
0063 process.dqmSaver.workflow = Workflow
0064 
0065 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0066 
0067 process.p = cms.Path(                    #process.dump*
0068                      process.jetMETDQMOfflineSourceMiniAOD*
0069                      #for cosmic data and MC
0070                      #process.jetMETDQMOfflineSourceCosmic*
0071                      #for Data and MC pp and HI
0072                      #process.jetMETDQMOfflineSource*
0073                      process.dataCertificationJetMETSequence*
0074                      process.dqmSaver
0075                      )