File indexing completed on 2024-11-06 06:07:01
0001
0002 import sys
0003 import os
0004 import FWCore.ParameterSet.Config as cms
0005
0006 from electronValidationCheck_Env import env
0007 cmsEnv = env()
0008
0009 cmsEnv.checkSample()
0010 cmsEnv.checkValues()
0011
0012 if cmsEnv.beginTag() == 'Run2_2017':
0013 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0014 process = cms.Process("electronPostValidation",Run2_2017)
0015 elif cmsEnv.beginTag() == 'Run3':
0016 from Configuration.Eras.Era_Run3_cff import Run3
0017 process = cms.Process('electronPostValidation', Run3)
0018 else:
0019 from Configuration.Eras.Era_Phase2_cff import Phase2
0020 process = cms.Process('electronPostValidation',Phase2)
0021
0022 process.DQMStore = cms.Service("DQMStore")
0023 process.load("Validation.RecoEgamma.ElectronMcFakePostValidator_cfi")
0024 process.load("DQMServices.Components.DQMStoreStats_cfi")
0025 process.load('Configuration.StandardSequences.Services_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027
0028 process.load("DQMServices.Core.DQM_cfg")
0029 process.load("DQMServices.Components.DQMEnvironment_cfi")
0030 process.load("Configuration.StandardSequences.EDMtoMEAtJobEnd_cff")
0031
0032 process.load('DQMOffline.Configuration.DQMOffline_cff')
0033
0034
0035 process.load("DQMServices.Components.DQMFileReader_cfi")
0036
0037 from DQMServices.Components.DQMStoreStats_cfi import *
0038 dqmStoreStats.runOnEndJob = cms.untracked.bool(True)
0039
0040
0041
0042 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0043 process.load('FWCore.MessageService.MessageLogger_cfi')
0044 process.load('Configuration.EventContent.EventContent_cff')
0045 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0046 process.load('Configuration.Geometry.GeometryExtendedRun4D76Reco_cff')
0047 process.load('Configuration.StandardSequences.MagneticField_cff')
0048 process.load('Configuration.StandardSequences.DQMSaverAtRunEnd_cff')
0049 process.load('Configuration.StandardSequences.Harvesting_cff')
0050
0051 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0052
0053 print('= inputPostFile : %s' % os.environ['inputPostFile'])
0054 localFileInput = os.environ['inputPostFile']
0055
0056 process.source = cms.Source ("PoolSource",fileNames = cms.untracked.vstring("file:" + localFileInput),
0057 secondaryFileNames = cms.untracked.vstring(),)
0058
0059 process.electronMcFakePostValidator.InputFolderName = cms.string("EgammaV/ElectronMcFakeValidator")
0060 process.electronMcFakePostValidator.OutputFolderName = cms.string("EgammaV/ElectronMcFakeValidator")
0061
0062 from Configuration.AlCa.autoCond import autoCond
0063
0064 process.GlobalTag.globaltag = '93X_upgrade2023_realistic_v2'
0065
0066
0067
0068 rel = os.environ['DD_SAMPLE']
0069 part1 = os.environ['DD_RELEASE']
0070 part2 = os.environ['TEST_GLOBAL_TAG']
0071 process.dqmSaver.workflow = '/' + rel + '/' + part1 + '-' + part2 + '/RECO'
0072 process.dqmsave_step = cms.Path(process.DQMSaver)
0073
0074 process.p = cms.Path(process.EDMtoME * process.electronMcFakePostValidator * process.dqmStoreStats)
0075
0076
0077 process.schedule = cms.Schedule(
0078 process.p,
0079 process.dqmsave_step,
0080 )