Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:10

0001 '''Customization functions for cmsDriver to change the phase-2 tracker reco material for geometry D49'''
0002 import FWCore.ParameterSet.Config as cms
0003 def customizeRecoMaterialD49(process):
0004     
0005     ''' will replace one tracker reco material file with another one for geometry D49
0006     syntax: --customise SLHCUpgradeSimulations/Configuration/customise_TkRecoMaterial.customizeRecoMaterialD49
0007     '''
0008     
0009     if hasattr(process,'XMLIdealGeometryESSource') and hasattr(process.XMLIdealGeometryESSource,'geomXMLFiles'):
0010         
0011         try:
0012             process.XMLIdealGeometryESSource.geomXMLFiles.remove(
0013                 'Geometry/TrackerRecoData/data/PhaseII/TiltedTracker613_MB_2019_04/trackerRecoMaterial.xml'
0014             )
0015             process.XMLIdealGeometryESSource.geomXMLFiles.append(
0016                 'Geometry/TrackerRecoData/data/PhaseII/TiltedTracker613_MB_2019_04/v2_ITonly/trackerRecoMaterial.xml'
0017             )
0018         except ValueError:
0019             raise SystemExit("\n\n ERROR! Could not replace trackerRecoMaterial.xml file, please check if D49 geometry is being used \n\n")
0020             
0021     return process