/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/HGCalValidation/test/python/testHFNoseSimHitStudy_cfg.py
149 строк
6 KB
Sunanda
Update the remaining test scripts i Validation/HGCalValidation.test/python wih the new tool whichfind the right ERA and Global tag for a phase2 scenario
15 янв 2025, 06:26
15 янв 2025, 06:26
b8c2c60
Код
Авторство
О чём код?
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) # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('SimGeneral.MixingModule.mixNoPU_cfi') process.load(geomFile) process.load('Configuration.StandardSequences.MagneticField_cff') process.load('Configuration.StandardSequences.Generator_cff') process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi') process.load('GeneratorInterface.Core.genFilterSummary_cff') process.load('Configuration.StandardSequences.SimIdeal_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Validation.HGCalValidation.hfnoseSimHitStudy_cfi') process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10000), output = cms.optional.untracked.allowed(cms.int32,cms.PSet) ) if hasattr(process,'MessageLogger'): process.MessageLogger.HGCalGeom=dict() process.MessageLogger.HFNSim=dict() process.MessageLogger.HGCalValidation=dict() # Input source process.source = cms.Source("EmptySource") process.options = cms.untracked.PSet( IgnoreCompletely = cms.untracked.vstring(), Rethrow = cms.untracked.vstring(), TryToContinue = cms.untracked.vstring(), allowUnscheduled = cms.obsolete.untracked.bool, canDeleteEarly = cms.untracked.vstring(), emptyRunLumiMode = cms.obsolete.untracked.string, eventSetup = cms.untracked.PSet( forceNumberOfConcurrentIOVs = cms.untracked.PSet( ), numberOfConcurrentIOVs = cms.untracked.uint32(1) ), fileMode = cms.untracked.string('FULLMERGE'), forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False), makeTriggerResults = cms.obsolete.untracked.bool, numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1), numberOfConcurrentRuns = cms.untracked.uint32(1), numberOfStreams = cms.untracked.uint32(0), numberOfThreads = cms.untracked.uint32(1), printDependencies = cms.untracked.bool(False), sizeOfStackForThreadsInKB = cms.optional.untracked.uint32, throwIfIllegalParameter = cms.untracked.bool(True), wantSummary = cms.untracked.bool(False) ) # Production Info process.configurationMetadata = cms.untracked.PSet( annotation = cms.untracked.string('1000 GeV Muons nevts:1000'), name = cms.untracked.string('Applications'), version = cms.untracked.string('$Revision: 1.19 $') ) # Output definition process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('generation_step') ), dataset = cms.untracked.PSet( dataTier = cms.untracked.string('GEN-SIM'), filterName = cms.untracked.string('') ), fileName = cms.untracked.string('file:step1D94.root'), outputCommands = process.FEVTDEBUGEventContent.outputCommands, splitLevel = cms.untracked.int32(0) ) # Additional output definition process.TFileService = cms.Service("TFileService", fileName = cms.string('hfnSimHitD94mu.root'), closeFileFast = cms.untracked.bool(True) ) # Other statements process.genstepfilter.triggerConditions=cms.vstring("generation_step") from Configuration.AlCa.GlobalTag import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, GLOBAL_TAG, '') process.generator = cms.EDProducer("FlatRandomEGunProducer", PGunParameters = cms.PSet( PartID = cms.vint32(13), MinEta = cms.double(3.00), MaxEta = cms.double(4.30), MinPhi = cms.double(-3.1415926), MaxPhi = cms.double(3.1415926), MinE = cms.double(1000.00), MaxE = cms.double(1000.00) ), Verbosity = cms.untracked.int32(0), AddAntiParticle = cms.bool(True) ) process.ProductionFilterSequence = cms.Sequence(process.generator) # Path and EndPath definitions process.generation_step = cms.Path(process.pgen) process.simulation_step = cms.Path(process.psim) process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) process.analysis_step = cms.Path(process.hgcalSimHitStudy) process.endjob_step = cms.EndPath(process.endOfProcess) process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) # Schedule definition process.schedule = cms.Schedule(process.generation_step, process.genfiltersummary_step, process.simulation_step, process.analysis_step, process.endjob_step, # process.FEVTDEBUGoutput_step ) from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask associatePatAlgosToolsTask(process) # filter all path with the production filter sequence for path in process.paths: getattr(process,path).insert(0, process.ProductionFilterSequence) # Customisation from command line # Add early deletion of temporary data products to reduce peak memory need from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete process = customiseEarlyDelete(process) # End adding early deletion