Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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_Data_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.Core.DQMStore_cfi")
0020 #process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0021 
0022 #process.load("DQMOffline.Configuration.DQMOffline_cff")
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(-1)
0026 )
0027 
0028 process.source = cms.Source("PoolSource",
0029     fileNames = cms.untracked.vstring(
0030         '/store/data/Run2012D/JetHT/RECO/22Jan2013-v1/10004/1ACCAD9D-E496-E211-AA96-90E6BA19A25A.root',
0031         '/store/data/Run2012D/JetHT/RECO/22Jan2013-v1/10005/92C62727-2897-E211-8FDA-20CF3027A62F.root',
0032         '/store/data/Run2012D/JetHT/RECO/22Jan2013-v1/10015/DE3B5E5B-DE96-E211-BF85-002590747D92.root',
0033         '/store/data/Run2012D/JetHT/RECO/22Jan2013-v1/10015/F2E70090-DD96-E211-AA17-E0CB4EA0A8FE.root',
0034         '/store/data/Run2012D/JetHT/RECO/22Jan2013-v1/10015/FC59BBF3-DE96-E211-B868-E0CB4E1A11A1.root'
0035       ),
0036     inputCommands = cms.untracked.vstring('keep *', 'drop *_MEtoEDMConverter_*_*')
0037 )
0038 
0039 #process.FEVT = cms.OutputModule("PoolOutputModule",
0040 #     outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0041 #     fileName = cms.untracked.string("HcalValHarvestingEDM.root")
0042 #)
0043 
0044 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0045 process.hcalTowerAnalyzer = DQMEDAnalyzer('CaloTowersValidation',
0046     outputFile               = cms.untracked.string('CaloTowersValidationRelVal.root'),
0047     CaloTowerCollectionLabel = cms.untracked.InputTag('towerMaker'),
0048 
0049     hcalselector             = cms.untracked.string('all'),
0050     mc                       = cms.untracked.string('no'),
0051     useAllHistos             = cms.untracked.bool(False)                         
0052 )
0053 
0054 process.noiseRates = DQMEDHarvester('NoiseRates',
0055     outputFile   = cms.untracked.string('NoiseRatesRelVal.root'),
0056     rbxCollName  = cms.untracked.InputTag('hcalnoise'),
0057 
0058     minRBXEnergy = cms.untracked.double(20.0),
0059     minHitEnergy = cms.untracked.double(1.5),
0060     useAllHistos = cms.untracked.bool(False)                         
0061 )
0062 
0063 process.hcalRecoAnalyzer = DQMEDAnalyzer('HcalRecHitsValidation',
0064     outputFile                = cms.untracked.string('HcalRecHitValidationRelVal.root'),
0065     HBHERecHitCollectionLabel = cms.untracked.InputTag("hbhereco"),
0066     HFRecHitCollectionLabel   = cms.untracked.InputTag("hfreco"),
0067     HORecHitCollectionLabel   = cms.untracked.InputTag("horeco"),
0068 
0069     eventype                  = cms.untracked.string('multi'),
0070     ecalselector              = cms.untracked.string('yes'),
0071     hcalselector              = cms.untracked.string('all'),
0072     mc                        = cms.untracked.string('no'),
0073 )
0074 
0075 process.load('Configuration/StandardSequences/EDMtoMEAtRunEnd_cff')
0076 process.dqmSaver.referenceHandling = cms.untracked.string('all')
0077 
0078 cmssw_version = os.environ.get('CMSSW_VERSION','CMSSW_X_Y_Z')
0079 Workflow = '/HcalValidation/'+'Harvesting/'+str(cmssw_version)
0080 process.dqmSaver.workflow = Workflow
0081 #process.dqmSaver.saveByRun         = 1
0082 #process.dqmSaver.saveAtJobEnd = False
0083 
0084 process.calotowersClient = DQMEDHarvester("CaloTowersClient", 
0085      outputFile = cms.untracked.string('CaloTowersHarvestingME.root'),
0086      DQMDirName = cms.string("/") # root directory
0087 )
0088 
0089 process.noiseratesClient = DQMEDHarvester("NoiseRatesClient", 
0090      outputFile = cms.untracked.string('NoiseRatesHarvestingME.root'),
0091      DQMDirName = cms.string("/") # root directory
0092 )
0093 
0094 process.hcalrechitsClient = DQMEDHarvester("HcalRecHitsClient", 
0095      outputFile = cms.untracked.string('HcalRecHitsHarvestingME.root'),
0096      DQMDirName = cms.string("/") # root directory
0097 )
0098 
0099 ##########
0100 process.calotowersAnalyzer = DQMEDAnalyzer('CaloTowersAnalyzer',
0101      outputFile               = cms.untracked.string(''),
0102      CaloTowerCollectionLabel = cms.untracked.InputTag('towerMaker'),
0103      hcalselector             = cms.untracked.string('all'),
0104      useAllHistos             = cms.untracked.bool(False)
0105 )
0106  
0107 process.hcalRecHitsAnalyzer = DQMEDAnalyzer('HcalRecHitsAnalyzer',
0108 #    outputFile                = cms.untracked.string('HcalRecHitValidationRelVal.root'),
0109     outputFile                = cms.untracked.string(''),
0110 
0111     HBHERecHitCollectionLabel = cms.untracked.InputTag("hbhereco"),
0112     HFRecHitCollectionLabel   = cms.untracked.InputTag("hfreco"),
0113     HORecHitCollectionLabel   = cms.untracked.InputTag("horeco"),
0114 
0115     eventype                  = cms.untracked.string('multi'),
0116     ecalselector              = cms.untracked.string('yes'),
0117     hcalselector              = cms.untracked.string('all'),
0118     useAllHistos              = cms.untracked.bool(False)                                 
0119 )
0120 
0121 process.hcalNoiseRates = DQMEDHarvester('HcalNoiseRates',
0122 #    outputFile   = cms.untracked.string('NoiseRatesRelVal.root'),
0123     outputFile   = cms.untracked.string(''),
0124     rbxCollName  = cms.untracked.InputTag('hcalnoise'),
0125     minRBXEnergy = cms.untracked.double(20.0),
0126     minHitEnergy = cms.untracked.double(1.5),
0127     useAllHistos = cms.untracked.bool(False)
0128 )
0129 
0130 ##########
0131 
0132 process.p2 = cms.Path( process.hcalTowerAnalyzer * process.noiseRates * process.hcalRecoAnalyzer * 
0133                        process.calotowersAnalyzer * process.hcalRecHitsAnalyzer * process.hcalNoiseRates)
0134 #                       * process.calotowersClient * process.noiseratesClient * process.hcalrechitsClient * process.dqmSaver)
0135 
0136 #
0137 # DQMIO
0138 #
0139 process.load('Configuration.EventContent.EventContent_cff')
0140 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0141     splitLevel = cms.untracked.int32(0),
0142     outputCommands = process.DQMEventContent.outputCommands,
0143     fileName = cms.untracked.string('file:DQMIO.root'),
0144     dataset = cms.untracked.PSet(
0145         filterName = cms.untracked.string(''),
0146         dataTier = cms.untracked.string('DQMIO')
0147     )
0148 )
0149 
0150 #process.output = cms.EndPath(process.FEVT * process.DQMoutput)
0151 process.output = cms.EndPath(process.DQMoutput)
0152 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )