/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/Configuration/python/Geometries_cff.py
52 строки
3 KB
Kevin Pedro
support both DB and XML geometry for FastSim
14 мар 2026, 03:24
14 мар 2026, 03:24
78be03a
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms def _fastSimGeometryCustoms(process, _trackerGeometry, _DTGeometryESModule, _CSCGeometryESModule, suff=''): # The tracker geometry left-over (for aligned/misaligned geometry) # The goemetry used for reconstruction must not be misaligned. getattr(process,'trackerGeometry'+suff).applyAlignment = False # Create a misaligned geometry for simulation process.misalignedTrackerGeometry = _trackerGeometry.clone() # The misalignment is not applied by default process.misalignedTrackerGeometry.applyAlignment = False # Label of the produced TrackerGeometry: process.misalignedTrackerGeometry.appendToDataLabel = 'MisAligned' # The DT geometry left-over (for aligned/misaligned geometry) # The geometry used for reconstruction must not be misaligned. process.DTGeometryESModule.applyAlignment = False # Create a misaligned geometry for simulation process.misalignedDTGeometry = _DTGeometryESModule.clone() # The misalignment is not applied by default process.misalignedDTGeometry.applyAlignment = False # Label of the produced DTGeometry: process.misalignedDTGeometry.appendToDataLabel = 'MisAligned' # The CSC geometry left-over (for aligned/misaligned geometry) # The geometry used for reconstruction must not be misaligned. process.CSCGeometryESModule.applyAlignment = False # Create a misaligned geometry for simulation process.misalignedCSCGeometry = _CSCGeometryESModule.clone() # The misalignment is not applied by default process.misalignedCSCGeometry.applyAlignment = False # Label of the produced CSCGeometry: process.misalignedCSCGeometry.appendToDataLabel = 'MisAligned' # Reconstruction and Interaction tracker geometries process.load("FastSimulation.Configuration.TrackerRecoGeometryESProducer_cfi") # The Calo geometry service model left-over process.load("Geometry.CaloEventSetup.CaloTopology_cfi") # The muon geometry left-over process.load("RecoMuon.DetLayers.muonDetLayerGeometry_cfi") # These used to be applied in separate Geometries_MC_cff and Geometries_START_cff files # Since those are the only FastSim variants ever used/exposed through cmsDriver, # just include these settings here as default # Apply Tracker and Muon misalignment process.misalignedTrackerGeometry.applyAlignment = True process.misalignedDTGeometry.applyAlignment = True process.misalignedCSCGeometry.applyAlignment = True # now executed directly in cmsDriver.py instead of separate Geometries_START_cff file _fastSimGeometryCustomStart = 'process.fastSimProducer.detectorDefinition.trackerAlignmentLabel = cms.untracked.string("")'