File indexing completed on 2024-04-06 12:09:25
0001 import os
0002 import FWCore.ParameterSet.Config as cms
0003
0004 process = cms.Process("hcalval")
0005 process.load("Configuration.StandardSequences.Reconstruction_cff")
0006 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0007
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009 from Configuration.AlCa.autoCond import autoCond
0010 process.GlobalTag.globaltag = autoCond['startup']
0011
0012
0013 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0014 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0015
0016 process.load("DQMServices.Core.DQM_cfg")
0017 process.DQM.collectorHost = ''
0018
0019 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0020
0021 process.maxEvents = cms.untracked.PSet(
0022 input = cms.untracked.int32(-1)
0023 )
0024
0025 process.source = cms.Source("PoolSource",
0026 fileNames = cms.untracked.vstring(
0027 '/store/relval/CMSSW_6_0_0_pre8-GR_R_60_V1_RelVal_mb2012A/MinimumBias/RECO/v1/0000/E0F52BA5-6CCC-E111-B31F-002618943971.root'
0028 ),
0029 inputCommands = cms.untracked.vstring('keep *', 'drop *_MEtoEDMConverter_*_*')
0030 )
0031
0032 process.FEVT = cms.OutputModule("PoolOutputModule",
0033 outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0034 fileName = cms.untracked.string("HcalValHarvestingEDM.root")
0035 )
0036
0037
0038 process.load("DQMOffline.Hcal.HcalDQMOfflineSequence_cff")
0039
0040 process.calotowersAnalyzer.outputFile = cms.untracked.string('CaloTowersValidationRelVal.root')
0041 process.hcalNoiseRates.outputFile = cms.untracked.string('NoiseRatesRelVal.root')
0042 process.hcalRecHitsAnalyzer.outputFile = cms.untracked.string('HcalRecHitValidationRelVal.root')
0043
0044
0045 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0046 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0047
0048 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0049 Workflow = '/HcalValidation/'+'Harvesting/'+str(cmssw_version)
0050 process.dqmSaver.workflow = Workflow
0051
0052
0053 process.load("DQMOffline.Hcal.HcalDQMOfflinePostProcessor_cff")
0054
0055 process.calotowersDQMClient.outputFile = cms.untracked.string('CaloTowersHarvestingME.root')
0056 process.hcalNoiseRatesClient.outputFile = cms.untracked.string('NoiseRatesHarvestingME.root')
0057 process.hcalRecHitsDQMClient.outputFile = cms.untracked.string('HcalRecHitsHarvestingME.root')
0058
0059
0060 process.load("DQMServices.Components.DQMStoreStats_cfi")
0061
0062
0063 process.p2 = cms.Path( process.HcalDQMOfflineSequence
0064 * process.HcalDQMOfflinePostProcessor
0065 * process.dqmStoreStats
0066 * process.dqmSaver)