CMS 3D CMS Logo

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

Functions

def create_dbscan
 
def create_distance
 
def create_histoInterpolatedMax1stOrder
 
def create_histoInterpolatedMax2ndOrder
 
def create_histoMax
 
def create_histoMax_variableDr
 
def create_histoMaxXY_variableDr
 
def create_histoThreshold
 

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  ):
35  producer = process.hgcalBackEndLayer2Producer.clone(
36  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
37  )
38  producer.ProcessorParameters.C3d_parameters = dbscan_C3d_params.clone(
39  dist_dbscan_multicluster = distance,
40  minN_dbscan_multicluster = min_points
41  )
42  return producer
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  ):
22  producer = process.hgcalBackEndLayer2Producer.clone(
23  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
24  )
25  producer.ProcessorParameters.C3d_parameters = distance_C3d_params.clone(
26  dR_multicluster = distance
27  )
28  return producer
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().

121  ):
122  producer = process.hgcalBackEndLayer2Producer.clone(
123  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
124  )
125  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoInterpolatedMax_C3d_params.clone(
126  neighbour_weights = neighbour_weights_1stOrder
127  )
128  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
129 
130  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
131  seed_threshold)
132  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
133 
134  return producer
135 
def set_histomax_clustering_params
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().

145  ):
146  producer = process.hgcalBackEndLayer2Producer.clone(
147  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
148  )
149  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoInterpolatedMax_C3d_params.clone(
150  neighbour_weights = neighbour_weights_2ndOrder
151  )
152  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
153  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
154  seed_threshold)
155  set_histomax_clustering_params(producer.ProcessorParameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
156 
157  return producer
158 
def set_histomax_clustering_params
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  ):
54  producer = process.hgcalBackEndLayer2Producer.clone(
55  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
56  )
57  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
58  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMax_C3d_seeding_params.clone()
59  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
60  seed_threshold)
61  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)
62 
63  return producer
64 
def set_histomax_clustering_params
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  ):
75  producer = process.hgcalBackEndLayer2Producer.clone(
76  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
77  )
78  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone(
79  dR_multicluster_byLayer_coefficientA = distances
80  )
81  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMax_C3d_seeding_params.clone()
82 
83  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
84  seed_threshold)
85  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, 0, shape_threshold, shape_distance)
86 
87  return producer
88 
def set_histomax_clustering_params
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  ):
98  producer = process.hgcalBackEndLayer2Producer.clone(
99  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
100  )
101  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone(
102  dR_multicluster_byLayer_coefficientA = distances
103  )
104  producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMaxXYVariableDR_C3d_params.clone()
105 
106  set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, histoMaxXYVariableDR_C3d_params.binSumsHisto,
107  seed_threshold)
108  set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, 0, shape_threshold, shape_distance)
109 
110  return producer
111 
def set_histomax_clustering_params
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().

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