Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:13

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0004 
0005 import os
0006 import sys
0007 import re
0008 
0009 readFiles = cms.untracked.vstring()
0010 
0011 matchRootFile = re.compile("\S*\.root$")
0012 for argument in sys.argv[2:]:
0013    if matchRootFile.search(argument):
0014       fileToRead = "file:"+argument
0015       readFiles.append(fileToRead)
0016 
0017 print("readFiles : \n", readFiles)
0018 
0019 process = cms.Process("CONV")
0020 process.load("Configuration.StandardSequences.Reconstruction_cff")
0021 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0022 
0023 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0024 from Configuration.AlCa.autoCond import autoCond
0025 process.GlobalTag.globaltag = autoCond['com10']
0026 
0027 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0028 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0029 
0030 # summary
0031 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0032 
0033 process.load("DQMServices.Core.DQM_cfg")
0034 process.DQM.collectorHost = ''
0035 
0036 process.maxEvents = cms.untracked.PSet(
0037     input = cms.untracked.int32(-1)
0038 )
0039 
0040 process.source = cms.Source("PoolSource",
0041     fileNames = readFiles
0042 )
0043 
0044 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0045 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0046 
0047 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0048 Workflow = '/HcalValidation/'+'Harvesting/'+str(cmssw_version)
0049 process.dqmSaver.workflow = Workflow
0050 
0051 process.calotowersClient = DQMEDHarvester("CaloTowersClient", 
0052      outputFile = cms.untracked.string('CaloTowersHarvestingME.root'),
0053      DQMDirName = cms.string("/") # root directory
0054 )
0055 
0056 process.noiseratesClient = DQMEDHarvester("NoiseRatesClient", 
0057      outputFile = cms.untracked.string('NoiseRatesHarvestingME.root'),
0058      DQMDirName = cms.string("/") # root directory
0059 )
0060 
0061 process.hcalrechitsClient = DQMEDHarvester("HcalRecHitsClient", 
0062      outputFile = cms.untracked.string('HcalRecHitsHarvestingME.root'),
0063      DQMDirName = cms.string("/") # root directory
0064 )
0065 
0066 process.p = cms.Path(process.EDMtoME * process.calotowersClient * process.noiseratesClient * process.hcalrechitsClient * process.dqmSaver)