CMS 3D CMS Logo

Functions
clustering3d Namespace Reference

Functions

def create_dbscan (process, inputs, distance=dbscan_C3d_params.dist_dbscan_multicluster, min_points=dbscan_C3d_params.minN_dbscan_multicluster)
 
def create_distance (process, inputs, distance=distance_C3d_params.dR_multicluster)
 
def create_histoInterpolatedMax1stOrder (process, inputs, distance=histoMax_C3d_clustering_params.dR_multicluster, nBins_X1=histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto, seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster, shape_threshold=histoMax_C3d_clustering_params.shape_threshold, shape_distance=histoMax_C3d_clustering_params.shape_distance)
 
def create_histoInterpolatedMax2ndOrder (process, inputs, distance=histoMax_C3d_clustering_params.dR_multicluster, nBins_X1=histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto, seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster, shape_threshold=histoMax_C3d_clustering_params.shape_threshold, shape_distance=histoMax_C3d_clustering_params.shape_distance)
 
def create_histoMax (process, inputs, distance=histoMax_C3d_clustering_params.dR_multicluster, nBins_X1=histoMax_C3d_seeding_params.nBins_X1_histo_multicluster, nBins_X2=histoMax_C3d_seeding_params.nBins_X2_histo_multicluster, binSumsHisto=histoMax_C3d_seeding_params.binSumsHisto, seed_threshold=histoMax_C3d_seeding_params.threshold_histo_multicluster, shape_threshold=histoMax_C3d_clustering_params.shape_threshold, shape_distance=histoMax_C3d_clustering_params.shape_distance)
 
def create_histoMax_variableDr (process, inputs, distances=histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA, nBins_X1=histoMax_C3d_seeding_params.nBins_X1_histo_multicluster, nBins_X2=histoMax_C3d_seeding_params.nBins_X2_histo_multicluster, binSumsHisto=histoMax_C3d_seeding_params.binSumsHisto, seed_threshold=histoMax_C3d_seeding_params.threshold_histo_multicluster, shape_threshold=histoMaxVariableDR_C3d_params.shape_threshold, shape_distance=histoMaxVariableDR_C3d_params.shape_distance)
 
def create_histoMaxXY_variableDr (process, inputs, distances=histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA, nBins_X1=histoMaxXYVariableDR_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoMaxXYVariableDR_C3d_params.nBins_X2_histo_multicluster, seed_threshold=histoMaxXYVariableDR_C3d_params.threshold_histo_multicluster, shape_threshold=histoMaxVariableDR_C3d_params.shape_threshold, shape_distance=histoMaxVariableDR_C3d_params.shape_distance)
 
def create_histoThreshold (process, inputs, threshold=histoThreshold_C3d_params.threshold_histo_multicluster, distance=histoMax_C3d_clustering_params.dR_multicluster, nBins_X1=histoThreshold_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoThreshold_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoThreshold_C3d_params.binSumsHisto, shape_threshold=histoMax_C3d_clustering_params.shape_threshold, shape_distance=histoMax_C3d_clustering_params.shape_distance)
 

Function Documentation

def clustering3d.create_dbscan (   process,
  inputs,
  distance = dbscan_C3d_params.dist_dbscan_multicluster,
  min_points = dbscan_C3d_params.minN_dbscan_multicluster 
)

Definition at line 33 of file clustering3d.py.

References create_histoMax().

Referenced by create_distance().

33  ):
34  producer = process.hgcalBackEndLayer2Producer.clone(
35  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
36  )
37  producer.ProcessorParameters.C3d_parameters = dbscan_C3d_params.clone(
38  dist_dbscan_multicluster = distance,
39  minN_dbscan_multicluster = min_points
40  )
41  return producer
42 
43 
def clustering3d.create_distance (   process,
  inputs,
  distance = distance_C3d_params.dR_multicluster 
)

Definition at line 20 of file clustering3d.py.

References create_dbscan().

20  ):
21  producer = process.hgcalBackEndLayer2Producer.clone(
22  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
23  )
24  producer.ProcessorParameters.C3d_parameters = distance_C3d_params.clone(
25  dR_multicluster = distance
26  )
27  return producer
28 
29 
def clustering3d.create_histoInterpolatedMax1stOrder (   process,
  inputs,
  distance = histoMax_C3d_clustering_params.dR_multicluster,
  nBins_X1 = histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster,
  nBins_X2 = histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster,
  binSumsHisto = histoInterpolatedMax_C3d_params.binSumsHisto,
  seed_threshold = histoInterpolatedMax_C3d_params.threshold_histo_multicluster,
  shape_threshold = histoMax_C3d_clustering_params.shape_threshold,
  shape_distance = histoMax_C3d_clustering_params.shape_distance 
)

Definition at line 120 of file clustering3d.py.

References create_histoInterpolatedMax2ndOrder(), customClustering.set_histomax_clustering_params(), and customHistoSeeding.set_histomax_seeding_params().

Referenced by create_histoMaxXY_variableDr().

120  ):
121  producer = process.hgcalBackEndLayer2Producer.clone(
122  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
123  )
124  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoInterpolatedMax_C3d_params.clone(
125  neighbour_weights = neighbour_weights_1stOrder
126  )
127  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
128 
129  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
130  seed_threshold)
131  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
132 
133  return producer
134 
135 
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
def clustering3d.create_histoInterpolatedMax2ndOrder (   process,
  inputs,
  distance = histoMax_C3d_clustering_params.dR_multicluster,
  nBins_X1 = histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster,
  nBins_X2 = histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster,
  binSumsHisto = histoInterpolatedMax_C3d_params.binSumsHisto,
  seed_threshold = histoInterpolatedMax_C3d_params.threshold_histo_multicluster,
  shape_threshold = histoMax_C3d_clustering_params.shape_threshold,
  shape_distance = histoMax_C3d_clustering_params.shape_distance 
)

Definition at line 144 of file clustering3d.py.

References create_histoThreshold(), customClustering.set_histomax_clustering_params(), and customHistoSeeding.set_histomax_seeding_params().

Referenced by create_histoInterpolatedMax1stOrder().

144  ):
145  producer = process.hgcalBackEndLayer2Producer.clone(
146  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
147  )
148  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoInterpolatedMax_C3d_params.clone(
149  neighbour_weights = neighbour_weights_2ndOrder
150  )
151  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
152  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
153  seed_threshold)
154  set_histomax_clustering_params(producer.ProcessorParameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
155 
156  return producer
157 
158 
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
def clustering3d.create_histoMax (   process,
  inputs,
  distance = histoMax_C3d_clustering_params.dR_multicluster,
  nBins_X1 = histoMax_C3d_seeding_params.nBins_X1_histo_multicluster,
  nBins_X2 = histoMax_C3d_seeding_params.nBins_X2_histo_multicluster,
  binSumsHisto = histoMax_C3d_seeding_params.binSumsHisto,
  seed_threshold = histoMax_C3d_seeding_params.threshold_histo_multicluster,
  shape_threshold = histoMax_C3d_clustering_params.shape_threshold,
  shape_distance = histoMax_C3d_clustering_params.shape_distance 
)

Definition at line 52 of file clustering3d.py.

References create_histoMax_variableDr(), customClustering.set_histomax_clustering_params(), and customHistoSeeding.set_histomax_seeding_params().

Referenced by create_dbscan().

52  ):
53  producer = process.hgcalBackEndLayer2Producer.clone(
54  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
55  )
56  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
57  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMax_C3d_seeding_params.clone()
58  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
59  seed_threshold)
60  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
61 
62  return producer
63 
64 
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
def clustering3d.create_histoMax_variableDr (   process,
  inputs,
  distances = histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA,
  nBins_X1 = histoMax_C3d_seeding_params.nBins_X1_histo_multicluster,
  nBins_X2 = histoMax_C3d_seeding_params.nBins_X2_histo_multicluster,
  binSumsHisto = histoMax_C3d_seeding_params.binSumsHisto,
  seed_threshold = histoMax_C3d_seeding_params.threshold_histo_multicluster,
  shape_threshold = histoMaxVariableDR_C3d_params.shape_threshold,
  shape_distance = histoMaxVariableDR_C3d_params.shape_distance 
)

Definition at line 73 of file clustering3d.py.

References create_histoMaxXY_variableDr(), customClustering.set_histomax_clustering_params(), and customHistoSeeding.set_histomax_seeding_params().

Referenced by create_histoMax().

73  ):
74  producer = process.hgcalBackEndLayer2Producer.clone(
75  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
76  )
77  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone(
78  dR_multicluster_byLayer_coefficientA = distances
79  )
80  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMax_C3d_seeding_params.clone()
81 
82  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
83  seed_threshold)
84  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, 0, shape_threshold, shape_distance)
85 
86  return producer
87 
88 
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
def clustering3d.create_histoMaxXY_variableDr (   process,
  inputs,
  distances = histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA,
  nBins_X1 = histoMaxXYVariableDR_C3d_params.nBins_X1_histo_multicluster,
  nBins_X2 = histoMaxXYVariableDR_C3d_params.nBins_X2_histo_multicluster,
  seed_threshold = histoMaxXYVariableDR_C3d_params.threshold_histo_multicluster,
  shape_threshold = histoMaxVariableDR_C3d_params.shape_threshold,
  shape_distance = histoMaxVariableDR_C3d_params.shape_distance 
)

Definition at line 96 of file clustering3d.py.

References create_histoInterpolatedMax1stOrder(), customClustering.set_histomax_clustering_params(), and customHistoSeeding.set_histomax_seeding_params().

Referenced by create_histoMax_variableDr().

96  ):
97  producer = process.hgcalBackEndLayer2Producer.clone(
98  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
99  )
100  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone(
101  dR_multicluster_byLayer_coefficientA = distances
102  )
103  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMaxXYVariableDR_C3d_params.clone()
104 
105  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, histoMaxXYVariableDR_C3d_params.binSumsHisto,
106  seed_threshold)
107  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, 0, shape_threshold, shape_distance)
108 
109  return producer
110 
111 
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
def clustering3d.create_histoThreshold (   process,
  inputs,
  threshold = histoThreshold_C3d_params.threshold_histo_multicluster,
  distance = histoMax_C3d_clustering_params.dR_multicluster,
  nBins_X1 = histoThreshold_C3d_params.nBins_X1_histo_multicluster,
  nBins_X2 = histoThreshold_C3d_params.nBins_X2_histo_multicluster,
  binSumsHisto = histoThreshold_C3d_params.binSumsHisto,
  shape_threshold = histoMax_C3d_clustering_params.shape_threshold,
  shape_distance = histoMax_C3d_clustering_params.shape_distance 
)

Definition at line 167 of file clustering3d.py.

References customClustering.set_histomax_clustering_params(), and customHistoSeeding.set_histomax_seeding_params().

Referenced by create_histoInterpolatedMax2ndOrder().

167  ):
168  producer = process.hgcalBackEndLayer2Producer.clone(
169  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
170  )
171  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoThreshold_C3d_params.clone()
172  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
173  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
174  seed_threshold)
175  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
176 
177  return producer
178 
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)