import FWCore.ParameterSet.Config as cms

from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECALMustache_cfi import particleFlowSuperClusterECALMustache as _particleFlowSuperClusterECALMustache

# "Mustache" clustering
particleFlowSuperClusterECALOnly = _particleFlowSuperClusterECALMustache.clone(
    # ECAL-only (no primary vertices) regression setup
    regressionConfig = dict(
        isHLT = True,
        eRecHitThreshold = 1.,
        regressionKeyEB  = 'pfscecal_EBCorrection_online',
        uncertaintyKeyEB = 'pfscecal_EBUncertainty_online',
        regressionKeyEE  = 'pfscecal_EECorrection_online',
        uncertaintyKeyEE = 'pfscecal_EEUncertainty_online',
        vertexCollection = '',
    ),
    # ECAL-only (no primary vertices) thresholds
    thresh_PFClusterBarrel = 0.5,
    thresh_PFClusterEndcap = 0.5,
    thresh_PFClusterES     = 0.5,
)
Beispiel #2
0
import FWCore.ParameterSet.Config as cms

from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECALMustache_cfi import particleFlowSuperClusterECALMustache as _particleFlowSuperClusterECALMustache

# define the default ECAL clustering (Mustache or Box)
particleFlowSuperClusterECAL = _particleFlowSuperClusterECALMustache.clone()

from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
pp_on_AA_2018.toModify(particleFlowSuperClusterECAL,
                       useDynamicDPhiWindow=False)
pp_on_AA_2018.toModify(particleFlowSuperClusterECAL,
                       phiwidth_SuperClusterBarrel=0.20)
pp_on_AA_2018.toModify(particleFlowSuperClusterECAL,
                       phiwidth_SuperClusterEndcap=0.20)

from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
egamma_lowPt_exclusive.toModify(particleFlowSuperClusterECAL,
                                thresh_SCEt=1.0,
                                thresh_PFClusterSeedBarrel=0.5,
                                thresh_PFClusterSeedEndcap=0.5)
Beispiel #3
0
import FWCore.ParameterSet.Config as cms

from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECALMustache_cfi import particleFlowSuperClusterECALMustache as _particleFlowSuperClusterECALMustache
# define the default ECAL clustering (Mustache or Box or DeepSC)
particleFlowSuperClusterECAL = _particleFlowSuperClusterECALMustache.clone()

from Configuration.ProcessModifiers.ecal_deepsc_cff import ecal_deepsc
_particleFlowSuperClusterECALDeepSC = _particleFlowSuperClusterECALMustache.clone(
    ClusteringType="DeepSC",
    deepSuperClusterConfig=cms.PSet(
        modelFile=cms.string(
            "RecoEcal/EgammaClusterProducers/data/DeepSCModels/EOY_2018/model.pb"
        ),
        configFileClusterFeatures=cms.string(
            "RecoEcal/EgammaClusterProducers/data/DeepSCModels/EOY_2018/config_clusters_inputs.txt"
        ),
        configFileWindowFeatures=cms.string(
            "RecoEcal/EgammaClusterProducers/data/DeepSCModels/EOY_2018/config_window_inputs.txt"
        ),
        configFileHitsFeatures=cms.string(
            "RecoEcal/EgammaClusterProducers/data/DeepSCModels/EOY_2018/config_hits_inputs.txt"
        ),
        collectionStrategy=cms.string("Cascade")))
ecal_deepsc.toReplaceWith(particleFlowSuperClusterECAL,
                          _particleFlowSuperClusterECALDeepSC)

from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(particleFlowSuperClusterECAL,
                  useDynamicDPhiWindow=False,
                  phiwidth_SuperClusterBarrel=0.20,
                  phiwidth_SuperClusterEndcap=0.20)