/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/HGCalValidation/test/python/runHFNoseRecHitStudy_cfg.py
46 строк
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 import FWCore.Utilities.FileUtils as FileUtils 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('HFNoseRecHitStudy',ERA) process.load(geomFile) process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load('Configuration.StandardSequences.MagneticField_cff') process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') from Configuration.AlCa.GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, GLOBAL_TAG, '') process.MessageLogger.cerr.FwkReport.reportEvery = 2 if 'MessageLogger' in process.__dict__: process.MessageLogger.HGCalValidation=dict() process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:step3D94.root') ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.load('Validation.HGCalValidation.hfnoseRecHitStudy_cfi') process.TFileService = cms.Service("TFileService", fileName = cms.string('hfnRecHitD94tt.root'), closeFileFast = cms.untracked.bool(True) ) SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) ) process.p = cms.Path(process.hfnoseRecHitStudy)