Exemplo n.º 1
0
if not isSignal:
    getattr(process,'patPF2PATSequence'+pfpostfix).replace(getattr(process,'patMuons'+pfpostfix),
                                                           getattr(process,'patMuons'+pfpostfix) *
                                                           process.kinLeptonFilterSequence)

    


########## Prepare Tree ##
if ttH:
    process.load('TtZAnalysis.TreeWriter.treewriter_tth_cff')

elif susy:
    process.load('TtZAnalysis.TreeWriter.treewriter_susy_cff')
    from TtZAnalysis.Workarounds.usePFIsoCone import *
    usePFIsoCone(process)
    #load the standard pat objects
    #process.kinMuons.src = 'patMuons'
    #process.kinElectrons.src = 'patElectrons'

else:
    process.load('TtZAnalysis.TreeWriter.treewriter_ttz_cff')




#process.PFTree.vertexSrc         = 'goodVertices' #use standard
process.PFTree.metSrc            = 'patMETs'+pfpostfix
process.PFTree.mvaMetSrc          = 'patMEtMVA'
process.PFTree.metT1Src            = 'patpfMetT1'
process.PFTree.metT0T1TxySrc        ='patpfMetT0T1Txy'
Exemplo n.º 2
0
    pfChargedHadrons = cms.InputTag("elPFIsoValueCharged"+electronIsoCone+"PFId"+pfpostfix),
    pfChargedAll = cms.InputTag("elPFIsoValueChargedAll"+electronIsoCone+"PFId"+pfpostfix),
    pfPUChargedHadrons = cms.InputTag("elPFIsoValuePU"+electronIsoCone+"PFId"+pfpostfix),
    pfNeutralHadrons = cms.InputTag("elPFIsoValueNeutral"+electronIsoCone+"PFId"+pfpostfix),
    pfPhotons = cms.InputTag("elPFIsoValueGamma"+electronIsoCone+"PFId"+pfpostfix)
    )



######### end of electron implementation ########
######SUSY STUFF####### adapt Muons to get pfIso in reco muons BRUTAL but fast..elecs the same


from TtZAnalysis.Workarounds.usePFIsoCone import *

usePFIsoCone(process) #adapts iso cone usePFIsoCone(process, postfix = "PFIso", dRMuons = "03", dRElectrons="03") for RECO!!! objects

process.EIdSequence = cms.Sequence()

from WWAnalysis.SkimStep.electronIDs_cff import addElectronIDs
eidModules = addElectronIDs(process,process.EIdSequence)

getattr(process,'patDefaultSequence').replace(process.patElectrons,
                                        process.EIdSequence *
                                        process.patElectrons)

for module in eidModules:
    setattr(process.patElectrons.electronIDSources,module.label(),cms.InputTag(module.label()))

if not isMC:
    removeMCMatching( process)
Exemplo n.º 3
0
    process.MuonGSFMerge * process.MuonPFMerge * process.filterkinLeptons)

if not isSignal:
    getattr(process, 'patPF2PATSequence' + pfpostfix).replace(
        getattr(process, 'patMuons' + pfpostfix),
        getattr(process, 'patMuons' + pfpostfix) *
        process.kinLeptonFilterSequence)

########## Prepare Tree ##
if ttH:
    process.load('TtZAnalysis.TreeWriter.treewriter_tth_cff')

elif susy:
    process.load('TtZAnalysis.TreeWriter.treewriter_susy_cff')
    from TtZAnalysis.Workarounds.usePFIsoCone import *
    usePFIsoCone(process)
    #load the standard pat objects
    #process.kinMuons.src = 'patMuons'
    #process.kinElectrons.src = 'patElectrons'

else:
    process.load('TtZAnalysis.TreeWriter.treewriter_ttz_cff')

#process.PFTree.vertexSrc         = 'goodVertices' #use standard
process.PFTree.metSrc = 'patMETs' + pfpostfix
process.PFTree.mvaMetSrc = 'patMEtMVA'
process.PFTree.metT1Src = 'patpfMetT1'
process.PFTree.metT0T1TxySrc = 'patpfMetT0T1Txy'
process.PFTree.metT0T1Src = 'patpfMetT0T1'
process.PFTree.metT1TxySrc = 'patpfMetT1Txy'
process.PFTree.includeTrigger = includetrigger