Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:55

0001 import os
0002 import FWCore.ParameterSet.Config as cms
0003 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0004 
0005 process = cms.Process("CONV")
0006 
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0009 
0010 process.load("DQMServices.Core.DQMStore_cfi")
0011 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(-1)
0015 )
0016 
0017 process.source = cms.Source("PoolSource",
0018     fileNames = cms.untracked.vstring(
0019        'file:pi50_1.root',
0020        'file:pi50_2.root',
0021        'file:pi50_3.root',
0022        'file:pi50_4.root',
0023        'file:pi50_5.root',
0024        'file:pi50_6.root',
0025        'file:pi50_7.root',
0026        'file:pi50_8.root',
0027        'file:pi50_9.root',
0028        'file:pi50_10.root',
0029        'file:pi50_11.root',
0030        'file:pi50_12.root',
0031        'file:pi50_13.root',
0032        'file:pi50_14.root',
0033        'file:pi50_15.root',
0034        'file:pi50_16.root',
0035        'file:pi50_17.root',
0036        'file:pi50_18.root',
0037        'file:pi50_19.root',
0038        'file:pi50_20.root',
0039        'file:pi50_21.root',
0040        'file:pi50_22.root',
0041        'file:pi50_23.root',
0042        'file:pi50_24.root',
0043        'file:pi50_25.root',
0044        'file:pi50_26.root',
0045        'file:pi50_27.root',
0046        'file:pi50_28.root',
0047        'file:pi50_29.root',
0048        'file:pi50_30.root',
0049        'file:pi50_31.root',
0050        'file:pi50_32.root',
0051        'file:pi50_33.root',
0052        'file:pi50_34.root',
0053        'file:pi50_35.root',
0054        'file:pi50_36.root',
0055        'file:pi50_37.root',
0056        'file:pi50_38.root',
0057        'file:pi50_39.root',
0058        'file:pi50_40.root',
0059        'file:pi50_41.root',
0060        'file:pi50_42.root',
0061        'file:pi50_43.root',
0062        'file:pi50_44.root',
0063        'file:pi50_45.root',
0064        'file:pi50_46.root',
0065        'file:pi50_47.root',
0066        'file:pi50_48.root',
0067        'file:pi50_49.root',
0068        'file:pi50_50.root'
0069       )
0070 )
0071 
0072 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0073 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0074 
0075 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0076 Workflow = '/HcalValidation/'+'Harvesting/'+str(cmssw_version)
0077 process.dqmSaver.workflow = Workflow
0078 
0079 process.hcaldigisClient = DQMEDHarvester("HcalDigisClient",
0080      outputFile = cms.untracked.string('HcalDigisHarvestingME.root'),
0081      DQMDirName = cms.string("/") # root directory
0082 )
0083 
0084 process.calotowersClient = DQMEDHarvester("CaloTowersClient", 
0085      outputFile = cms.untracked.string('CaloTowersHarvestingME.root'),
0086      DQMDirName = cms.string("/") # root directory
0087 )
0088 process.hcalrechitsClient = DQMEDHarvester("HcalRecHitsClient", 
0089      outputFile = cms.untracked.string('HcalRecHitsHarvestingME.root'),
0090      DQMDirName = cms.string("/") # root directory
0091 )
0092 
0093 process.p = cms.Path(
0094 process.EDMtoME * 
0095 process.calotowersClient * 
0096 process.hcalrechitsClient *
0097 process.hcaldigisClient *
0098 process.dqmSaver)