CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customise_TkRecoMaterial Namespace Reference

Functions

def customizeRecoMaterialD49
 

Detailed Description

Customization functions for cmsDriver to change the phase-2 tracker reco material for geometry D49

Function Documentation

def customise_TkRecoMaterial.customizeRecoMaterialD49 (   process)
will replace one tracker reco material file with another one for geometry D49
syntax: --customise SLHCUpgradeSimulations/Configuration/customise_TkRecoMaterial.customizeRecoMaterialD49

Definition at line 3 of file customise_TkRecoMaterial.py.

3 
4 def customizeRecoMaterialD49(process):
5 
6  ''' will replace one tracker reco material file with another one for geometry D49
7  syntax: --customise SLHCUpgradeSimulations/Configuration/customise_TkRecoMaterial.customizeRecoMaterialD49
8  '''
9 
10  if hasattr(process,'XMLIdealGeometryESSource') and hasattr(process.XMLIdealGeometryESSource,'geomXMLFiles'):
11 
12  try:
13  process.XMLIdealGeometryESSource.geomXMLFiles.remove(
14  'Geometry/TrackerRecoData/data/PhaseII/TiltedTracker613_MB_2019_04/trackerRecoMaterial.xml'
15  )
16  process.XMLIdealGeometryESSource.geomXMLFiles.append(
17  'Geometry/TrackerRecoData/data/PhaseII/TiltedTracker613_MB_2019_04/v2_ITonly/trackerRecoMaterial.xml'
18  )
19  except ValueError:
20  raise SystemExit("\n\n ERROR! Could not replace trackerRecoMaterial.xml file, please check if D49 geometry is being used \n\n")
21 
22  return process