CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/DQMOffline/CalibMuon/python/dtTTrigDBValidation_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 = 'DTTtrig_V01_prompt'
00006 config.ttrigDB = 'ttrig.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-DTtTrigDBValidation-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('dtTTrigAnalyzer'),
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         TTrigDBValidation = cms.untracked.PSet( limit = cms.untracked.int32(10000000) ),
00026         threshold = cms.untracked.string('DEBUG'),
00027     ),
00028     categories = cms.untracked.vstring('TTrigDBValidation'),
00029     destinations = cms.untracked.vstring('cerr')
00030 )
00031 
00032 process.load("Configuration.StandardSequences.Geometry_cff")
00033 process.load("Geometry.DTGeometry.dtGeometry_cfi")
00034 process.DTGeometryESModule.applyAlignment = False
00035 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
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.ttrigRef = cms.ESSource("PoolDBESSource",
00051     DBParameters = cms.PSet(
00052         messageLevel = cms.untracked.int32(0),
00053         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
00054     ),
00055     timetype = cms.string('runnumber'),
00056     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_DT'),
00057     #connect = cms.string(''),
00058     toGet = cms.VPSet(
00059         cms.PSet(
00060             record = cms.string('DTTtrigRcd'),
00061             tag = cms.string(config.refTag),
00062             label = cms.untracked.string('ttrigRef')
00063         ), 
00064         cms.PSet(
00065             record = cms.string('DTTtrigRcd'),
00066             tag = cms.string('ttrig'),
00067             connect = cms.untracked.string('sqlite_file:%s' % config.ttrigDB),
00068             label = cms.untracked.string('ttrigToValidate')
00069         )
00070     ),
00071     siteLocalConfig = cms.untracked.bool(False)
00072 )
00073 
00074 process.dtTTrigAnalyzer = cms.EDAnalyzer("DTtTrigDBValidation",
00075     labelDBRef = cms.string('ttrigRef'),
00076     labelDB = cms.string('ttrigToValidate'),
00077     tTrigTestName = cms.string('tTrigDifferenceInRange'),
00078     #OutputFileName = cms.string('tTrigDBValidation_DT_tTrig_cosmics_2009_v3_prompt.root')
00079 )
00080 
00081 process.qTester = cms.EDAnalyzer("QualityTester",
00082     prescaleFactor = cms.untracked.int32(1),
00083     reportThreshold = cms.untracked.string('black'),
00084     qtList = cms.untracked.FileInPath('DQMOffline/CalibMuon/data/QualityTests.xml')
00085 )
00086 
00087 process.DQMStore.referenceFileName = ''
00088 process.dqmSaver.convention = 'Offline'
00089 process.dqmSaver.workflow = config.workflowName
00090 process.dqmSaver.dirName = config.outputdir
00091 process.DQMStore.collateHistograms = False
00092 process.DQM.collectorHost = ''
00093 """
00094 process.DQMStore.referenceFileName = ''
00095 process.DQMStore.collateHistograms = True
00096 process.dqmSaver.convention = 'Offline'
00097 process.dqmSaver.workflow = workflowName
00098 process.dqmSaver.saveByRun = -1
00099 process.dqmSaver.saveAtJobEnd = True
00100 process.dqmSaver.forceRunNumber = runNumber
00101 """
00102 
00103 #process.p = cms.Path(process.dtTTrigAnalyzer*process.qTester*process.dqmSaver)
00104 process.p = cms.Path(process.qTester*
00105                      process.dtTTrigAnalyzer*
00106                      process.dqmSaver)