CMS 3D CMS Logo

Functions
customIdentification Namespace Reference

Functions

def custom_identification_drnn_cone (process, working_points=tight_wp)
 
def custom_identification_drnn_dbscan (process, working_points=tight_wp)
 
def custom_identification_histomax (process, working_points=tight_wp)
 

Function Documentation

◆ custom_identification_drnn_cone()

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 reco.zip().

7  ):
8  if len(working_points)!=len(working_points_drnn_cone):
9  raise RuntimeError('HGC TPG ID: Number of working points ({0}) not compatible with number of categories ({1})'.format(
10  len(working_points), len(working_points_drnn_cone)))
11  for wp,cat in zip(working_points,working_points_drnn_cone):
12  if not wp in cat:
13  raise KeyError('HGC TPG ID: Cannot find a cut corresponding to the working point {}'.format(wp))
14  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters
15  identification = egamma_identification_drnn_cone.clone(
16  WorkingPoints = cms.vdouble(
17  [wps[eff] for wps,eff in zip(working_points_drnn_cone,working_points)]
18  )
19  )
20  parameters_c3d.EGIdentification = identification
21  return process
22 
23 
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float zip(ConstView const &tracks, int32_t i)
Definition: TracksSoA.h:90

◆ custom_identification_drnn_dbscan()

def customIdentification.custom_identification_drnn_dbscan (   process,
  working_points = tight_wp 
)

Definition at line 26 of file customIdentification.py.

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

Referenced by custom_identification_drnn_cone().

26  ):
27  if len(working_points)!=len(working_points_drnn_dbscan):
28  raise RuntimeError('HGC TPG ID: Number of working points ({0}) not compatible with number of categories ({1})'.format(
29  len(working_points), len(working_points_drnn_dbscan)))
30  for wp,cat in zip(working_points,working_points_drnn_dbscan):
31  if not wp in cat:
32  raise KeyError('HGC TPG ID: Cannot find a cut corresponding to the working point {}'.format(wp))
33  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters
34  identification = egamma_identification_drnn_dbscan.clone(
35  WorkingPoints = cms.vdouble(
36  [wps[eff] for wps,eff in zip(working_points_drnn_dbscan,working_points)]
37  )
38  )
39  parameters_c3d.EGIdentification = identification
40  return process
41 
42 
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float zip(ConstView const &tracks, int32_t i)
Definition: TracksSoA.h:90

◆ custom_identification_histomax()

def customIdentification.custom_identification_histomax (   process,
  working_points = tight_wp 
)

Definition at line 45 of file customIdentification.py.

References reco.zip().

Referenced by custom_identification_drnn_dbscan().

45  ):
46  if len(working_points)!=len(working_points_histomax):
47  raise RuntimeError('HGC TPG ID: Number of working points ({0}) not compatible with number of categories ({1})'.format(
48  len(working_points), len(working_points_histomax)))
49  for wp,cat in zip(working_points,working_points_drnn_dbscan):
50  if not wp in cat:
51  raise KeyError('HGC TPG ID: Cannot find a cut corresponding to the working point {}'.format(wp))
52  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters
53  identification = egamma_identification_histomax.clone(
54  WorkingPoints = cms.vdouble(
55  [wps[eff] for wps,eff in zip(working_points_histomax,working_points)]
56  )
57  )
58  parameters_c3d.EGIdentification = identification
59  return process
60 
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float zip(ConstView const &tracks, int32_t i)
Definition: TracksSoA.h:90