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=histoInterpolatedMax_C3d_params.dR_multicluster, nBins_R=histoInterpolatedMax_C3d_params.nBins_R_histo_multicluster, nBins_Phi=histoInterpolatedMax_C3d_params.nBins_Phi_histo_multicluster, binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto, seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster)
 
def create_histoInterpolatedMax2ndOrder (process, inputs, distance=histoInterpolatedMax_C3d_params.dR_multicluster, nBins_R=histoInterpolatedMax_C3d_params.nBins_R_histo_multicluster, nBins_Phi=histoInterpolatedMax_C3d_params.nBins_Phi_histo_multicluster, binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto, seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster)
 
def create_histoMax (process, inputs, distance=histoMax_C3d_params.dR_multicluster, nBins_R=histoMax_C3d_params.nBins_R_histo_multicluster, nBins_Phi=histoMax_C3d_params.nBins_Phi_histo_multicluster, binSumsHisto=histoMax_C3d_params.binSumsHisto, seed_threshold=histoMax_C3d_params.threshold_histo_multicluster)
 
def create_histoMax_variableDr (process, inputs, distances=histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA, nBins_R=histoMaxVariableDR_C3d_params.nBins_R_histo_multicluster, nBins_Phi=histoMaxVariableDR_C3d_params.nBins_Phi_histo_multicluster, binSumsHisto=histoMaxVariableDR_C3d_params.binSumsHisto, seed_threshold=histoMaxVariableDR_C3d_params.threshold_histo_multicluster)
 
def create_histoThreshold (process, inputs, threshold=histoThreshold_C3d_params.threshold_histo_multicluster, distance=histoThreshold_C3d_params.dR_multicluster, nBins_R=histoThreshold_C3d_params.nBins_R_histo_multicluster, nBins_Phi=histoThreshold_C3d_params.nBins_Phi_histo_multicluster, binSumsHisto=histoThreshold_C3d_params.binSumsHisto)
 

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 30 of file clustering3d.py.

References create_histoMax().

Referenced by create_distance().

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

Definition at line 17 of file clustering3d.py.

References create_dbscan().

17  ):
18  producer = process.hgcalBackEndLayer2Producer.clone(
19  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
20  )
21  producer.ProcessorParameters.C3d_parameters = distance_C3d_params.clone(
22  dR_multicluster = distance
23  )
24  return producer
25 
26 
def clustering3d.create_histoInterpolatedMax1stOrder (   process,
  inputs,
  distance = histoInterpolatedMax_C3d_params.dR_multicluster,
  nBins_R = histoInterpolatedMax_C3d_params.nBins_R_histo_multicluster,
  nBins_Phi = histoInterpolatedMax_C3d_params.nBins_Phi_histo_multicluster,
  binSumsHisto = histoInterpolatedMax_C3d_params.binSumsHisto,
  seed_threshold = histoInterpolatedMax_C3d_params.threshold_histo_multicluster 
)

Definition at line 79 of file clustering3d.py.

References create_histoInterpolatedMax2ndOrder(), and customClustering.set_histomax_params().

Referenced by create_histoMax_variableDr().

79  ):
80  producer = process.hgcalBackEndLayer2Producer.clone(
81  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
82  )
83  producer.ProcessorParameters.C3d_parameters = histoInterpolatedMax_C3d_params.clone(
84  neighbour_weights = neighbour_weights_1stOrder
85  )
86  set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
87  return producer
88 
89 
def set_histomax_params(parameters_c3d, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
def clustering3d.create_histoInterpolatedMax2ndOrder (   process,
  inputs,
  distance = histoInterpolatedMax_C3d_params.dR_multicluster,
  nBins_R = histoInterpolatedMax_C3d_params.nBins_R_histo_multicluster,
  nBins_Phi = histoInterpolatedMax_C3d_params.nBins_Phi_histo_multicluster,
  binSumsHisto = histoInterpolatedMax_C3d_params.binSumsHisto,
  seed_threshold = histoInterpolatedMax_C3d_params.threshold_histo_multicluster 
)

Definition at line 96 of file clustering3d.py.

References create_histoThreshold(), and customClustering.set_histomax_params().

Referenced by create_histoInterpolatedMax1stOrder().

96  ):
97  producer = process.hgcalBackEndLayer2Producer.clone(
98  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
99  )
100  producer.ProcessorParameters.C3d_parameters = histoInterpolatedMax_C3d_params.clone(
101  neighbour_weights = neighbour_weights_2ndOrder
102  )
103  set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
104  return producer
105 
106 
def set_histomax_params(parameters_c3d, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
def clustering3d.create_histoMax (   process,
  inputs,
  distance = histoMax_C3d_params.dR_multicluster,
  nBins_R = histoMax_C3d_params.nBins_R_histo_multicluster,
  nBins_Phi = histoMax_C3d_params.nBins_Phi_histo_multicluster,
  binSumsHisto = histoMax_C3d_params.binSumsHisto,
  seed_threshold = histoMax_C3d_params.threshold_histo_multicluster 
)

Definition at line 47 of file clustering3d.py.

References create_histoMax_variableDr(), and customClustering.set_histomax_params().

Referenced by create_dbscan().

47  ):
48  producer = process.hgcalBackEndLayer2Producer.clone(
49  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
50  )
51  producer.ProcessorParameters.C3d_parameters = histoMax_C3d_params.clone()
52  set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
53  return producer
54 
55 
def set_histomax_params(parameters_c3d, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
def clustering3d.create_histoMax_variableDr (   process,
  inputs,
  distances = histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA,
  nBins_R = histoMaxVariableDR_C3d_params.nBins_R_histo_multicluster,
  nBins_Phi = histoMaxVariableDR_C3d_params.nBins_Phi_histo_multicluster,
  binSumsHisto = histoMaxVariableDR_C3d_params.binSumsHisto,
  seed_threshold = histoMaxVariableDR_C3d_params.threshold_histo_multicluster 
)

Definition at line 62 of file clustering3d.py.

References create_histoInterpolatedMax1stOrder(), and customClustering.set_histomax_params().

Referenced by create_histoMax().

62  ):
63  producer = process.hgcalBackEndLayer2Producer.clone(
64  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
65  )
66  producer.ProcessorParameters.C3d_parameters = histoMax_C3d_params.clone(
67  dR_multicluster_byLayer_coefficientA = distances
68  )
69  set_histomax_params(producer.ProcessorParameters.C3d_parameters, 0, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
70  return producer
71 
72 
def set_histomax_params(parameters_c3d, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
def clustering3d.create_histoThreshold (   process,
  inputs,
  threshold = histoThreshold_C3d_params.threshold_histo_multicluster,
  distance = histoThreshold_C3d_params.dR_multicluster,
  nBins_R = histoThreshold_C3d_params.nBins_R_histo_multicluster,
  nBins_Phi = histoThreshold_C3d_params.nBins_Phi_histo_multicluster,
  binSumsHisto = histoThreshold_C3d_params.binSumsHisto 
)

Definition at line 113 of file clustering3d.py.

References customClustering.set_histomax_params().

Referenced by create_histoInterpolatedMax2ndOrder().

113  ):
114  producer = process.hgcalBackEndLayer2Producer.clone(
115  InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
116  )
117  producer.ProcessorParameters.C3d_parameters = histoThreshold_C3d_params.clone()
118  set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, threshold)
119  return producer
120 
def set_histomax_params(parameters_c3d, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)