CMS 3D CMS Logo

customClustering.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
5  distance=6.,# cm
6  seed_threshold=5.,# MipT
7  cluster_threshold=2.# MipT
8  ):
9  parameters_c2d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters
10  parameters_c2d.seeding_threshold_silicon = cms.double(seed_threshold)
11  parameters_c2d.seeding_threshold_scintillator = cms.double(seed_threshold)
12  parameters_c2d.clustering_threshold_silicon = cms.double(cluster_threshold)
13  parameters_c2d.clustering_threshold_scintillator = cms.double(cluster_threshold)
14  parameters_c2d.dR_cluster = cms.double(distance)
15  parameters_c2d.clusterType = cms.string('dRC2d')
16  return process
17 
19  seed_threshold=5.,# MipT
20  cluster_threshold=2.# MipT
21  ):
22  parameters_c2d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters
23  parameters_c2d.seeding_threshold_silicon = cms.double(seed_threshold) # MipT
24  parameters_c2d.seeding_threshold_scintillator = cms.double(seed_threshold) # MipT
25  parameters_c2d.clustering_threshold_silicon = cms.double(cluster_threshold) # MipT
26  parameters_c2d.clustering_threshold_scintillator = cms.double(cluster_threshold) # MipT
27  parameters_c2d.clusterType = cms.string('NNC2d')
28  return process
29 
31  distance=6.,# cm
32  seed_threshold=5.,# MipT
33  cluster_threshold=2.# MipT
34  ):
35  parameters_c2d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters
36  parameters_c2d.seeding_threshold_silicon = cms.double(seed_threshold) # MipT
37  parameters_c2d.seeding_threshold_scintillator = cms.double(seed_threshold) # MipT
38  parameters_c2d.clustering_threshold_silicon = cms.double(cluster_threshold) # MipT
39  parameters_c2d.clustering_threshold_scintillator = cms.double(cluster_threshold) # MipT
40  parameters_c2d.dR_cluster = cms.double(distance) # cm
41  parameters_c2d.clusterType = cms.string('dRNNC2d')
42  return process
43 
45  distance=0.01
46  ):
47  parameters_c3d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C3d_parameters
48  parameters_c3d.dR_multicluster = cms.double(distance)
49  parameters_c3d.type_multicluster = cms.string('dRC3d')
50  return process
51 
52 
53 def custom_3dclustering_dbscan(process,
54  distance=0.005,
55  min_points=3
56  ):
57  parameters_c3d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C3d_parameters
58  parameters_c3d.dist_dbscan_multicluster = cms.double(distance)
59  parameters_c3d.minN_dbscan_multicluster = cms.uint32(min_points)
60  parameters_c3d.type_multicluster = cms.string('DBSCANC3d')
61  return process
def custom_2dclustering_distance(process, distance=6., seed_threshold=5., cluster_threshold=2.#MipT)
def custom_3dclustering_dbscan(process, distance=0.005, min_points=3)
def custom_2dclustering_topological(process, seed_threshold=5., cluster_threshold=2.#MipT)
def custom_2dclustering_constrainedtopological(process, distance=6., seed_threshold=5., cluster_threshold=2.#MipT)
def custom_3dclustering_distance(process, distance=0.01)