Example #1
0
mvaMETDiTau.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
mvaMETDiTau.srcLeptons = cms.VInputTag(
    cms.InputTag("tauPreSelectionDiTau", "", ""),
    cms.InputTag("tauPreSelectionDiTau", "", ""),
)
mvaMETDiTau.permuteLeptons = cms.bool(True)

# correct TauES (after MVA MET according to current baseline)
cmgDiTauCor = cmgDiTauCor.clone()

# this selector goes after the TauES correction
cmgDiTauTauPtSel = cms.EDFilter(
    "PATCompositeCandidateSelector",
    src=cms.InputTag("cmgDiTauCor"),
    cut=cms.string("daughter(0).pt()>45. && daughter(1).pt()>45."))

# recoil correction ----------------------------------------------------
# JAN: We don't know yet if we need this in 2015; re-include if necessary

# sequence -------------------------------------------------------------
diTauMVAMetSequence = cms.Sequence(mvaMETDiTau)

# SVFit ----------------------------------------------------------------
cmgDiTauCorSVFitPreSel = diTauSVFit.clone()

cmgDiTauCorSVFitFullSel = cmgDiTauSel.clone()

diTauSequence = cms.Sequence(tauPreSelectionDiTau + diTauMVAMetSequence +
                             cmgDiTau + cmgDiTauCor + cmgDiTauTauPtSel +
                             cmgDiTauCorSVFitPreSel + cmgDiTauCorSVFitFullSel)
# this selector goes after the TauES correction
cmgDiTauTauPtSel = cms.EDFilter(
  "PATCompositeCandidateSelector",
  src = cms.InputTag("cmgDiTauCor"),
  cut = cms.string("daughter(0).pt()>45. && daughter(1).pt()>45.")
  )

# recoil correction ----------------------------------------------------
# JAN: We don't know yet if we need this in 2015; re-include if necessary

# sequence -------------------------------------------------------------
diTauMVAMetSequence = cms.Sequence(
  mvaMETDiTau
  )

# SVFit ----------------------------------------------------------------
cmgDiTauCorSVFitPreSel = diTauSVFit.clone()

cmgDiTauCorSVFitFullSel = cmgDiTauSel.clone() 

diTauSequence = cms.Sequence(   
  tauPreSelectionDiTau    +   
  diTauMVAMetSequence     +
  cmgDiTau                +
  cmgDiTauCor             +
  cmgDiTauTauPtSel        +
  cmgDiTauCorSVFitPreSel  +
  cmgDiTauCorSVFitFullSel
  )