Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("DQM")
0005 process.load("DQMServices.Core.DQM_cfg")
0006 
0007 #process.load("DQM.HLTEvF.HLTMonitor_cff")
0008 # remove because the client stuff is useless
0009 #process.load("DQM.HLTEvF.HLTMonitorClient_cff")
0010 
0011 # Don't load everything
0012 #process.load("DQMOffline.Trigger.DQMOffline_Trigger_cff")
0013 
0014 # Only load this
0015 process.load("DQMOffline.Trigger.HLTGeneralOffline_cfi")
0016 
0017 # remove this because we don't want to do local reconstruction
0018 #process.load("Configuration.StandardSequences.GeometryPilot2_cff")
0019 #process.load("Configuration.StandardSequences.MagneticField_cff")
0020 
0021 process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff" )
0022 
0023 # use this tag for 52
0024 #process.GlobalTag.globaltag = 'GR_R_52_V4::All'
0025 
0026 # use this tag for 42
0027 print("\n\n\n------ WARNING USING GLOBAL TAG FOR 42X------\n\n\n\n")
0028 process.GlobalTag.globaltag = 'GR_R_42_V22::All'
0029 
0030 process.prefer("GlobalTag")
0031 
0032 # removed this because we don't want to do local reco
0033 #SiStrip Local Reco
0034 #process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
0035 
0036 #process.GlobalTrackingGeometryESProducer = cms.ESProducer( "GlobalTrackingGeometryESProducer" )
0037 
0038 process.load("DQMServices.Components.DQMEnvironment_cfi")
0039 
0040 process.maxEvents = cms.untracked.PSet(
0041     input = cms.untracked.int32(1000)
0042 )
0043 
0044 #process.source = cms.Source("PoolSource",
0045 ##    fileNames = cms.untracked.vstring('/store/data/Commissioning08/Monitor/RAW/v1/000/068/021/000BDAE4-37A6-DD11-8411-001D09F242EF.root')
0046 #    #fileNames = cms.untracked.vstring('file:/tmp/hdyoo/8809F7DE-BFCA-DE11-B492-001617E30D40.root')
0047 #    #fileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/119/824/8809F7DE-BFCA-DE11-B492-001617E30D40.root')
0048 #    fileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/122/314/0C7140FD-7CD8-DE11-A515-001D09F2960F.root')#
0049 # )
0050 
0051 
0052 process.source = cms.Source("PoolSource",
0053     fileNames = cms.untracked.vstring(
0054     # never use old files to do this test
0055     # you will be sad
0056 #    'file:/data/ndpc0/c/abrinke1/RAW/170354/SingleMu/08B0697A-B7B0-E011-B0DE-003048D375AA.root'
0057     '/store/data/Run2011B/SingleMu/AOD/PromptReco-v1/000/180/241/C0F4F7A3-EF04-E111-A94F-003048D2C0F0.root'
0058     #'/store/relval/CMSSW_5_2_0/RelValTTbar/GEN-SIM-RECO/START52_V4A-v1/0248/8698CFBB-1869-E111-8121-00304867C1BA.root'
0059     
0060     )
0061 )
0062 
0063 
0064 process.p = cms.EndPath(process.hltFiltersDQMonitor)
0065   
0066 process.pp = cms.Path(process.dqmEnv+process.dqmSaver)
0067 process.DQMStore.verbose = 0
0068 process.DQM.collectorHost = 'srv-c2d05-12'
0069 process.DQM.collectorPort = 9190
0070 process.dqmSaver.dirName = '.'
0071 process.dqmSaver.producer = 'Playback'
0072 process.dqmSaver.convention = 'Online'
0073 process.dqmEnv.subSystemFolder = 'HLT'
0074 process.dqmSaver.saveByRun = 1
0075 process.dqmSaver.saveAtJobEnd = True
0076 
0077 # # Message Logger
0078 # process.load("FWCore.MessageService.MessageLogger_cfi")
0079 # #
0080 # process.MessageLogger.destinations = ['cout', 'detailedInfo', 'critical']
0081 # process.MessageLogger.cout = cms.untracked.PSet(
0082 #     #threshold = cms.untracked.string('ERROR'),
0083 #     #threshold = cms.untracked.string('INFO'),
0084 #     #INFO = cms.untracked.PSet(
0085 #     # limit = cms.untracked.int32(-1)
0086 #     #)#,
0087 #     threshold = cms.untracked.string('DEBUG'),
0088 #     DEBUG = cms.untracked.PSet(
0089 #     limit = cms.untracked.int32(-1) ## DEBUG, all messages
0090 #     )
0091 #     )
0092 # 
0093 # # copy stdout to a file
0094 # process.MessageLogger.detailedInfo = process.MessageLogger.cout
0095 # process.MessageLogger.debugModules = ['hltFiltersDQMonitor']
0096 # process.MessageLogger.critical = cms.untracked.PSet(
0097 #     threshold = cms.untracked.string('ERROR'),
0098 #     #threshold = cms.untracked.string('INFO'),
0099 #     #INFO = cms.untracked.PSet(
0100 #     # limit = cms.untracked.int32(-1)
0101 #     #)#,
0102 #     #threshold = cms.untracked.string('DEBUG'),
0103 #     ERROR = cms.untracked.PSet(
0104 #     limit = cms.untracked.int32(-1) ## all messages
0105 #     )
0106 #     )
0107 # # summary
0108 process.options = cms.untracked.PSet(
0109     wantSummary = cms.untracked.bool(True)
0110     )
0111 
0112 
0113 
0114 outfile = open('config.py','w')
0115 print(process.dumpPython(), file=outfile)
0116 outfile.close()
0117 
0118