1 import FWCore.ParameterSet.Config
as cms
2 import hgcalLayersCalibrationCoefficients_cfi
as layercalibparam
8 parameters_c2d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters
9 parameters_c2d.calibSF_cluster = cms.double(factor)
10 parameters_c2d.applyLayerCalibration = cms.bool(
False)
15 weights=layercalibparam.TrgLayer_weights
17 parameters_c2d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters
18 parameters_c2d.layerWeights = weights
19 parameters_c2d.applyLayerCalibration = cms.bool(
True)
def custom_cluster_calibration_layers(process, weights=layercalibparam.TrgLayer_weights)
def custom_cluster_calibration_global(process, factor=1.084)