CMS 3D CMS Logo

customizePF.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # customization function for ECAL PF-rechit thresholds
5 # - ZS everywhere
6 # - 1-sigma noise equivalent from 2018
7 #
8 def ecalNoSRPFCut1sigma(process):
10  if hasattr(process, "particleFlowRecHitECAL"):
11  process.particleFlowRecHitECAL.producers[0].srFlags = ""
12  process.particleFlowRecHitECAL.producers[1].srFlags = ""
13  process.particleFlowRecHitECAL.producers[0].qualityTests[0].thresholds = _pfZS._particle_flow_zero_suppression_ECAL_2018_B.thresholds
14  process.particleFlowRecHitECAL.producers[1].qualityTests[0].thresholds = _pfZS._particle_flow_zero_suppression_ECAL_2018_B.thresholds
15  process.particleFlowRecHitECAL.producers[0].qualityTests[0].applySelectionsToAllCrystals = cms.bool(True)
16  process.particleFlowRecHitECAL.producers[1].qualityTests[0].applySelectionsToAllCrystals = cms.bool(True)
17  return process
18 
def ecalNoSRPFCut1sigma(process)
Definition: customizePF.py:8