CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
customHistoSeeding.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from L1Trigger.L1THGCal.hgcalBackEndLayer2Producer_cfi import histoMax_C3d_seeding_params, \
3  histoSecondaryMax_C3d_params, \
4  histoInterpolatedMax_C3d_params, \
5  histoThreshold_C3d_params, \
6  histoMaxXYVariableDR_C3d_params, \
7  neighbour_weights_1stOrder, \
8  neighbour_weights_2ndOrder
9 
10 
11 
12 def set_histomax_seeding_params(parameters_seeding_c3d,
13  nBins_X1,
14  nBins_X2,
15  binSumsHisto,
16  seed_threshold,
17  ):
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
22 
23 
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,
30  ):
31  parameters_c3d = histoMax_C3d_seeding_params.clone()
32  set_histomax_seeding_params(parameters_c3d, nBins_X1, nBins_X2, binSumsHisto,
33  seed_threshold)
34  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
35  return process
36 
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,
42  ):
43  parameters_c3d = histoSecondaryMax_C3d_params.clone()
44  set_histomax_seeding_params(parameters_c3d, nBins_X1, nBins_X2, binSumsHisto,
45  threshold)
46  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
47  return process
48 
49 
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,
55  ):
56  parameters_c3d = histoInterpolatedMax_C3d_params.clone(
57  neighbour_weights = neighbour_weights_1stOrder
58  )
59  set_histomax_seeding_params(parameters_c3d, nBins_X1, nBins_X2, binSumsHisto,
60  seed_threshold)
61  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
62  return process
63 
64 
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,
70  ):
71  parameters_c3d = histoInterpolatedMax_C3d_params.clone(
72  neighbour_weights = neighbour_weights_2ndOrder
73  )
74  set_histomax_seeding_params(parameters_c3d, nBins_X1, nBins_X2, binSumsHisto,
75  seed_threshold)
76  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
77  return process
78 
79 
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,
85  ):
86  parameters_c3d = histoThreshold_C3d_params.clone()
87  set_histomax_seeding_params(parameters_c3d, nBins_X1, nBins_X2, binSumsHisto,
88  seed_threshold)
89  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
90  return process
91 
92 
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,
98  ):
99  parameters_c3d = histoMaxXYVariableDR_C3d_params.clone()
100  set_histomax_seeding_params(parameters_c3d, nBins_X1, nBins_X2,
101  histoMaxXYVariableDR_C3d_params.binSumsHisto,seed_threshold)
102  process.hgcalBackEndLayer2Producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = parameters_c3d
103  return process
104 
def custom_3dclustering_histoInterpolatedMax2ndOrder
def custom_3dclustering_histoInterpolatedMax1stOrder