File indexing completed on 2024-04-06 12:33:05
0001
0002 import sys
0003 import os
0004 import DQMOffline.EGamma.electronDataDiscovery as dd
0005 import FWCore.ParameterSet.Config as cms
0006
0007 process = cms.Process("electronValidation")
0008
0009 process.DQMStore = cms.Service("DQMStore")
0010 process.load("DQMServices.Components.DQMStoreStats_cfi")
0011 from DQMServices.Components.DQMStoreStats_cfi import *
0012 dqmStoreStats.runOnEndJob = cms.untracked.bool(True)
0013
0014 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0015 process.source = cms.Source ("PoolSource",fileNames = cms.untracked.vstring(),secondaryFileNames = cms.untracked.vstring())
0016 process.source.fileNames.extend(dd.search())
0017
0018 process.load('Configuration.StandardSequences.Services_cff')
0019 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 process.load('Configuration.EventContent.EventContent_cff')
0022 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0023 process.load('Configuration.StandardSequences.GeometryDB_cff')
0024 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0025 process.load('Configuration.StandardSequences.RawToDigi_cff')
0026 process.load('Configuration.StandardSequences.Reconstruction_cff')
0027 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0028 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0029
0030 from Configuration.AlCa.autoCond import autoCond
0031 process.GlobalTag.globaltag = autoCond[os.environ['TEST_GLOBAL_AUTOCOND']]
0032
0033
0034
0035
0036
0037
0038 process.load("Validation.RecoEgamma.electronIsoFromDeps_cff")
0039 process.load("Validation.RecoEgamma.ElectronMcSignalValidator_cfi")
0040
0041 process.electronMcSignalValidator.OutputFile = cms.string(os.environ['TEST_HISTOS_FILE'])
0042
0043
0044
0045 process.p = cms.Path(process.electronIsoFromDeps*process.electronMcSignalValidator*process.dqmStoreStats)
0046
0047