CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
customCalibration.py
Go to the documentation of this file.
1 from __future__ import absolute_import
2 import FWCore.ParameterSet.Config as cms
3 from . import hgcalLayersCalibrationCoefficients_cfi as layercalibparam
4 
5 
7  factor=1.084
8  ):
9  parameters_c2d = process.hgcalBackEndLayer1Producer.ProcessorParameters.C2d_parameters
10  parameters_c2d.calibSF_cluster = cms.double(factor)
11  parameters_c2d.applyLayerCalibration = cms.bool(False)
12  return process
13 
14 
16  weights=layercalibparam.TrgLayer_weights
17  ):
18  parameters_c2d = process.hgcalBackEndLayer1Producer.ProcessorParameters.C2d_parameters
19  parameters_c2d.layerWeights = weights
20  parameters_c2d.applyLayerCalibration = cms.bool(True)
21  return process
def custom_cluster_calibration_global