1 import FWCore.ParameterSet.Config
as cms
5 histoMaxVariableDR_C3d_params, \
6 histoSecondaryMax_C3d_params, \
7 histoInterpolatedMax_C3d_params, \
8 histoThreshold_C3d_params, \
9 neighbour_weights_1stOrder, \
10 neighbour_weights_2ndOrder
12 from L1Trigger.L1THGCal.customClustering
import set_histomax_params
16 distance=distance_C3d_params.dR_multicluster
18 producer = process.hgcalBackEndLayer2Producer.clone(
19 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
21 producer.ProcessorParameters.C3d_parameters = distance_C3d_params.clone(
22 dR_multicluster = distance
28 distance=dbscan_C3d_params.dist_dbscan_multicluster,
29 min_points=dbscan_C3d_params.minN_dbscan_multicluster
31 producer = process.hgcalBackEndLayer2Producer.clone(
32 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
34 producer.ProcessorParameters.C3d_parameters = dbscan_C3d_params.clone(
35 dist_dbscan_multicluster = distance,
36 minN_dbscan_multicluster = min_points
42 distance=histoMax_C3d_params.dR_multicluster,
43 nBins_R=histoMax_C3d_params.nBins_R_histo_multicluster,
44 nBins_Phi=histoMax_C3d_params.nBins_Phi_histo_multicluster,
45 binSumsHisto=histoMax_C3d_params.binSumsHisto,
46 seed_threshold=histoMax_C3d_params.threshold_histo_multicluster,
48 producer = process.hgcalBackEndLayer2Producer.clone(
49 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
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)
57 distances=histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA,
58 nBins_R=histoMaxVariableDR_C3d_params.nBins_R_histo_multicluster,
59 nBins_Phi=histoMaxVariableDR_C3d_params.nBins_Phi_histo_multicluster,
60 binSumsHisto=histoMaxVariableDR_C3d_params.binSumsHisto,
61 seed_threshold=histoMaxVariableDR_C3d_params.threshold_histo_multicluster,
63 producer = process.hgcalBackEndLayer2Producer.clone(
64 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
66 producer.ProcessorParameters.C3d_parameters = histoMax_C3d_params.clone(
67 dR_multicluster_byLayer_coefficientA = distances
69 set_histomax_params(producer.ProcessorParameters.C3d_parameters, 0, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
74 distance=histoInterpolatedMax_C3d_params.dR_multicluster,
75 nBins_R=histoInterpolatedMax_C3d_params.nBins_R_histo_multicluster,
76 nBins_Phi=histoInterpolatedMax_C3d_params.nBins_Phi_histo_multicluster,
77 binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto,
78 seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster,
80 producer = process.hgcalBackEndLayer2Producer.clone(
81 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
83 producer.ProcessorParameters.C3d_parameters = histoInterpolatedMax_C3d_params.clone(
84 neighbour_weights = neighbour_weights_1stOrder
86 set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
91 distance=histoInterpolatedMax_C3d_params.dR_multicluster,
92 nBins_R=histoInterpolatedMax_C3d_params.nBins_R_histo_multicluster,
93 nBins_Phi=histoInterpolatedMax_C3d_params.nBins_Phi_histo_multicluster,
94 binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto,
95 seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster,
97 producer = process.hgcalBackEndLayer2Producer.clone(
98 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
100 producer.ProcessorParameters.C3d_parameters = histoInterpolatedMax_C3d_params.clone(
101 neighbour_weights = neighbour_weights_2ndOrder
103 set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
108 threshold=histoThreshold_C3d_params.threshold_histo_multicluster,
109 distance=histoThreshold_C3d_params.dR_multicluster,
110 nBins_R=histoThreshold_C3d_params.nBins_R_histo_multicluster,
111 nBins_Phi=histoThreshold_C3d_params.nBins_Phi_histo_multicluster,
112 binSumsHisto=histoThreshold_C3d_params.binSumsHisto
114 producer = process.hgcalBackEndLayer2Producer.clone(
115 InputCluster = cms.InputTag(
'{}:HGCalBackendLayer1Processor2DClustering'.
format(inputs))
117 producer.ProcessorParameters.C3d_parameters = histoThreshold_C3d_params.clone()
118 set_histomax_params(producer.ProcessorParameters.C3d_parameters, distance, nBins_R, nBins_Phi, binSumsHisto, threshold)
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_dbscan(process, inputs, distance=dbscan_C3d_params.dist_dbscan_multicluster, min_points=dbscan_C3d_params.minN_dbscan_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 set_histomax_params(parameters_c3d, distance, nBins_R, nBins_Phi, binSumsHisto, seed_threshold)
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)
def create_distance(process, inputs, distance=distance_C3d_params.dR_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)