Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-18 03:27:07

0001 #################################################################
0002 #                                                               #
0003 # RPC Client Configuration file for RPC Source Output Root File #
0004 #                      David Lomidze                            #
0005 #                       INFN Napoli                             #
0006 #                        Feb 2009                               #
0007 #################################################################
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0011 
0012 process = cms.Process("RPCDQMClientTest")
0013 
0014 process.load("DQMServices.Core.DQM_cfg")
0015 
0016 process.load("DQMServices.Components.DQMEnvironment_cfi")
0017 
0018 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0019 
0020 #process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
0021 
0022 process.load("Geometry.MuonCommonData.muonIdealGeometryXML_cfi")
0023 
0024 process.load("Geometry.RPCGeometry.rpcGeometry_cfi")
0025 
0026 process.load("RecoLocalMuon.RPCRecHit.rpcRecHits_cfi")
0027 
0028 #process.load("Configuration.StandardSequences.MagneticField_cff")
0029 
0030 #process.load("CondCore.DBCommon.CondDBSetup_cfi")
0031 
0032 
0033 ##### Run as Emptry Source #######
0034 process.source = cms.Source("EmptySource",
0035    firstRun = cms.untracked.uint32(70669)
0036                             )
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039     input = cms.untracked.int32(1)
0040 )
0041 
0042 process.ModuleWebRegistry = cms.Service("ModuleWebRegistry")
0043 
0044 
0045 ################# DQM Client Modules ######################
0046 process.load("DQM.RPCMonitorClient.RPCEventSummary_cfi")
0047 process.rpcEventSummary.EventInfoPath = 'RPC/EventInfo'
0048 process.rpcEventSummary.RPCPrefixDir = 'RPC/RecHits'
0049 process.rpcEventSummary.RPCPrefixDir = 'RPC/RecHits'
0050 process.rpcEventSummary.PrescaleFactor = 1
0051 process.load("DQM.RPCMonitorClient.RPCMon_SS_Dbx_Global_cfi")
0052 
0053 ################# Quality Tests ############################
0054 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0055 process.qTesterRPC = DQMQualityTester(
0056     qtList = cms.untracked.FileInPath('DQM/RPCMonitorClient/test/RPCQualityTests.xml'),
0057     prescaleFactor = cms.untracked.int32(1)
0058 )
0059 
0060 
0061 ################# Open Root file and provide MEs ############
0062 process.ReadMeFromFile = DQMEDHarvester("ReadMeFromFile",
0063 #InputFile = cms.untracked.string('/afs/cern.ch/user/d/dlomidze/scratch0/CMSSW_3_0_0_pre3/src/DQM/RPCMonitorClient/python/DQM_V0001_RPC_R000069800.root')
0064 InputFile = cms.untracked.string('rfio:/castor/cern.ch/user/d/dlomidze/RPC/GlobalRuns/CosmicsCommissioning08-PromptReco-v2RECO/70664/root/Merge_tot.root')
0065 #InputFile = cms.untracked.string('rfio:/castor/cern.ch/user/d/dlomidze/DQM_150.000_RPCEvents.root')                                       
0066 #InputFile = cms.untracked.string('file:/afs/cern.ch/user/d/dlomidze/scratch0/DQM_Merged_V3_R70664.root')
0067 #InputFile = cms.untracked.string('file:/afs/cern.ch/user/d/dlomidze/scratch0/CMSSW_3_1_0_pre2/src/DQM/RPCMonitorDigi/python/DQM_500.000_RPCEvents.root')
0068 )
0069 
0070 
0071 ################# RPC Client Modules #######################
0072 process.RPCDeadChannelTest = DQMEDHarvester("RPCDeadChannelTest")
0073 process.RPCOccupancyTest = DQMEDHarvester("RPCOccupancyTest")
0074 process.RPCClusterSizeTest = DQMEDHarvester("RPCClusterSizeTest")
0075 #process.RPCDCSDataSimulator = DQMEDHarvester("RPCDCSDataSimulator")
0076 process.RPCMultiplicityTest = DQMEDHarvester("RPCMultiplicityTest")
0077 process.RPCOccupancyChipTest = DQMEDHarvester("RPCOccupancyChipTest");
0078 process.RPCNoisyStripTest = DQMEDHarvester("RPCNoisyStripTest");
0079 
0080 #process.p = cms.Path(process.ReadMeFromFile*process.qTesterRPC*process.RPCClusterSizeTest*process.RPCDeadChannelTest*process.RPCOccupancyTest*process.RPCDCSDataSimulator*process.RPCMultiplicityTest*process.dqmSaver)
0081 
0082 process.p = cms.Path(process.ReadMeFromFile*process.qTesterRPC*process.RPCClusterSizeTest*process.RPCDeadChannelTest*process.RPCOccupancyTest*process.RPCMultiplicityTest*process.RPCOccupancyChipTest*process.RPCNoisyStripTest*process.dqmSaver)
0083 
0084 
0085 
0086 #process.p = cms.Path(process.ReadMeFromFile*process.RPCOccupancyTest*process.dqmSaver)
0087 
0088 
0089 ################ DQM Enviroment ###################
0090 process.dqmEnv.subSystemFolder = 'RPC'
0091 
0092 ############## DQM Saver ###############
0093 process.dqmSaver.convention = 'Online'
0094 process.dqmSaver.dirName = '.'
0095 process.dqmSaver.producer = 'DQM'
0096 #process.dqmSaver.saveByRun = -1
0097 #process.dqmSaver.saveAtJobEnd = True
0098 
0099 #dqmSaver = cms.EDFilter("DQMFileSaver",
0100     # Save file every N runs (-1: disabled)
0101 #    saveByRun = cms.untracked.int32(-1),
0102     # Save file at the end of the job
0103  #   saveAtJobEnd = cms.untracked.bool(True)
0104   #                      )
0105 
0106 
0107 #process.DQMStore.verbose = 1
0108 
0109 ######## DQM GUI ########
0110 process.DQM.collectorHost = ''
0111 process.DQM.collectorPort = 9090
0112 process.DQM.debug = False
0113 
0114 
0115