CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gsfElectrons_cfi.py
Go to the documentation of this file.
1 from RecoEcal.EgammaClusterProducers.hybridSuperClusters_cfi import cleanedHybridSuperClusters
2 from RecoEcal.EgammaClusterProducers.multi5x5BasicClusters_cfi import multi5x5BasicClustersCleaned
3 
4 from RecoEgamma.EgammaIsolationAlgos.electronTrackIsolations_cfi import trkIsol03CfgV1,trkIsol04CfgV1,trkIsol03CfgV2,trkIsol04CfgV2
5 
6 from RecoEgamma.EgammaElectronProducers.gsfElectronProducer_cfi import gsfElectronProducer
7 
8 #==============================================================================
9 # Producer of transient ecal driven gsf electrons
10 #==============================================================================
11 
12 ecalDrivenGsfElectrons = gsfElectronProducer.clone(
13 
14  # Ecal rec hits configuration
15  recHitFlagsToBeExcludedBarrel = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
16  recHitFlagsToBeExcludedEndcaps = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
17  recHitSeverityToBeExcludedBarrel = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
18  recHitSeverityToBeExcludedEndcaps = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
19 
20  # Isolation algos configuration
21  trkIsol03Cfg = trkIsol03CfgV1,
22  trkIsol04Cfg = trkIsol04CfgV1,
23  trkIsolHEEP03Cfg = trkIsol03CfgV2,
24  trkIsolHEEP04Cfg = trkIsol04CfgV2,
25 )
26 
27 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
28 pp_on_AA.toModify(ecalDrivenGsfElectrons.preselection, minSCEtBarrel = 15.0)
29 pp_on_AA.toModify(ecalDrivenGsfElectrons.preselection, minSCEtEndcaps = 15.0)
30 
31 ecalDrivenGsfElectronsHGC = ecalDrivenGsfElectrons.clone(
32  gsfElectronCoresTag = "ecalDrivenGsfElectronCoresHGC",
33  useGsfPfRecTracks = False,
34  useDefaultEnergyCorrection = False,
35  ambClustersOverlapStrategy = 0,
36  applyAmbResolution = True,
37  ignoreNotPreselected = False,
38 )