# correctionFile           = cms.FileInPath("flashgg/MicroAOD/data/transformation5x5_Legacy2016_v1.root"), ## for Legacy2016 
                                              correctionFile           = cms.FileInPath("flashgg/MicroAOD/data/transformation5x5_ReReco2017_v2.root"),  ## for Rereco2017

                                              # To apply correction for non5x5 r9, sieie, sipip, sieip set this variable True. Default value False.

                                              doNon5x5transformation   = cms.bool(False), ## Turn this off to remove non5x5 corrections
                                              non5x5correctionFile     = cms.FileInPath("flashgg/MicroAOD/data/transformation_Moriond17_non5x5_v2.root"),

                                              Debug                    = cms.bool(False),
                                              
                                              reRunRegression = cms.bool(False),
                                              reRunRegressionOnData = cms.bool(False),
                                              keepInitialEnergy = cms.bool(True),
                                              regressionConfig = regressionModifier.clone(manualBunchSpacing = cms.int32(25),              
                                                   rhoCollection = cms.InputTag("fixedGridRhoFastjetAll"),
                                                   vertexCollection = cms.InputTag("offlineSlimmedPrimaryVertices"),
                                                   autoDetectBunchSpacing = cms.bool(False),                                                                                          
                                                                                          ),
                                              ## regressionConfig = cms.PSet(
                                              ##      ## ugly copy/paste from RecoEgamma/EgammaTools/python/regressionModifier_cfi.py
                                              ##      ## include it rather...
                                              ##      modifierName    = cms.string('EGExtraInfoModifierFromDB'),  
                                              ##      autoDetectBunchSpacing = cms.bool(False),
                                              ##      applyExtraHighEnergyProtection = cms.bool(True),
                                              ##      bunchSpacingTag = cms.InputTag("bunchSpacingProducer"),
                                              ##      manualBunchSpacing = cms.int32(25),              
                                              ##      rhoCollection = cms.InputTag("fixedGridRhoFastjetAll"),
                                              ##      vertexCollection = cms.InputTag("offlineSlimmedPrimaryVertices"),
                                              ##      electron_config = cms.PSet( # EB, EE
                                              ##                                  regressionKey_25ns  = cms.vstring('gedelectron_EBCorrection_25ns', 'gedelectron_EECorrection_25ns'),
                                              ##                                  uncertaintyKey_25ns = cms.vstring('gedelectron_EBUncertainty_25ns', 'gedelectron_EEUncertainty_25ns'),
Esempio n. 2
0
    recoElectronSrc=cms.InputTag("slimmedElectrons"),  ###MINIAOD
    doGenParticles=cms.bool(True),
    doRecoEle=cms.bool(False),
    #genParticleSrc = cms.InputTag("prunedGenParticles"),
    genParticleSrc=cms.InputTag("genParticles"),
    regressionConfig=regressionModifier.clone(
        manualBunchSpacing=cms.int32(25),
        rhoCollection=cms.InputTag("fixedGridRhoFastjetAll"),
        vertexCollection=cms.InputTag("offlineSlimmedPrimaryVertices"),
        autoDetectBunchSpacing=cms.bool(False),
        photon_config=cms.PSet(  # EB, EE
            regressionKey_ecalonly=cms.vstring('photon_eb_ECALonly_lowpt',
                                               'photon_eb_ECALonly',
                                               'photon_ee_ECALonly_lowpt',
                                               'photon_ee_ECALonly'),
            uncertaintyKey_ecalonly=cms.vstring(
                'photon_eb_ECALonly_lowpt_var', 'photon_eb_ECALonly_var',
                'photon_ee_ECALonly_lowpt_var', 'photon_ee_ECALonly_var'),

            #regressionKey_25ns  = cms.vstring('gedphoton_EBCorrection_25ns', 'gedphoton_EECorrection_25ns'),
            #uncertaintyKey_25ns = cms.vstring('gedphoton_EBUncertainty_25ns', 'gedphoton_EEUncertainty_25ns'),

            #regressionKey_50ns  = cms.vstring('gedphoton_EBCorrection_50ns', 'gedphoton_EECorrection_50ns'),
            #uncertaintyKey_50ns = cms.vstring('gedphoton_EBUncertainty_50ns', 'gedphoton_EEUncertainty_50ns'),
        ),
    ))

process.p = cms.Path(process.demo)

#print process.dumpPython()
import FWCore.ParameterSet.Config as cms
from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier

gedGsfElectronsGSFixed = cms.EDProducer("GsfElectronGSCrysFixer",
    newCores=cms.InputTag("gedGsfElectronCoresGSFixed"),
    oldEles=cms.InputTag("gedGsfElectrons", '', cms.InputTag.skipCurrentProcess()),
    ebRecHits=cms.InputTag("ecalMultiAndGSGlobalRecHitEB"),
    regressionConfig = regressionModifier.clone(rhoCollection=cms.InputTag("fixedGridRhoFastjetAllTmp")),
)
    correctionFile=cms.FileInPath(
        "flashgg/MicroAOD/data/transformation_Moriond17_AfterPreApr_v1.root"
    ),  ## For Morion17 analysis

    # To apply correction for non5x5 r9, sieie, sipip, sieip set this variable True. Default value False.
    doNon5x5transformation=cms.bool(
        True),  ## Turn this off to remove non5x5 corrections
    non5x5correctionFile=cms.FileInPath(
        "flashgg/MicroAOD/data/transformation_Moriond17_non5x5_v2.root"),
    Debug=cms.bool(False),
    reRunRegression=cms.bool(True),
    reRunRegressionOnData=cms.bool(False),
    keepInitialEnergy=cms.bool(True),
    regressionConfig=regressionModifier.clone(
        manualBunchSpacing=cms.int32(25),
        rhoCollection=cms.InputTag("fixedGridRhoFastjetAll"),
        vertexCollection=cms.InputTag("offlineSlimmedPrimaryVertices"),
        autoDetectBunchSpacing=cms.bool(False),
    ),
    ## regressionConfig = cms.PSet(
    ##      ## ugly copy/paste from RecoEgamma/EgammaTools/python/regressionModifier_cfi.py
    ##      ## include it rather...
    ##      modifierName    = cms.string('EGExtraInfoModifierFromDB'),
    ##      autoDetectBunchSpacing = cms.bool(False),
    ##      applyExtraHighEnergyProtection = cms.bool(True),
    ##      bunchSpacingTag = cms.InputTag("bunchSpacingProducer"),
    ##      manualBunchSpacing = cms.int32(25),
    ##      rhoCollection = cms.InputTag("fixedGridRhoFastjetAll"),
    ##      vertexCollection = cms.InputTag("offlineSlimmedPrimaryVertices"),
    ##      electron_config = cms.PSet( # EB, EE
    ##                                  regressionKey_25ns  = cms.vstring('gedelectron_EBCorrection_25ns', 'gedelectron_EECorrection_25ns'),
    ##                                  uncertaintyKey_25ns = cms.vstring('gedelectron_EBUncertainty_25ns', 'gedelectron_EEUncertainty_25ns'),
Esempio n. 5
0
import FWCore.ParameterSet.Config as cms
from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier

gedGsfElectronsGSFixed = cms.EDProducer(
    "GsfElectronGSCrysFixer",
    newCores=cms.InputTag("gedGsfElectronCoresGSFixed"),
    oldEles=cms.InputTag("gedGsfElectrons", '',
                         cms.InputTag.skipCurrentProcess()),
    ebRecHits=cms.InputTag("ecalMultiAndGSGlobalRecHitEB"),
    regressionConfig=regressionModifier.clone(
        rhoCollection=cms.InputTag("fixedGridRhoFastjetAllTmp")),
)