1 import FWCore.ParameterSet.Config
as cms
6 working_points=tight_wp
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):
13 raise KeyError(
'HGC TPG ID: Cannot find a cut corresponding to the working point {}'.
format(wp))
14 parameters_c3d = process.hgcalBackEndLayer2Producer.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)]
20 parameters_c3d.EGIdentification = identification
25 working_points=tight_wp
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):
32 raise KeyError(
'HGC TPG ID: Cannot find a cut corresponding to the working point {}'.
format(wp))
33 parameters_c3d = process.hgcalBackEndLayer2Producer.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)]
39 parameters_c3d.EGIdentification = identification
44 working_points=tight_wp
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):
51 raise KeyError(
'HGC TPG ID: Cannot find a cut corresponding to the working point {}'.
format(wp))
52 parameters_c3d = process.hgcalBackEndLayer2Producer.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)]
58 parameters_c3d.EGIdentification = identification
def custom_identification_drnn_cone
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
def custom_identification_histomax
def custom_identification_drnn_dbscan