Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:38

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 # next line is for old releases, prior to 7XX
0033 #process.GlobalTag.globaltag = os.environ['TEST_GLOBAL_TAG']+'::All'
0034 
0035 process.load("Validation.RecoEgamma.electronIsoFromDeps_cff")
0036 process.load("Validation.RecoEgamma.ElectronMcFakeValidator_cfi")
0037 
0038 process.electronMcFakeValidator.OutputFile = cms.string(os.environ['TEST_HISTOS_FILE'])
0039 
0040 process.p = cms.Path(process.electronIsoFromDeps*process.electronMcFakeValidator*process.dqmStoreStats)
0041 #process.p = cms.Path(process.electronMcFakeValidator*process.dqmStoreStats)
0042 
0043