CMS 3D CMS Logo

PixelCPEGeneric_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoLocalTracker.SiPixelRecHits._generic_default_cfi import _generic_default
4 PixelCPEGenericESProducer = _generic_default.clone()
5 
6 # This customizes the Run3 Pixel CPE generic reconstruction in order to activate the IrradiationBiasCorrection
7 # because of the expected resolution loss due to radiation damage
8 from Configuration.Eras.Modifier_run3_common_cff import run3_common
9 run3_common.toModify(PixelCPEGenericESProducer, IrradiationBiasCorrection = True)
10 
11 
12 # customize the Pixel CPE generic producer for phase2
13 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
14 phase2_tracker.toModify(PixelCPEGenericESProducer,
15  UseErrorsFromTemplates = True,
16  LoadTemplatesFromDB = True,
17  NoTemplateErrorsWhenNoTrkAngles = True,
18  TruncatePixelCharge = False,
19  IrradiationBiasCorrection = False, # set IBC off
20  DoCosmics = False,
21  Upgrade = True # use 'upgrade' version of hardcoded CPE errors
22 )
23 
24 
25 # customize the Pixel CPE generic producer in order not to use any template information
26 from Configuration.ProcessModifiers.phase2_PixelCPEGeneric_cff import phase2_PixelCPEGeneric
27 phase2_PixelCPEGeneric.toModify(PixelCPEGenericESProducer,
28  UseErrorsFromTemplates = False, # no GenErrors
29  LoadTemplatesFromDB = False, # do not load templates
30 )