File indexing completed on 2024-08-21 04:46:56
0001 from __future__ import print_function
0002
0003 import sys
0004 import os
0005 import FWCore.ParameterSet.Config as cms
0006
0007 print('Number of arguments:', len(sys.argv), 'arguments.')
0008 print('Argument List:', str(sys.argv))
0009
0010
0011
0012
0013 from electronValidationCheck_Env import env
0014
0015 cmsEnv = env()
0016
0017 cmsEnv.checkSample()
0018 cmsEnv.checkValues()
0019
0020 import DQMOffline.EGamma.electronDataDiscovery as dd
0021
0022 if cmsEnv.beginTag() == 'Run2_2017':
0023 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0024 process = cms.Process("electronValidation",Run2_2017)
0025 elif cmsEnv.beginTag() == 'Run3':
0026 from Configuration.Eras.Era_Run3_cff import Run3
0027 process = cms.Process('electronValidation', Run3)
0028 else:
0029 from Configuration.Eras.Era_Phase2_cff import Phase2
0030 process = cms.Process('electronValidation',Phase2)
0031
0032 process.DQMStore = cms.Service("DQMStore")
0033 process.load("DQMServices.Components.DQMStoreStats_cfi")
0034 from DQMServices.Components.DQMStoreStats_cfi import *
0035
0036 dqmStoreStats.runOnEndJob = cms.untracked.bool(True)
0037
0038
0039 max_number = -1
0040 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(max_number))
0041
0042
0043 data = os.environ['data']
0044 flist = dd.getCMSdata(data)
0045 print(flist)
0046 process.source = cms.Source("PoolSource", fileNames=cms.untracked.vstring(*flist))
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064 process.load('Configuration.StandardSequences.Services_cff')
0065 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0066 process.load('FWCore.MessageService.MessageLogger_cfi')
0067 process.load('Configuration.EventContent.EventContent_cff')
0068 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0069 process.load('Configuration.StandardSequences.GeometryDB_cff')
0070 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0071 process.load('Configuration.StandardSequences.RawToDigi_cff')
0072 process.load('Configuration.StandardSequences.Reconstruction_cff')
0073 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0074 process.load("Configuration.StandardSequences.EDMtoMEAtJobEnd_cff")
0075 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0076
0077 from Configuration.AlCa.autoCond import autoCond
0078
0079
0080
0081
0082
0083 process.load("Validation.RecoEgamma.electronIsoFromDeps_cff")
0084 process.load("Validation.RecoEgamma.ElectronMcSignalValidatorPt1000_gedGsfElectrons_cfi")
0085
0086
0087 process.load("DQMServices.Core.DQM_cfg")
0088 process.load("DQMServices.Components.DQMEnvironment_cfi")
0089
0090 process.EDM = cms.OutputModule("PoolOutputModule",
0091 outputCommands = cms.untracked.vstring('drop *',"keep *_MEtoEDMConverter_*_*"),
0092 fileName = cms.untracked.string(os.environ['outputFile'])
0093
0094 )
0095
0096 process.electronMcSignalValidatorPt1000.InputFolderName = cms.string("EgammaV/ElectronMcSignalValidatorPt1000")
0097 process.electronMcSignalValidatorPt1000.OutputFolderName = cms.string("EgammaV/ElectronMcSignalValidatorPt1000")
0098
0099 process.p = cms.Path(process.electronMcSignalValidatorPt1000 * process.MEtoEDMConverter * process.dqmStoreStats)
0100
0101 process.outpath = cms.EndPath(
0102 process.EDM,
0103 )