CMS 3D CMS Logo

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

Functions

def custom_identification_drnn_cone
 
def custom_identification_drnn_dbscan
 
def custom_identification_histomax
 

Function Documentation

def customIdentification.custom_identification_drnn_cone (   process,
  working_points = tight_wp 
)

Definition at line 7 of file customIdentification.py.

References custom_identification_drnn_dbscan(), and ComparisonHelper.zip().

7 
8  ):
9  if len(working_points)!=len(working_points_drnn_cone):
10  raise RuntimeError('HGC TPG ID: Number of working points ({0}) not compatible with number of categories ({1})'.format(
11  len(working_points), len(working_points_drnn_cone)))
12  for wp,cat in zip(working_points,working_points_drnn_cone):
13  if not wp in cat:
14  raise KeyError('HGC TPG ID: Cannot find a cut corresponding to the working point {}'.format(wp))
15  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters
16  identification = egamma_identification_drnn_cone.clone(
17  WorkingPoints = cms.vdouble(
18  [wps[eff] for wps,eff in zip(working_points_drnn_cone,working_points)]
19  )
20  )
21  parameters_c3d.EGIdentification = identification
22  return process
23 
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
def customIdentification.custom_identification_drnn_dbscan (   process,
  working_points = tight_wp 
)

Definition at line 26 of file customIdentification.py.

References custom_identification_histomax(), and ComparisonHelper.zip().

Referenced by custom_identification_drnn_cone().

26 
27  ):
28  if len(working_points)!=len(working_points_drnn_dbscan):
29  raise RuntimeError('HGC TPG ID: Number of working points ({0}) not compatible with number of categories ({1})'.format(
30  len(working_points), len(working_points_drnn_dbscan)))
31  for wp,cat in zip(working_points,working_points_drnn_dbscan):
32  if not wp in cat:
33  raise KeyError('HGC TPG ID: Cannot find a cut corresponding to the working point {}'.format(wp))
34  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters
35  identification = egamma_identification_drnn_dbscan.clone(
36  WorkingPoints = cms.vdouble(
37  [wps[eff] for wps,eff in zip(working_points_drnn_dbscan,working_points)]
38  )
39  )
40  parameters_c3d.EGIdentification = identification
41  return process
42 
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
def customIdentification.custom_identification_histomax (   process,
  working_points = tight_wp 
)

Definition at line 45 of file customIdentification.py.

References ComparisonHelper.zip().

Referenced by custom_identification_drnn_dbscan().

45 
46  ):
47  if len(working_points)!=len(working_points_histomax):
48  raise RuntimeError('HGC TPG ID: Number of working points ({0}) not compatible with number of categories ({1})'.format(
49  len(working_points), len(working_points_histomax)))
50  for wp,cat in zip(working_points,working_points_drnn_dbscan):
51  if not wp in cat:
52  raise KeyError('HGC TPG ID: Cannot find a cut corresponding to the working point {}'.format(wp))
53  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters
54  identification = egamma_identification_histomax.clone(
55  WorkingPoints = cms.vdouble(
56  [wps[eff] for wps,eff in zip(working_points_histomax,working_points)]
57  )
58  )
59  parameters_c3d.EGIdentification = identification
60  return process
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)