Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 process = cms.Process('RECODQM', Run2_2018)
0005 
0006 # import of standard configurations
0007 process.load('Configuration/StandardSequences/Services_cff')
0008 process.load('FWCore/MessageService/MessageLogger_cfi')
0009 process.load('Configuration/StandardSequences/GeometryDB_cff')
0010 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0011 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0012 #process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0013 process.load('Configuration/EventContent/EventContent_cff')
0014 process.load('TrackingTools/TransientTrack/TransientTrackBuilder_cfi')
0015 process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
0016 
0017 # load DQM
0018 process.load("DQMServices.Core.DQM_cfg")
0019 process.load("DQMServices.Components.DQMEnvironment_cfi")
0020 
0021 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0022 process.GlobalTag.globaltag = '101X_dataRun2_Prompt_v9'
0023 #process.GlobalTag.globaltag = '92X_dataRun2_Prompt_v4'
0024 
0025 
0026 # trigger filter
0027 process.load('HLTrigger/HLTfilters/hltHighLevel_cfi')
0028 process.hltHighLevel.throw = cms.bool(False)
0029 process.hltHighLevel.HLTPaths = cms.vstring()
0030 
0031 
0032 from CondCore.CondDB.CondDB_cfi import *
0033 
0034 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0035 process.source = cms.Source("PoolSource",
0036                                 fileNames = cms.untracked.vstring(
0037 #'/store/data/Run2017B/SingleMuon/RECO/PromptReco-v1/000/297/218/00000/14C84999-6457-E711-AAE4-02163E0136E0.root'
0038 'file:/eos/cms/store/data/Run2018D/SingleMuon/AOD/22Jan2019-v2/110000/104D2C01-12D2-0742-BE61-897755323EDE.root'
0039                                 )
0040                                 )
0041 
0042 process.source.inputCommands = cms.untracked.vstring("keep *",
0043                                                          "drop *_MEtoEDMConverter_*_*")
0044 
0045 process.options = cms.untracked.PSet(
0046   wantSummary = cms.untracked.bool(False),
0047   Rethrow     = cms.untracked.vstring('ProductNotFound'),
0048   fileMode    = cms.untracked.string('FULLMERGE')
0049   )
0050 
0051 
0052 from DQMOffline.Lumi.ZCounting_cff import zcounting
0053 
0054 process.load("DQMOffline.Lumi.ZCounting_cff") 
0055 
0056 #process.zcounting.MuonTriggerNames = cms.vstring("HLT_IsoMu27_v*","HLT_IsoMu24_v*")
0057 #process.zcounting.MuonTriggerObjectNames = cms.vstring("hltL3crIsoL1sMu22Or25L1f0L2f10QL3f27QL3trkIsoFiltered0p07",
0058 #                                                      "hltL3crIsoL1sSingleMu22L1f0L2f10QL3f24QL3trkIsoFiltered0p07")
0059 
0060 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0061                                      fileName = cms.untracked.string("OUT_step1.root"))
0062 
0063 # Path and EndPath definitions
0064 process.dqmoffline_step = cms.Path(process.zcounting)
0065 process.dqmsave_step = cms.Path(process.DQMSaver)
0066 #process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0067 
0068 
0069 # Schedule definition
0070 process.schedule = cms.Schedule(
0071     process.dqmoffline_step,
0072 #    process.DQMoutput_step
0073     process.dqmsave_step
0074     )
0075 
0076 process.dqmSaver.workflow = '/SingleMuon/Run2017B-PromptReco-v1/RECO'