CMS 3D CMS Logo

Functions
customClustering Namespace Reference

Functions

def custom_2dclustering_constrainedtopological (process, distance=constrTopological_C2d_params.dR_cluster, seed_threshold=constrTopological_C2d_params.seeding_threshold_silicon, cluster_threshold=constrTopological_C2d_params.clustering_threshold_silicon # MipT)
 
def custom_2dclustering_distance (process, distance=distance_C2d_params.dR_cluster, seed_threshold=distance_C2d_params.seeding_threshold_silicon, cluster_threshold=distance_C2d_params.clustering_threshold_silicon # MipT)
 
def custom_2dclustering_dummy (process)
 
def custom_2dclustering_topological (process, seed_threshold=topological_C2d_params.seeding_threshold_silicon, cluster_threshold=topological_C2d_params.clustering_threshold_silicon # MipT)
 
def custom_3dclustering_clusteringRadiusLayerbyLayerFixedEta (process, distance_coefficientA=dr_layerbylayer)
 
def custom_3dclustering_clusteringRadiusLayerbyLayerVariableEta (process, distance_coefficientA=dr_layerbylayer, distance_coefficientB=dr_layerbylayer_Bcoefficient)
 
def custom_3dclustering_clusteringRadiusNoLayerDependenceFixedEta (process, distance_coefficientA=0.03)
 
def custom_3dclustering_clusteringRadiusNoLayerDependenceVariableEta (process, distance_coefficientA=0.03, distance_coefficientB=0.02)
 
def custom_3dclustering_dbscan (process, distance=dbscan_C3d_params.dist_dbscan_multicluster, min_points=dbscan_C3d_params.minN_dbscan_multicluster)
 
def custom_3dclustering_distance (process, distance=distance_C3d_params.dR_multicluster)
 
def custom_3dclustering_EnergySplitAssociation (process)
 
def custom_3dclustering_fixedRadius (process, distance=histoMax_C3d_clustering_params.dR_multicluster, shape_threshold=histoMax_C3d_clustering_params.shape_threshold, shape_distance=histoMax_C3d_clustering_params.shape_distance)
 
def custom_3dclustering_nearestNeighbourAssociation (process)
 
def custom_3dclustering_variableDr (process, distances=histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA, shape_threshold=histoMaxVariableDR_C3d_params.shape_threshold, shape_distance=histoMaxVariableDR_C3d_params.shape_distance)
 
def set_histomax_clustering_params (parameters_c3d, distance, shape_threshold, shape_distance)
 
def set_threshold_params (pset, seed_threshold, cluster_threshold)
 

Function Documentation

◆ custom_2dclustering_constrainedtopological()

def customClustering.custom_2dclustering_constrainedtopological (   process,
  distance = constrTopological_C2d_params.dR_cluster,
  seed_threshold = constrTopological_C2d_params.seeding_threshold_silicon,
  cluster_threshold = constrTopological_C2d_params.clustering_threshold_silicon  # MipT 
)

Definition at line 53 of file customClustering.py.

References set_threshold_params().

Referenced by custom_2dclustering_topological().

53  ):
54  parameters_c2d = constrTopological_C2d_params.clone(dR_cluster = distance)
55  set_threshold_params(parameters_c2d, seed_threshold, cluster_threshold)
56  process.l1tHGCalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = parameters_c2d
57  return process
58 
59 
def set_threshold_params(pset, seed_threshold, cluster_threshold)

◆ custom_2dclustering_distance()

def customClustering.custom_2dclustering_distance (   process,
  distance = distance_C2d_params.dR_cluster,
  seed_threshold = distance_C2d_params.seeding_threshold_silicon,
  cluster_threshold = distance_C2d_params.clustering_threshold_silicon  # MipT 
)

Definition at line 32 of file customClustering.py.

References custom_2dclustering_topological(), and set_threshold_params().

Referenced by set_threshold_params().

32  ):
33  parameters_c2d = distance_C2d_params.clone(dR_cluster = distance)
34  set_threshold_params(parameters_c2d, seed_threshold, cluster_threshold)
35  process.l1tHGCalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = parameters_c2d
36  return process
37 
38 
def set_threshold_params(pset, seed_threshold, cluster_threshold)

◆ custom_2dclustering_dummy()

def customClustering.custom_2dclustering_dummy (   process)

Definition at line 60 of file customClustering.py.

References custom_3dclustering_distance().

60 def custom_2dclustering_dummy(process):
61  process.l1tHGCalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = dummy_C2d_params.clone()
62  return process
63 
64 
def custom_2dclustering_dummy(process)

◆ custom_2dclustering_topological()

def customClustering.custom_2dclustering_topological (   process,
  seed_threshold = topological_C2d_params.seeding_threshold_silicon,
  cluster_threshold = topological_C2d_params.clustering_threshold_silicon  # MipT 
)

Definition at line 42 of file customClustering.py.

References custom_2dclustering_constrainedtopological(), and set_threshold_params().

Referenced by custom_2dclustering_distance().

42  ):
43  parameters_c2d = topological_C2d_params.clone()
44  set_threshold_params(parameters_c2d, seed_threshold, cluster_threshold)
45  process.l1tHGCalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = parameters_c2d
46  return process
47 
48 
def set_threshold_params(pset, seed_threshold, cluster_threshold)

◆ custom_3dclustering_clusteringRadiusLayerbyLayerFixedEta()

def customClustering.custom_3dclustering_clusteringRadiusLayerbyLayerFixedEta (   process,
  distance_coefficientA = dr_layerbylayer 
)

Definition at line 128 of file customClustering.py.

References custom_3dclustering_clusteringRadiusNoLayerDependenceFixedEta().

Referenced by custom_3dclustering_clusteringRadiusLayerbyLayerVariableEta().

128  distance_coefficientA=dr_layerbylayer):
129  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
130  parameters_c3d.dR_multicluster_byLayer_coefficientA = distance_coefficientA
131  parameters_c3d.dR_multicluster_byLayer_coefficientB = cms.vdouble( [0]*(MAX_LAYERS+1) )
132  return process
133 

◆ custom_3dclustering_clusteringRadiusLayerbyLayerVariableEta()

def customClustering.custom_3dclustering_clusteringRadiusLayerbyLayerVariableEta (   process,
  distance_coefficientA = dr_layerbylayer,
  distance_coefficientB = dr_layerbylayer_Bcoefficient 
)

Definition at line 120 of file customClustering.py.

References custom_3dclustering_clusteringRadiusLayerbyLayerFixedEta().

Referenced by custom_3dclustering_variableDr().

120  distance_coefficientB=dr_layerbylayer_Bcoefficient):
121  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
122  parameters_c3d.dR_multicluster_byLayer_coefficientA = distance_coefficientA
123  parameters_c3d.dR_multicluster_byLayer_coefficientB = distance_coefficientB
124  return process
125 
126 

◆ custom_3dclustering_clusteringRadiusNoLayerDependenceFixedEta()

def customClustering.custom_3dclustering_clusteringRadiusNoLayerDependenceFixedEta (   process,
  distance_coefficientA = 0.03 
)

Definition at line 135 of file customClustering.py.

References custom_3dclustering_clusteringRadiusNoLayerDependenceVariableEta().

Referenced by custom_3dclustering_clusteringRadiusLayerbyLayerFixedEta().

135  distance_coefficientA=0.03):
136  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
137  parameters_c3d.dR_multicluster_byLayer_coefficientA = cms.vdouble( [distance_coefficientA]*(MAX_LAYERS+1) )
138  parameters_c3d.dR_multicluster_byLayer_coefficientB = cms.vdouble( [0]*(MAX_LAYERS+1) )
139  return process
140 

◆ custom_3dclustering_clusteringRadiusNoLayerDependenceVariableEta()

def customClustering.custom_3dclustering_clusteringRadiusNoLayerDependenceVariableEta (   process,
  distance_coefficientA = 0.03,
  distance_coefficientB = 0.02 
)

Definition at line 143 of file customClustering.py.

Referenced by custom_3dclustering_clusteringRadiusNoLayerDependenceFixedEta().

143  distance_coefficientB=0.02):
144  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
145  parameters_c3d.dR_multicluster_byLayer_coefficientA = cms.vdouble( [distance_coefficientA]*(MAX_LAYERS+1) )
146  parameters_c3d.dR_multicluster_byLayer_coefficientB = cms.vdouble( [distance_coefficientB]*(MAX_LAYERS+1) )
147  return process
148 
149 

◆ custom_3dclustering_dbscan()

def customClustering.custom_3dclustering_dbscan (   process,
  distance = dbscan_C3d_params.dist_dbscan_multicluster,
  min_points = dbscan_C3d_params.minN_dbscan_multicluster 
)

Definition at line 76 of file customClustering.py.

References set_histomax_clustering_params().

Referenced by custom_3dclustering_distance().

76  ):
77  parameters_c3d = dbscan_C3d_params.clone(
78  dist_dbscan_multicluster = distance,
79  minN_dbscan_multicluster = min_points
80  )
81  process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters = parameters_c3d
82  return process
83 
84 

◆ custom_3dclustering_distance()

def customClustering.custom_3dclustering_distance (   process,
  distance = distance_C3d_params.dR_multicluster 
)

Definition at line 67 of file customClustering.py.

References custom_3dclustering_dbscan().

Referenced by custom_2dclustering_dummy().

67  ):
68  parameters_c3d = distance_C3d_params.clone(dR_multicluster = distance)
69  process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters = parameters_c3d
70  return process
71 
72 

◆ custom_3dclustering_EnergySplitAssociation()

def customClustering.custom_3dclustering_EnergySplitAssociation (   process)

Definition at line 156 of file customClustering.py.

157 
158  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
159  parameters_c3d.cluster_association = cms.string('EnergySplit')
160  return process
161 
def custom_3dclustering_EnergySplitAssociation(process)

◆ custom_3dclustering_fixedRadius()

def customClustering.custom_3dclustering_fixedRadius (   process,
  distance = histoMax_C3d_clustering_params.dR_multicluster,
  shape_threshold = histoMax_C3d_clustering_params.shape_threshold,
  shape_distance = histoMax_C3d_clustering_params.shape_distance 
)

Definition at line 99 of file customClustering.py.

References custom_3dclustering_variableDr(), and set_histomax_clustering_params().

Referenced by set_histomax_clustering_params().

99  ):
100  parameters_c3d = histoMax_C3d_clustering_params.clone()
101  set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
102  process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = parameters_c3d
103  return process
104 
105 
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)

◆ custom_3dclustering_nearestNeighbourAssociation()

def customClustering.custom_3dclustering_nearestNeighbourAssociation (   process)

Definition at line 150 of file customClustering.py.

151  parameters_c3d = process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
152  parameters_c3d.cluster_association = cms.string('NearestNeighbour')
153 
154  return process
155 
def custom_3dclustering_nearestNeighbourAssociation(process)

◆ custom_3dclustering_variableDr()

def customClustering.custom_3dclustering_variableDr (   process,
  distances = histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA,
  shape_threshold = histoMaxVariableDR_C3d_params.shape_threshold,
  shape_distance = histoMaxVariableDR_C3d_params.shape_distance 
)

Definition at line 109 of file customClustering.py.

References custom_3dclustering_clusteringRadiusLayerbyLayerVariableEta(), and set_histomax_clustering_params().

Referenced by custom_3dclustering_fixedRadius().

109  ):
110  parameters_c3d = histoMaxVariableDR_C3d_params.clone(
111  dR_multicluster_byLayer_coefficientA = cms.vdouble(distances)
112  )
113  set_histomax_clustering_params(parameters_c3d, 0, shape_threshold, shape_distance)
114  process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = parameters_c3d
115  return process
116 
117 
def set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)

◆ set_histomax_clustering_params()

def customClustering.set_histomax_clustering_params (   parameters_c3d,
  distance,
  shape_threshold,
  shape_distance 
)

Definition at line 89 of file customClustering.py.

References custom_3dclustering_fixedRadius().

Referenced by custom_3dclustering_dbscan(), custom_3dclustering_fixedRadius(), and custom_3dclustering_variableDr().

89  ):
90  parameters_c3d.dR_multicluster = distance
91  parameters_c3d.shape_threshold = shape_threshold
92  parameters_c3d.shape_distance = shape_distance
93 
94 

◆ set_threshold_params()

def customClustering.set_threshold_params (   pset,
  seed_threshold,
  cluster_threshold 
)

Definition at line 21 of file customClustering.py.

References custom_2dclustering_distance().

Referenced by clustering2d.create_constrainedtopological(), clustering2d.create_distance(), clustering2d.create_topological(), custom_2dclustering_constrainedtopological(), custom_2dclustering_distance(), and custom_2dclustering_topological().

21 def set_threshold_params(pset, seed_threshold, cluster_threshold):
22  pset.seeding_threshold_silicon = seed_threshold
23  pset.seeding_threshold_scintillator = seed_threshold
24  pset.clustering_threshold_silicon = cluster_threshold
25  pset.clustering_threshold_scintillator = cluster_threshold
26 
27 
def set_threshold_params(pset, seed_threshold, cluster_threshold)