Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import os
0002 import FWCore.ParameterSet.Config as cms
0003 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0004 
0005 process = cms.Process("hcalval")
0006 process.load("Configuration.StandardSequences.Reconstruction_cff")
0007 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0008 
0009 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0010 from Configuration.AlCa.autoCond import autoCond
0011 process.GlobalTag.globaltag = autoCond['startup']
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 
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 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0038 process.hcalTowerAnalyzer = DQMEDAnalyzer('CaloTowersValidation',
0039     outputFile               = cms.untracked.string('CaloTowersValidationRelVal.root'),
0040     CaloTowerCollectionLabel = cms.untracked.InputTag('towerMaker'),
0041 
0042     hcalselector             = cms.untracked.string('all'),
0043     mc                       = cms.untracked.string('no'),
0044     useAllHistos             = cms.untracked.bool(False)                         
0045 )
0046 
0047 process.hcalNoiseRates = DQMEDHarvester('NoiseRates',
0048     outputFile   = cms.untracked.string('NoiseRatesRelVal.root'),
0049     rbxCollName  = cms.untracked.InputTag('hcalnoise'),
0050 
0051     minRBXEnergy = cms.untracked.double(20.0),
0052     minHitEnergy = cms.untracked.double(1.5),
0053     useAllHistos = cms.untracked.bool(False)                         
0054 )
0055 
0056 process.hcalRecoAnalyzer = DQMEDAnalyzer('HcalRecHitsValidation',
0057     outputFile                = cms.untracked.string('HcalRecHitValidationRelVal.root'),
0058     HBHERecHitCollectionLabel = cms.untracked.InputTag("hbhereco"),
0059     HFRecHitCollectionLabel   = cms.untracked.InputTag("hfreco"),
0060     HORecHitCollectionLabel   = cms.untracked.InputTag("horeco"),
0061 
0062     eventype                  = cms.untracked.string('multi'),
0063     ecalselector              = cms.untracked.string('yes'),
0064     hcalselector              = cms.untracked.string('all'),
0065     mc                        = cms.untracked.string('no'),
0066 )
0067 
0068 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0069 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0070 
0071 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0072 Workflow = '/HcalValidation/'+'Harvesting/'+str(cmssw_version)
0073 process.dqmSaver.workflow = Workflow
0074 
0075 process.calotowersClient = DQMEDHarvester("CaloTowersClient", 
0076      outputFile = cms.untracked.string('CaloTowersHarvestingME.root'),
0077      DQMDirName = cms.string("/") # root directory
0078 )
0079 
0080 process.noiseratesClient = DQMEDHarvester("NoiseRatesClient", 
0081      outputFile = cms.untracked.string('NoiseRatesHarvestingME.root'),
0082      DQMDirName = cms.string("/") # root directory
0083 )
0084 
0085 process.hcalrechitsClient = DQMEDHarvester("HcalRecHitsClient", 
0086      outputFile = cms.untracked.string('HcalRecHitsHarvestingME.root'),
0087      DQMDirName = cms.string("/") # root directory
0088 )
0089 
0090 process.p2 = cms.Path( process.hcalTowerAnalyzer * process.hcalNoiseRates * process.hcalRecoAnalyzer
0091                        * process.calotowersClient * process.noiseratesClient * process.hcalrechitsClient * process.dqmSaver)