CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/DQMOffline/CalibMuon/python/dtNoiseDBValidation_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 class config: pass
00004 config.runNumber = 1
00005 config.refTag = 'DT_noise_cosmic2009_V01_hlt'
00006 config.noiseDB = 'noise.db'
00007 config.dataset = '/SingleMu/Run2011A-DtCalib-v4/ALCARECO'
00008 config.outputdir = 'DQM'
00009 config.trial = 1
00010 
00011 # Further config.
00012 dataset_vec = config.dataset.split('/')
00013 config.workflowName = '/%s/%s-DTnoiseDBValidation-rev%d/%s' % (dataset_vec[1],
00014                                                                dataset_vec[2],
00015                                                                config.trial,
00016                                                                dataset_vec[3]) 
00017 
00018 process = cms.Process("DBValidation")
00019 
00020 process.MessageLogger = cms.Service("MessageLogger",
00021     debugModules = cms.untracked.vstring('dtNoiseAnalyzer'),
00022     cerr = cms.untracked.PSet(
00023         default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
00024         DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
00025         NoiseDbValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
00026         threshold = cms.untracked.string('DEBUG'),
00027     ),
00028     categories = cms.untracked.vstring('NoiseDBValidation'),
00029     destinations = cms.untracked.vstring('cerr')
00030 )
00031 
00032 
00033 process.load("Configuration.StandardSequences.Geometry_cff")
00034 process.load("Geometry.DTGeometry.dtGeometry_cfi")
00035 process.DTGeometryESModule.applyAlignment = False
00036 
00037 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00038 process.load("DQMServices.Core.DQM_cfg")
00039 process.load("DQMServices.Components.DQMEnvironment_cfi")
00040 
00041 process.source = cms.Source("EmptySource",
00042     numberEventsInRun = cms.untracked.uint32(1),
00043     firstRun = cms.untracked.uint32(config.runNumber)
00044 )
00045 
00046 process.maxEvents = cms.untracked.PSet(
00047     input = cms.untracked.int32(1)
00048 )
00049 
00050 process.noiseRef = cms.ESSource("PoolDBESSource",
00051     process.CondDBSetup,
00052     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
00053     toGet = cms.VPSet(
00054     cms.PSet(
00055         record = cms.string('DTStatusFlagRcd'),
00056         tag = cms.string(config.refTag),
00057         label = cms.untracked.string('noiseRef')
00058     ), 
00059     cms.PSet(
00060         record = cms.string('DTStatusFlagRcd'),
00061         tag = cms.string('noise'),
00062         connect = cms.untracked.string('sqlite_file:%s' % config.noiseDB),
00063         label = cms.untracked.string('noiseToValidate')
00064     )),
00065 )
00066 process.noiseRef.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
00067 
00068 process.dtNoiseAnalyzer = cms.EDAnalyzer("DTnoiseDBValidation",
00069     labelDBRef = cms.string('noiseRef'),
00070     labelDB = cms.string('noiseToValidate'),
00071     diffTestName = cms.string('noiseDifferenceInRange'),
00072     wheelTestName = cms.string('noiseWheelOccInRange'),
00073     stationTestName = cms.string('noiseStationOccInRange'),
00074     sectorTestName = cms.string('noiseSectorOccInRange'),                                   
00075     #OutputFileName = cms.string('noiseDBValidation.root')
00076 )
00077 
00078 process.qTester = cms.EDAnalyzer("QualityTester",
00079     prescaleFactor = cms.untracked.int32(1),
00080     reportThreshold = cms.untracked.string('black'),
00081     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
00082 )
00083 
00084 process.DQMStore.referenceFileName = ''
00085 process.dqmSaver.convention = 'Offline'
00086 process.dqmSaver.workflow = config.workflowName
00087 process.dqmSaver.dirName = config.outputdir 
00088 process.DQMStore.collateHistograms = False
00089 process.DQM.collectorHost = ''
00090 
00091 #process.p = cms.Path(process.dtNoiseAnalyzer*process.qTester*process.dqmSaver)
00092 process.p = cms.Path(process.qTester*
00093                      process.dtNoiseAnalyzer*
00094                      process.dqmSaver)
00095