/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/HGCalValidation/test/python/runHFNoseSimHitStudy_cfg.py
44 строки
2 KB
Sunanda
Update some of the test scripts in Validation/HGCalValidation/test/python using a new tool which finds the right ERA and Global Tag
14 янв 2025, 19:16
14 янв 2025, 19:16
f43a5f2
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms geomName = "Run4D115" geomFile = "Configuration.Geometry.GeometryExtended" + geomName + "Reco_cff" import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings GLOBAL_TAG, ERA = _settings.get_era_and_conditions(geomName) print("Geometry Name: ", geomName) print("Geom file Name: ", geomFile) print("Global Tag Name: ", GLOBAL_TAG) print("Era Name: ", ERA) process = cms.Process('HFNoseSimHitStudy',ERA) process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") process.load(geomFile) process.load("Configuration.StandardSequences.MagneticField_cff") process.load("Configuration.EventContent.EventContent_cff") process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Validation.HGCalValidation.hfnoseSimHitStudy_cfi') process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, GLOBAL_TAG, '') if hasattr(process,'MessageLogger'): process.MessageLogger.HGCalValidation=dict() process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:step1D94.root') ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.TFileService = cms.Service("TFileService", fileName = cms.string('hfnSimHitD94tt.root'), closeFileFast = cms.untracked.bool(True) ) process.analysis_step = cms.Path(process.hgcalSimHitStudy) # Schedule definition process.schedule = cms.Schedule(process.analysis_step)