/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimGeneral/MixingModule/python/caloTruthProducer_cfi.py
81 строка
3 KB
Théo Cuisset
Add setting to toggle creation of legacy SimCluster and creation of "new" (boundary, merged, CaloParticle-SimCluster) SimCluster collections
28 мар 2026, 13:59
28 мар 2026, 13:59
f669da1
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms caloParticles = cms.PSet( accumulatorType = cms.string('CaloTruthAccumulator'), # createUnmergedCollection = cms.bool(True), # createMergedBremsstrahlung = cms.bool(True), # createInitialVertexCollection = cms.bool(False), # alwaysAddAncestors = cms.bool(True), MinEnergy = cms.double(0.5), MaxPseudoRapidity = cms.double(5.0), produceLegacySimCluster = cms.bool(True), produceBoundaryAndMergedSimCluster = cms.bool(True), premixStage1 = cms.bool(False), doHGCAL = cms.bool(True), maximumPreviousBunchCrossing = cms.uint32(0), maximumSubsequentBunchCrossing = cms.uint32(0), simHitCollections = cms.PSet( hgc = cms.VInputTag( cms.InputTag('g4SimHits','HGCHitsEE'), cms.InputTag('g4SimHits','HGCHitsHEfront'), cms.InputTag('g4SimHits','HGCHitsHEback') ), # hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')), # ecal = cms.VInputTag( # cms.InputTag('g4SimHits','EcalHitsEE'), # cms.InputTag('g4SimHits','EcalHitsEB'), # cms.InputTag('g4SimHits','EcalHitsES') # ) ), simTrackCollection = cms.InputTag('g4SimHits'), simVertexCollection = cms.InputTag('g4SimHits'), genParticleCollection = cms.InputTag('genParticles'), allowDifferentSimHitProcesses = cms.bool(False), # should be True for FastSim, False for FullSim HepMCProductLabel = cms.InputTag('generatorSmeared'), simClusterMergerConfig = cms.PSet( jetClusteringRadius = cms.double(0.05) ) ) from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1 premix_stage1.toModify(caloParticles, premixStage1 = True) from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose phase2_hfnose.toModify( caloParticles, simHitCollections = dict( hgc = caloParticles.simHitCollections.hgc + [cms.InputTag('g4SimHits','HFNoseHits')], # hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')) ) ) from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering run3_ecalclustering.toModify( caloParticles, simHitCollections = cms.PSet( ecal = cms.VInputTag( cms.InputTag('g4SimHits','EcalHitsEE'), cms.InputTag('g4SimHits','EcalHitsEB'), cms.InputTag('g4SimHits','EcalHitsES') ) ) ) from Configuration.Eras.Modifier_fastSim_cff import fastSim fastSim.toReplaceWith(caloParticles, cms.PSet()) # don't allow this to run in fastsim from Configuration.ProcessModifiers.ticl_barrel_cff import ticl_barrel ticl_barrel.toModify( caloParticles, simHitCollections = cms.PSet( hgc = cms.VInputTag( cms.InputTag('g4SimHits', 'HGCHitsEE'), cms.InputTag('g4SimHits', 'HGCHitsHEfront'), cms.InputTag('g4SimHits', 'HGCHitsHEback'), ), hcal = cms.VInputTag(cms.InputTag('g4SimHits', 'HcalHits')), ecal = cms.VInputTag( cms.InputTag('g4SimHits', 'EcalHitsEB') ) ) )