1 import FWCore.ParameterSet.Config
as cms
3 histoSecondaryMax_C3d_params, \
4 histoInterpolatedMax_C3d_params, \
5 histoThreshold_C3d_params, \
6 histoMaxXYVariableDR_C3d_params, \
7 neighbour_weights_1stOrder, \
8 neighbour_weights_2ndOrder
18 parameters_seeding_c3d.nBins_X1_histo_multicluster = nBins_X1
19 parameters_seeding_c3d.nBins_X2_histo_multicluster = nBins_X2
20 parameters_seeding_c3d.binSumsHisto = binSumsHisto
21 parameters_seeding_c3d.threshold_histo_multicluster = seed_threshold
25 nBins_X1=histoMax_C3d_seeding_params.nBins_X1_histo_multicluster,
26 nBins_X2=histoMax_C3d_seeding_params.nBins_X2_histo_multicluster,
27 binSumsHisto=histoMax_C3d_seeding_params.binSumsHisto,
28 seed_threshold=histoMax_C3d_seeding_params.threshold_histo_multicluster,
29 seed_position=histoMax_C3d_seeding_params.seed_position,
31 parameters_c3d = histoMax_C3d_seeding_params.clone()
34 process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
38 threshold=histoSecondaryMax_C3d_params.threshold_histo_multicluster,
39 nBins_X1=histoSecondaryMax_C3d_params.nBins_X1_histo_multicluster,
40 nBins_X2=histoSecondaryMax_C3d_params.nBins_X2_histo_multicluster,
41 binSumsHisto=histoSecondaryMax_C3d_params.binSumsHisto,
43 parameters_c3d = histoSecondaryMax_C3d_params.clone()
46 process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
51 nBins_X1=histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster,
52 nBins_X2=histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster,
53 binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto,
54 seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster,
56 parameters_c3d = histoInterpolatedMax_C3d_params.clone(
57 neighbour_weights = neighbour_weights_1stOrder
61 process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
66 nBins_X1=histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster,
67 nBins_X2=histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster,
68 binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto,
69 seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster,
71 parameters_c3d = histoInterpolatedMax_C3d_params.clone(
72 neighbour_weights = neighbour_weights_2ndOrder
76 process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
81 nBins_X1=histoThreshold_C3d_params.nBins_X1_histo_multicluster,
82 nBins_X2=histoThreshold_C3d_params.nBins_X2_histo_multicluster,
83 binSumsHisto=histoThreshold_C3d_params.binSumsHisto,
84 seed_threshold=histoThreshold_C3d_params.threshold_histo_multicluster,
86 parameters_c3d = histoThreshold_C3d_params.clone()
89 process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
94 nBins_X1=histoMaxXYVariableDR_C3d_params.nBins_X1_histo_multicluster,
95 nBins_X2=histoMaxXYVariableDR_C3d_params.nBins_X2_histo_multicluster,
96 seed_threshold=histoMaxXYVariableDR_C3d_params.threshold_histo_multicluster,
97 seed_position=histoMaxXYVariableDR_C3d_params.seed_position,
99 parameters_c3d = histoMaxXYVariableDR_C3d_params.clone()
101 histoMaxXYVariableDR_C3d_params.binSumsHisto,seed_threshold)
102 process.l1tHGCalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
107 seed_threshold=cms.double(8.5)):
108 parameters_c3d = histoMax_C3d_seeding_params.clone(seeds_norm_by_area =
True,
109 threshold_histo_multicluster = seed_threshold)
110 process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
114 seed_threshold=cms.double(20)):
115 parameters_c3d = histoMax_C3d_seeding_params.clone(seeds_norm_by_area =
False,
116 threshold_histo_multicluster = seed_threshold)
117 process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
def custom_3dclustering_histoMax(process, nBins_X1=histoMax_C3d_seeding_params.nBins_X1_histo_multicluster, nBins_X2=histoMax_C3d_seeding_params.nBins_X2_histo_multicluster, binSumsHisto=histoMax_C3d_seeding_params.binSumsHisto, seed_threshold=histoMax_C3d_seeding_params.threshold_histo_multicluster, seed_position=histoMax_C3d_seeding_params.seed_position)
def custom_3dclustering_histoThreshold(process, nBins_X1=histoThreshold_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoThreshold_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoThreshold_C3d_params.binSumsHisto, seed_threshold=histoThreshold_C3d_params.threshold_histo_multicluster)
def custom_3dclustering_histoInterpolatedMax1stOrder(process, nBins_X1=histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto, seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster)
def custom_3dclustering_seedArea(process, seed_threshold=cms.double(8.5))
def set_histomax_seeding_params(parameters_seeding_c3d, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
def custom_3dclustering_XYHistoMax(process, nBins_X1=histoMaxXYVariableDR_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoMaxXYVariableDR_C3d_params.nBins_X2_histo_multicluster, seed_threshold=histoMaxXYVariableDR_C3d_params.threshold_histo_multicluster, seed_position=histoMaxXYVariableDR_C3d_params.seed_position)
def custom_3dclustering_seedNoArea(process, seed_threshold=cms.double(20))
def custom_3dclustering_histoInterpolatedMax2ndOrder(process, nBins_X1=histoInterpolatedMax_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoInterpolatedMax_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoInterpolatedMax_C3d_params.binSumsHisto, seed_threshold=histoInterpolatedMax_C3d_params.threshold_histo_multicluster)
def custom_3dclustering_histoSecondaryMax(process, threshold=histoSecondaryMax_C3d_params.threshold_histo_multicluster, nBins_X1=histoSecondaryMax_C3d_params.nBins_X1_histo_multicluster, nBins_X2=histoSecondaryMax_C3d_params.nBins_X2_histo_multicluster, binSumsHisto=histoSecondaryMax_C3d_params.binSumsHisto)