CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
TrackingEffFromHitPatternClientConfig_cff Namespace Reference

Functions

def __extendEfficiencyForPixels
 

Variables

tuple trackingEffFromHitPattern
 

Function Documentation

def TrackingEffFromHitPatternClientConfig_cff.__extendEfficiencyForPixels (   dets)
private
Inject the efficiency computation for the additional layers in the
PhaseI detectors wrt Run2. The input list is cloned and modified
rather than updated in place. The substitution add another layer
by replacing flat '3' -> '4' for the barrel case and '2' -> '3'
for the forward case.

Definition at line 95 of file TrackingEffFromHitPatternClientConfig_cff.py.

References match().

95 
97  """Inject the efficiency computation for the additional layers in the
98  PhaseI detectors wrt Run2. The input list is cloned and modified
99  rather than updated in place. The substitution add another layer
100  by replacing flat '3' -> '4' for the barrel case and '2' -> '3'
101  for the forward case.
102  """
103  from re import match
104  ret = []
105  for d in dets:
106  ret.append(d)
107  if match('.*PXB3.*', d):
108  ret.append(d.replace('3', '4'))
109  elif match('.*PXF2.*', d):
110  ret.append(d.replace('2', '3'))
111  return ret
112 
113 
# Use additional pixel layers in PhaseI geometry.
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10

Variable Documentation

tuple TrackingEffFromHitPatternClientConfig_cff.trackingEffFromHitPattern

Definition at line 3 of file TrackingEffFromHitPatternClientConfig_cff.py.