Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQM")
0004 process.load("DQM.HLTEvF.HLTMonitor_cff")
0005 
0006 process.load("DQMServices.Core.DQM_cfg")
0007 
0008 ### include your reference file
0009 
0010 process.load("DQMServices.Components.DQMEnvironment_cfi")
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(1000)
0014 )
0015 process.source = cms.Source("PoolSource",
0016     fileNames = cms.untracked.vstring(
0017     ### QCD CMSSW 3X
0018     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/00670343-30E8-DD11-838D-000423D98BC4.root',
0019     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/1CEAEC44-32E8-DD11-A0A1-000423D98800.root',
0020     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/2E1704ED-6AE8-DD11-AFCF-001D09F24D67.root',
0021     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/3C64F3A9-22E8-DD11-9B0A-001617DBD332.root',
0022     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/46B94395-32E8-DD11-A37F-000423D6006E.root',
0023     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/5EA23D88-21E8-DD11-8544-000423DD2F34.root',
0024     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/629A7A7D-25E8-DD11-974D-000423D6CAF2.root',
0025     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/66BABB5C-31E8-DD11-8906-000423D99896.root',
0026     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/705B8646-36E8-DD11-ADD9-000423D6CA02.root',
0027     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/92EF21F9-22E8-DD11-9B77-001617DBD316.root',
0028     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/A85E9B7A-25E8-DD11-8E44-000423D6AF24.root',
0029     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/C4DFA74F-33E8-DD11-B1F5-001617E30E2C.root',
0030     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/D22FFF1F-26E8-DD11-8A08-001617E30CC8.root',
0031     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/D62F9B91-23E8-DD11-A738-000423D991F0.root',
0032     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/DABC2D7C-24E8-DD11-9D65-000423D6B42C.root',
0033     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/DC166450-22E8-DD11-9908-000423D94AA8.root',
0034     '/store/relval/CMSSW_3_0_0_pre7/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_30X_v1/0006/E8494F98-23E8-DD11-9C08-000423D9863C.root'
0035     )
0036 )
0037 
0038 ###  DQM Source program (in DQMServices/Examples/src/DQMSourceExample.cc)
0039 process.dqmSource   = cms.EDAnalyzer("DQMSourceExample",
0040         monitorName = cms.untracked.string('YourSubsystemName'),
0041         prescaleEvt = cms.untracked.int32(1),
0042         prescaleLS  =  cms.untracked.int32(1)                    
0043                                    )
0044 
0045 ### run the quality tests as defined in QualityTests.xml
0046 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0047 process.qTester = DQMQualityTester(
0048     qtList = cms.untracked.FileInPath('DQM/HLTEvF/test/JetMETQualityTests.xml'),
0049     prescaleFactor = cms.untracked.int32(1),                               
0050     testInEventloop = cms.untracked.bool(True),
0051     verboseQT =  cms.untracked.bool(True)                 
0052                               )
0053 
0054 #### BEGIN DQM Online Environment #######################
0055     
0056 ### replace YourSubsystemName by the name of your source ###
0057 ### use it for dqmEnv, dqmSaver
0058 process.load("DQMServices.Components.DQMEnvironment_cfi")
0059 #process.DQM.collectorHost = 'srv-c2d05-XX'
0060 #process.DQM.collectorPort = 9190
0061 ### path where to save the output file
0062 process.dqmSaver.dirName = '.'
0063 
0064 ### the filename prefix 
0065 process.dqmSaver.producer = 'DQM'
0066 
0067 ### possible conventions are "Online", "Offline" and "RelVal"
0068 process.dqmSaver.convention = 'Online'
0069 
0070 process.dqmEnv.subSystemFolder = 'HLTJetMET'
0071 
0072 ### optionally change fileSaving  conditions
0073 #process.dqmSaver.saveByLumiSection = -1
0074 #process.dqmSaver.saveByMinute      = -1
0075 #process.dqmSaver.saveByEvent       = -1
0076 #process.dqmSaver.saveByRun         =  1
0077 #process.dqmSaver.saveAtJobEnd      = False
0078 
0079 
0080 process.MessageLogger = cms.Service("MessageLogger",
0081     detailedInfo = cms.untracked.PSet(
0082         threshold = cms.untracked.string('INFO')
0083     ),
0084     critical = cms.untracked.PSet(
0085         threshold = cms.untracked.string('ERROR')
0086     ),
0087     debugModules = cms.untracked.vstring('*'),
0088     cout = cms.untracked.PSet(
0089         threshold = cms.untracked.string('WARNING'),
0090         WARNING = cms.untracked.PSet(
0091             limit = cms.untracked.int32(0)
0092         ),
0093         noLineBreaks = cms.untracked.bool(True)
0094     ),
0095     destinations = cms.untracked.vstring('detailedInfo', 
0096         'critical', 
0097         'cout')
0098 )
0099 
0100 #process.p = cms.EndPath(process.dqmSaver)
0101 process.p = cms.EndPath(process.dqmSource*process.qTester*process.dqmEnv*process.dqmSaver)
0102 
0103 process.DQMStore.verbose = 0
0104 process.DQM.collectorHost = ''
0105 process.dqmSaver.convention = 'Online'
0106 process.dqmSaver.saveByRun = 1
0107 process.dqmSaver.saveAtJobEnd = True
0108