Exemple #1
0
        process.tunePmuons + process.muonTrackError + process.patMuons)

if runOnMC is True:
    process.PATCMGSequence.replace(
        process.muonMatch,
        process.tunePmuons + process.muonTrackError + process.muonMatch)
    process.muonMatch.src = "tunePmuons"

print 'cloning the jet sequence to build PU chs jets'

from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
process.PATCMGJetCHSSequence = cloneProcessingSnippet(
    process, process.PATCMGJetSequence, 'CHS')
process.PATCMGJetCHSSequence.insert(0, process.ak5PFJetsCHS)
from CMGTools.Common.Tools.visitorUtils import replaceSrc
replaceSrc(process.PATCMGJetCHSSequence, 'ak5PFJets', 'ak5PFJetsCHS')
replaceSrc(process.PATCMGJetCHSSequence, 'particleFlow', 'pfNoPileUp')
jecPayload = 'AK5PFchs'
process.patJetsWithVarCHS.payload = jecPayload
process.patJetCorrFactorsCHS.payload = jecPayload
process.puJetIdCHS.jec = jecPayload
process.cmgPUJetMvaCHS.jec = jecPayload
process.selectedPatJetsCHS.cut = 'pt()>10'

# Change the soft muons? Change the MET?
###
### WW ANALYSIS - PAY ATTENTION TO THIS
###

#process.softMuonTagInfos.leptons    = "tunePmuons"
#process.softMuonTagInfosCHS.leptons = "tunePmuons"
    process.patMETs.addGenMET = False 
    process.patMETsRaw.addGenMET = False 

    # adding L2L3Residual corrections
    process.patJetCorrFactors.levels.append('L2L3Residual')
    if isNewerThan('CMSSW_5_2_0'):
        process.patJetCorrFactorsCHSpruned.levels.append('L2L3Residual')


print 'cloning the jet sequence to build PU chs jets'

from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
process.PATCMGJetCHSSequence = cloneProcessingSnippet(process, process.PATCMGJetSequence, 'CHS')
process.PATCMGJetCHSSequence.insert( 0, process.ak5PFJetsCHS )
from CMGTools.Common.Tools.visitorUtils import replaceSrc
replaceSrc( process.PATCMGJetCHSSequence, 'ak5PFJets', 'ak5PFJetsCHS')
replaceSrc( process.PATCMGJetCHSSequence, 'particleFlow', 'pfNoPileUp')
process.patJetCorrFactorsCHS.payload = 'AK5PFchs'
process.selectedPatJetsCHS.cut = 'pt()>10'


########################################################
## Path definition
########################################################
process.PATCMGSequence.remove(process.PATCMGTauSequence)


process.dump = cms.EDAnalyzer('EventContentAnalyzer')

process.load('CMGTools.Common.PAT.addFilterPaths_cff')
process.p = cms.Path(
Exemple #3
0
    # if isNewerThan('CMSSW_5_2_0'):
    #    process.patJetCorrFactorsCHSpruned.levels.append('L2L3Residual')


# Jose: fix to muon isolation in case the pf muon is not within the 1e-5 veto cone w.r.t reco muon (Muon expert should fix somewhere else)
process.muPFIsoDepositChargedAll.ExtractorPSet.DR_Veto = 1e-3

print "cloning the jet sequence to build PU chs jets"

from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet

process.PATCMGJetCHSSequence = cloneProcessingSnippet(process, process.PATCMGJetSequence, "CHS")
process.PATCMGJetCHSSequence.insert(0, process.ak5PFJetsCHS)
from CMGTools.Common.Tools.visitorUtils import replaceSrc

replaceSrc(process.PATCMGJetCHSSequence, "ak5PFJets", "ak5PFJetsCHS")
replaceSrc(process.PATCMGJetCHSSequence, "particleFlow", "pfNoPileUp")
process.PATCMGJetCHSSequence.remove(process.outPFCandCHS)  # not needed for CHS jets
process.PATCMGJetCHSSequence.remove(process.ak5SoftPFJetsForVbfHbbCHS)  # not needed for CHS jets
jecPayload = "AK5PFchs"
process.patJetsWithVarCHS.payload = jecPayload
process.patJetCorrFactorsCHS.payload = jecPayload
process.puJetIdCHS.jec = jecPayload
process.cmgPUJetMvaCHS.jec = jecPayload
process.selectedPatJetsCHS.cut = "pt()>10"
process.QGTaggerCHS.useCHS = True


########################################################
## Path definition
########################################################
Exemple #4
0
print 'loading the main CMG sequence'

process.load('CMGTools.Common.CMG.CMG_cff')

if runOnMC is False:
    # removing MC stuff
    print 'removing MC stuff, as we are running on Data'
    process.CMGSequence.remove(process.genSequence)
    
print 'cloning the jet sequence to build PU chs jets'

from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
process.jetCHSSequence = cloneProcessingSnippet(process, process.jetSequence, 'CHS')
from CMGTools.Common.Tools.visitorUtils import replaceSrc
replaceSrc( process.jetCHSSequence, 'patJetsWithVar', 'patJetsWithVarCHS')
replaceSrc( process.jetCHSSequence, 'puJetId', 'puJetIdCHS')


########################################################
## Path definition
########################################################

process.dump = cms.EDAnalyzer('EventContentAnalyzer')

process.p = cms.Path(
    process.CMGSequence + 
    process.jetCHSSequence 
    )

########################################################
Exemple #5
0
if runPAT:
    process.load('CMGTools.Common.PAT.PATCMG_cff')

    if not runOnMC:
        # removing MC stuff
        print 'removing MC stuff, as we are running on Data'
        process.PATCMGSequence.remove(process.PATCMGGenSequence)

    print 'cloning the jet sequence to build PU chs jets'

    from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
    process.jetCHSSequence = cloneProcessingSnippet(process,
                                                    process.jetSequence, 'CHS')
    from CMGTools.Common.Tools.visitorUtils import replaceSrc
    replaceSrc(process.jetCHSSequence, 'selectedPatJets', 'selectedPatJetsCHS')
    replaceSrc(process.jetCHSSequence, 'puJetId', 'puJetIdCHS')

    process.p += process.CMGSequence
    process.p += process.jetCHSSequence

process.load('CMGTools.Susy.susy_cff')
process.load('CMGTools.Susy.common.susy_cff')
process.schedule = cms.Schedule(process.p, process.razorMJSkimSequenceHadPath,
                                process.razorMJSkimSequenceElePath,
                                process.razorMJSkimSequenceMuPath,
                                process.trkVetoLeptonSequencePath,
                                process.outpath)
if runOnMC:
    process.p += process.susyGenSequence
else:
Exemple #6
0
process.p = cms.Path()

if runPAT:
    process.load('CMGTools.Common.PAT.PATCMG_cff')

    if not runOnMC:
        # removing MC stuff
        print 'removing MC stuff, as we are running on Data'
        process.PATCMGSequence.remove(process.PATCMGGenSequence)

    print 'cloning the jet sequence to build PU chs jets'

    from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
    process.jetCHSSequence = cloneProcessingSnippet(process, process.jetSequence, 'CHS')
    from CMGTools.Common.Tools.visitorUtils import replaceSrc
    replaceSrc( process.jetCHSSequence, 'selectedPatJets', 'selectedPatJetsCHS')
    replaceSrc( process.jetCHSSequence, 'puJetId', 'puJetIdCHS')

    process.p += process.CMGSequence
    process.p += process.jetCHSSequence

process.load('CMGTools.Susy.susy_cff')
process.load('CMGTools.Susy.common.susy_cff')
process.schedule = cms.Schedule(
    process.p,
    process.razorMJSkimSequenceHadPath,
    process.razorMJSkimSequenceElePath,
    process.razorMJSkimSequenceMuPath,
    process.trkVetoLeptonSequencePath,
    process.outpath
    )