Beispiel #1
0
 def __init__(self,
         distance=histoMax_C3d_clustering_params.dR_multicluster,
         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,
         shape_threshold=histoMax_C3d_clustering_params.shape_threshold,
         shape_distance=histoMax_C3d_clustering_params.shape_distance,
         ):
     self.clustering_parameters = histoMax_C3d_clustering_params.clone()
     self.seeding_parameters = histoMax_C3d_seeding_params.clone()
     set_histomax_seeding_params(self.seeding_parameters, nBins_X1, nBins_X2, binSumsHisto, seed_threshold)
     set_histomax_clustering_params(self.clustering_parameters, distance, shape_threshold, shape_distance)
Beispiel #2
0
 def __init__(self,
         distances=histoMaxVariableDR_C3d_params.dR_multicluster_byLayer_coefficientA,
         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,
         shape_threshold=histoMaxVariableDR_C3d_params.shape_threshold,
         shape_distance=histoMaxVariableDR_C3d_params.shape_distance,
         ):
     self.clustering_parameters = histoMax_C3d_clustering_params.clone(
             dR_multicluster_byLayer_coefficientA = distances
             )
     self.seeding_parameters = histoMaxXYVariableDR_C3d_params.clone()
     set_histomax_seeding_params(self.seeding_parameters, nBins_X1, nBins_X2, histoMaxXYVariableDR_C3d_params.binSumsHisto, seed_threshold)
     set_histomax_clustering_params(self.clustering_parameters, 0, shape_threshold, shape_distance)
Beispiel #3
0
def create_histoMax(process, inputs,
                    distance=histoMax_C3d_clustering_params.dR_multicluster,
                    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,
                    shape_threshold=histoMax_C3d_clustering_params.shape_threshold,
                    shape_distance=histoMax_C3d_clustering_params.shape_distance,
                    ):
    producer = process.hgcalBackEndLayer2Producer.clone(
            InputCluster = cms.InputTag('{}:HGCalBackendLayer1Processor2DClustering'.format(inputs))
            )
    producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters = histoMax_C3d_clustering_params.clone()
    producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters = histoMax_C3d_seeding_params.clone()
    set_histomax_seeding_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_seeding_parameters, nBins_X1, nBins_X2, binSumsHisto,
            seed_threshold)
    set_histomax_clustering_params(producer.ProcessorParameters.C3d_parameters.histoMax_C3d_clustering_parameters, distance, shape_threshold, shape_distance)

    return producer