process.pfMVAMEt.srcPFCandidates = cms.InputTag("packedPFCandidates")
process.pfMVAMEt.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
process.pfMVAMEt.inputFileNames = cms.PSet(U     = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru_7_4_X_miniAOD_25NS_July2015.root'),
                                      DPhi  = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrphi_7_4_X_miniAOD_25NS_July2015.root'),
                                      CovU1 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru1cov_7_4_X_miniAOD_25NS_July2015.root'),
                                      CovU2 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru2cov_7_4_X_miniAOD_25NS_July2015.root')
                                      )
process.pfMVAMEt.srcCorrJets = cms.InputTag('calibratedAK4PFJetsForPFMVAMEt')
process.pfMVAMEt.srcUncorrJets = cms.InputTag('ak4PFJets')
'''
## pairwise mvamet

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt

mvaMETTauMu = cms.EDProducer('PFMETProducerMVATauTau', 
                        **pfMVAMEt.parameters_())#pfMVAMEt.clone()
if usePUJetID5X:
  mvaMETTauMu.srcCorrJets = cms.InputTag('calibratedAK4PFJetsForPFMVAMEt')
  mvaMETTauMu.srcUncorrJets = cms.InputTag('ak4PFJets')
else:
  mvaMETTauMu.srcCorrJets = cms.InputTag('calibratedAK4PFJetsCHSForPFMVAMEt')
  mvaMETTauMu.srcUncorrJets = cms.InputTag('ak4PFJetsCHS')

mvaMETTauMu.srcCorrJets = cms.InputTag('calibratedAK4PFJetsForPFMVAMEt')
mvaMETTauMu.srcUncorrJets = cms.InputTag('ak4PFJets')

mvaMETTauMu.srcPFCandidates = cms.InputTag("packedPFCandidates")
mvaMETTauMu.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETTauMu.srcLeptons = cms.VInputTag(cms.InputTag("tauPreSelectionTauMu", "", ""),
                                               cms.InputTag("muonPreSelectionTauMu", "", ""))
mvaMETTauMu.permuteLeptons = cms.bool(True)
    "PATElectronSelector", src=cms.InputTag("slimmedElectrons"), cut=cms.string("pt > 8. && abs(eta) < 2.5")
)

process.leptonPreSelectionSequence = cms.Sequence(
    process.tauPreSelectionDiTau
    + process.tauPreSelectionTauEle
    + process.electronPreSelectionTauEle
    + process.tauPreSelectionTauMu
    + process.muonPreSelectionTauMu
    + process.muonPreSelectionMuEle
    + process.electronPreSelectionMuEle
)
# mva MET
from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt

mvaMETTauMu = cms.EDProducer("PFMETProducerMVATauTau", **pfMVAMEt.parameters_())  # pfMVAMEt.clone()
mvaMETTauMu.srcCorrJets = cms.InputTag("calibratedAK4PFJetsCHSForPFMVAMEt")
mvaMETTauMu.srcUncorrJets = cms.InputTag("ak4PFJetsCHS")

mvaMETTauMu.srcPFCandidates = cms.InputTag("packedPFCandidates")
mvaMETTauMu.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETTauMu.srcLeptons = cms.VInputTag(
    cms.InputTag("tauPreSelectionTauMu", "", ""), cms.InputTag("muonPreSelectionTauMu", "", "")
)
mvaMETTauMu.permuteLeptons = cms.bool(True)

mvaMETTauMu.inputFileNames = cms.PSet(
    U=cms.FileInPath("RecoMET/METPUSubtraction/data/gbru_7_4_X_miniAOD_25NS_July2015.root"),
    DPhi=cms.FileInPath("RecoMET/METPUSubtraction/data/gbrphi_7_4_X_miniAOD_25NS_July2015.root"),
    CovU1=cms.FileInPath("RecoMET/METPUSubtraction/data/gbru1cov_7_4_X_miniAOD_25NS_July2015.root"),
    CovU2=cms.FileInPath("RecoMET/METPUSubtraction/data/gbru2cov_7_4_X_miniAOD_25NS_July2015.root"),
コード例 #3
0
    src = cms.InputTag("slimmedElectrons"),
    cut = cms.string('pt > 8. && abs(eta) < 2.5')
)
 
process.leptonPreSelectionSequence = cms.Sequence(process.tauPreSelectionDiTau+
                                                  process.tauPreSelectionTauEle+process.electronPreSelectionTauEle+
                                                  process.tauPreSelectionTauMu+process.muonPreSelectionTauMu+
                                                  process.muonPreSelectionMuEle+process.electronPreSelectionMuEle
                                                  )

# mva MET

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt

mvaMETTauMu = cms.EDProducer('PFMETProducerMVATauTau', 
                        **pfMVAMEt.parameters_())#pfMVAMEt.clone()

mvaMETTauMu.srcPFCandidates = cms.InputTag("packedPFCandidates")
mvaMETTauMu.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETTauMu.srcLeptons = cms.VInputTag(cms.InputTag("tauPreSelectionTauMu", "", ""),
                                               cms.InputTag("muonPreSelectionTauMu", "", ""))
mvaMETTauMu.permuteLeptons = cms.bool(True)

mvaMETTauMu.inputFileNames = cms.PSet(U     = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru_7_4_X_miniAOD_25NS_July2015.root'),
                                      DPhi  = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrphi_7_4_X_miniAOD_25NS_July2015.root'),
                                      CovU1 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru1cov_7_4_X_miniAOD_25NS_July2015.root'),
                                      CovU2 = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru2cov_7_4_X_miniAOD_25NS_July2015.root')
                                      )

process.mvaMETTauMu = mvaMETTauMu
コード例 #4
0
from CMGTools.H2TauTau.objects.cmgDiMu_cfi import cmgDiMu
from CMGTools.H2TauTau.skims.cmgDiMuSel_cfi import cmgDiMuSel

from CMGTools.H2TauTau.objects.cmgDiMuCor_cfi import cmgDiMuCor
from CMGTools.H2TauTau.objects.diMuSVFit_cfi import diMuSVFit

from CMGTools.H2TauTau.objects.muCuts_cff import muonPreSelection

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt

# lepton pre-selection
muonPreSelectionDiMu = muonPreSelection.clone()

# mva MET
mvaMETDiMu = cms.EDProducer('PFMETProducerMVATauTau', **pfMVAMEt.parameters_())

mvaMETDiMu.srcPFCandidates = cms.InputTag("packedPFCandidates")
mvaMETDiMu.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETDiMu.srcLeptons = cms.VInputTag(
    cms.InputTag("muonPreSelectionDiMu", "", ""),
    cms.InputTag("muonPreSelectionDiMu", "", ""),
)
mvaMETDiMu.permuteLeptons = cms.bool(True)

# # Correct tau pt (after MVA MET according to current baseline)
# cmgDiMuCor = cmgDiMuCor.clone()

# This selector goes after the tau pt correction
cmgDiMuTauPtSel = cms.EDFilter("PATCompositeCandidateSelector",
                               src=cms.InputTag("cmgDiMu"),
コード例 #5
0
from CMGTools.H2TauTau.objects.cmgMuEleCor_cfi import cmgMuEleCor 
from CMGTools.H2TauTau.objects.muEleSVFit_cfi import muEleSVFit 

from CMGTools.H2TauTau.objects.muCuts_cff import muonPreSelection
from CMGTools.H2TauTau.objects.eleCuts_cff import electronPreSelection

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt

# lepton pre-selection
muonPreSelectionMuEle = muonPreSelection.clone()
electronPreSelectionMuEle = electronPreSelection.clone()

# mva MET
mvaMETMuEle = cms.EDProducer('PFMETProducerMVATauTau', 
                             **pfMVAMEt.parameters_())

mvaMETMuEle.srcPFCandidates = cms.InputTag("packedPFCandidates")
mvaMETMuEle.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETMuEle.srcLeptons = cms.VInputTag(
  cms.InputTag("muonPreSelectionMuEle", "", ""),
  cms.InputTag("electronPreSelectionMuEle", "", ""),
  )
mvaMETMuEle.permuteLeptons = cms.bool(True)

# # Correct tau pt (after MVA MET according to current baseline)
# cmgMuEleCor = cmgMuEleCor.clone()

# This selector goes after the tau pt correction
cmgMuEleTauPtSel = cms.EDFilter(
    "PATCompositeCandidateSelector",
コード例 #6
0
from CMGTools.H2TauTau.objects.cmgTauEleCor_cfi import cmgTauEleCor 
from CMGTools.H2TauTau.objects.tauEleSVFit_cfi import tauEleSVFit 

from CMGTools.H2TauTau.objects.tauCuts_cff import tauPreSelection
from CMGTools.H2TauTau.objects.eleCuts_cff import electronPreSelection

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt

# tau pre-selection
tauPreSelectionTauEle = tauPreSelection.clone()
electronPreSelectionTauEle = electronPreSelection.clone()

# mva MET
mvaMETTauEle = cms.EDProducer('PFMETProducerMVATauTau', 
                             **pfMVAMEt.parameters_())

mvaMETTauEle.srcPFCandidates = cms.InputTag("packedPFCandidates")
mvaMETTauEle.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETTauEle.srcLeptons = cms.VInputTag(
  cms.InputTag("tauPreSelectionTauEle", "", ""),
  cms.InputTag("electronPreSelectionTauEle", "", ""),
  )
mvaMETTauEle.permuteLeptons = cms.bool(True)



# Correct tau pt (after MVA MET according to current baseline)
cmgTauEleCor = cmgTauEleCor.clone()

# This selector goes after the tau pt correction
コード例 #7
0
                 selectionCut=cms.double(0.5))),
    cut=cms.string("abs(eta) < 2.3 && pt > 20.0 "),
    filter=cms.bool(False))

## ------------------------------------------------------------------------
## MVA MET
##  - srcLeptons nees a collectino of lepton as close as possible to the
##    leptons selected for the analysis.
##  - srcCorrJets/srcUncorrJets should correspond to the jets as used in
##    the analysis.
from RecoJets.JetProducers.PileupJetIDParams_cfi import JetIdParams

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt as pfMetMVA

metMVAEM = cms.EDProducer('PFMETProducerMVATauTau',
                          **pfMetMVA.parameters_())  #pfMVAMEt.clone()
metMVAET = cms.EDProducer('PFMETProducerMVATauTau',
                          **pfMetMVA.parameters_())  #pfMVAMEt.clone()
metMVAMT = cms.EDProducer('PFMETProducerMVATauTau',
                          **pfMetMVA.parameters_())  #pfMVAMEt.clone()
metMVATT = cms.EDProducer('PFMETProducerMVATauTau',
                          **pfMetMVA.parameters_())  #pfMVAMEt.clone()

## specify the leptons similar to those used in the analysis (channel specific)
metMVAEM.srcLeptons = cms.VInputTag("mvaMETElectrons", "mvaMETMuons")
metMVAEM.permuteLeptons = cms.bool(True)

metMVAET.srcLeptons = cms.VInputTag("mvaMETElectrons", "mvaMETTausET")
metMVAET.permuteLeptons = cms.bool(True)

metMVAMT.srcLeptons = cms.VInputTag("mvaMETMuons", "mvaMETTausMT")
コード例 #8
0
ファイル: KMET_run2_cff.py プロジェクト: KappaAnalysis/Kappa
    cut = cms.string("abs(eta) < 2.3 && pt > 20.0 "),
    filter = cms.bool(False)
    )

## ------------------------------------------------------------------------
## MVA MET
##  - srcLeptons nees a collectino of lepton as close as possible to the
##    leptons selected for the analysis.
##  - srcCorrJets/srcUncorrJets should correspond to the jets as used in
##    the analysis. 
from RecoJets.JetProducers.PileupJetIDParams_cfi import JetIdParams

from RecoMET.METPUSubtraction.mvaPFMET_cff import pfMVAMEt as pfMetMVA

metMVAEM = cms.EDProducer('PFMETProducerMVATauTau', 
                             **pfMetMVA.parameters_())#pfMVAMEt.clone()
metMVAET = cms.EDProducer('PFMETProducerMVATauTau', 
                             **pfMetMVA.parameters_())#pfMVAMEt.clone()
metMVAMT = cms.EDProducer('PFMETProducerMVATauTau', 
                             **pfMetMVA.parameters_())#pfMVAMEt.clone()
metMVATT = cms.EDProducer('PFMETProducerMVATauTau', 
                             **pfMetMVA.parameters_())#pfMVAMEt.clone()

## specify the leptons similar to those used in the analysis (channel specific)
metMVAEM.srcLeptons = cms.VInputTag("mvaMETElectrons", "mvaMETMuons" )
metMVAEM.permuteLeptons = cms.bool(True)

metMVAET.srcLeptons = cms.VInputTag("mvaMETElectrons", "mvaMETTausET")
metMVAET.permuteLeptons = cms.bool(True)

metMVAMT.srcLeptons = cms.VInputTag("mvaMETMuons", "mvaMETTausMT")