CMS 3D CMS Logo

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

Functions

def custom_2dclustering_constrainedtopological
 
def custom_2dclustering_distance
 
def custom_2dclustering_dummy
 
def custom_2dclustering_topological
 
def custom_3dclustering_clusteringRadiusLayerbyLayerFixedEta
 
def custom_3dclustering_clusteringRadiusLayerbyLayerVariableEta
 
def custom_3dclustering_clusteringRadiusNoLayerDependenceFixedEta
 
def custom_3dclustering_clusteringRadiusNoLayerDependenceVariableEta
 
def custom_3dclustering_dbscan
 
def custom_3dclustering_distance
 
def custom_3dclustering_EnergySplitAssociation
 
def custom_3dclustering_fixedRadius
 
def custom_3dclustering_nearestNeighbourAssociation
 
def custom_3dclustering_variableDr
 
def set_histomax_clustering_params
 
def set_threshold_params
 

Function Documentation

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  ):
55  parameters_c2d = constrTopological_C2d_params.clone(dR_cluster = distance)
56  set_threshold_params(parameters_c2d, seed_threshold, cluster_threshold)
57  process.hgcalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = parameters_c2d
58  return process
59 
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  ):
34  parameters_c2d = distance_C2d_params.clone(dR_cluster = distance)
35  set_threshold_params(parameters_c2d, seed_threshold, cluster_threshold)
36  process.hgcalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = parameters_c2d
37  return process
38 
def customClustering.custom_2dclustering_dummy (   process)

Definition at line 60 of file customClustering.py.

References custom_3dclustering_distance().

60 
61 def custom_2dclustering_dummy(process):
62  process.hgcalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = dummy_C2d_params.clone()
63  return process
64 
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  ):
44  parameters_c2d = topological_C2d_params.clone()
45  set_threshold_params(parameters_c2d, seed_threshold, cluster_threshold)
46  process.hgcalBackEndLayer1Producer.ProcessorParameters.C2d_parameters = parameters_c2d
47  return process
48 
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().

129  distance_coefficientA=dr_layerbylayer):
130  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
131  parameters_c3d.dR_multicluster_byLayer_coefficientA = distance_coefficientA
132  parameters_c3d.dR_multicluster_byLayer_coefficientB = cms.vdouble( [0]*(MAX_LAYERS+1) )
133  return process
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().

121  distance_coefficientB=dr_layerbylayer_Bcoefficient):
122  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
123  parameters_c3d.dR_multicluster_byLayer_coefficientA = distance_coefficientA
124  parameters_c3d.dR_multicluster_byLayer_coefficientB = distance_coefficientB
125  return process
126 
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().

136  distance_coefficientA=0.03):
137  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
138  parameters_c3d.dR_multicluster_byLayer_coefficientA = cms.vdouble( [distance_coefficientA]*(MAX_LAYERS+1) )
139  parameters_c3d.dR_multicluster_byLayer_coefficientB = cms.vdouble( [0]*(MAX_LAYERS+1) )
140  return process
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().

144  distance_coefficientB=0.02):
145  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
146  parameters_c3d.dR_multicluster_byLayer_coefficientA = cms.vdouble( [distance_coefficientA]*(MAX_LAYERS+1) )
147  parameters_c3d.dR_multicluster_byLayer_coefficientB = cms.vdouble( [distance_coefficientB]*(MAX_LAYERS+1) )
148  return process
149 
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  ):
78  parameters_c3d = dbscan_C3d_params.clone(
79  dist_dbscan_multicluster = distance,
80  minN_dbscan_multicluster = min_points
81  )
82  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters = parameters_c3d
83  return process
84 
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  ):
69  parameters_c3d = distance_C3d_params.clone(dR_multicluster = distance)
70  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters = parameters_c3d
71  return process
72 
def customClustering.custom_3dclustering_EnergySplitAssociation (   process)

Definition at line 156 of file customClustering.py.

158 
159  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
160  parameters_c3d.cluster_association = cms.string('EnergySplit')
161  return process
def custom_3dclustering_EnergySplitAssociation
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  ):
101  parameters_c3d = histoMax_C3d_clustering_params.clone()
102  set_histomax_clustering_params(parameters_c3d, distance, shape_threshold, shape_distance)
103  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = parameters_c3d
104  return process
105 
def set_histomax_clustering_params
def customClustering.custom_3dclustering_nearestNeighbourAssociation (   process)

Definition at line 150 of file customClustering.py.

152  parameters_c3d = process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters
153  parameters_c3d.cluster_association = cms.string('NearestNeighbour')
154 
155  return process
def custom_3dclustering_nearestNeighbourAssociation
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().

110  ):
111  parameters_c3d = histoMaxVariableDR_C3d_params.clone(
112  dR_multicluster_byLayer_coefficientA = cms.vdouble(distances)
113  )
114  set_histomax_clustering_params(parameters_c3d, 0, shape_threshold, shape_distance)
115  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = parameters_c3d
116  return process
117 
def 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 clustering3d.create_histoInterpolatedMax1stOrder(), clustering3d.create_histoInterpolatedMax2ndOrder(), clustering3d.create_histoMax(), clustering3d.create_histoMax_variableDr(), clustering3d.create_histoMaxXY_variableDr(), clustering3d.create_histoThreshold(), custom_3dclustering_dbscan(), custom_3dclustering_fixedRadius(), and custom_3dclustering_variableDr().

89 
90  ):
91  parameters_c3d.dR_multicluster = distance
92  parameters_c3d.shape_threshold = shape_threshold
93  parameters_c3d.shape_distance = shape_distance
94 
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 
22 def set_threshold_params(pset, seed_threshold, cluster_threshold):
23  pset.seeding_threshold_silicon = seed_threshold
24  pset.seeding_threshold_scintillator = seed_threshold
25  pset.clustering_threshold_silicon = cluster_threshold
26  pset.clustering_threshold_scintillator = cluster_threshold
27