CMS 3D CMS Logo

customCalibration.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import hgcalLayersCalibrationCoefficients_cfi as layercalibparam
3 
4 
6  factor=1.084
7  ):
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)
11  return process
12 
13 
15  weights=layercalibparam.TrgLayer_weights
16  ):
17  parameters_c2d = process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters
18  parameters_c2d.layerWeights = weights
19  parameters_c2d.applyLayerCalibration = cms.bool(True)
20  return process
def custom_cluster_calibration_layers(process, weights=layercalibparam.TrgLayer_weights)
def custom_cluster_calibration_global(process, factor=1.084)