Esempio n. 1
0
################################################################################################


postfix = 'EI'

from PhysicsTools.PatAlgos.tools.pfTools import adaptPFMuons, adaptPFElectrons
from PhysicsTools.PatAlgos.tools.helpers import loadWithPostfix
from PhysicsTools.PatAlgos.tools.helpers import applyPostfix

#loadWithPostfix(process,'PhysicsTools.PatAlgos.patSequences_cff',postfix)


# Electrons

adaptPFElectrons(process,
                 process.patElectrons,
                 postfix)

# Muons

adaptPFMuons(process,
             process.patMuons,
             postfix,
             muonMatchModule=process.muonMatch
             )


# Taus
################ TO DO : We need a tau expert to do this. ###################
#process.patTaus.tauSource = cms.InputTag("pfTaus"+postfix)
Esempio n. 2
0
################################################################################################
############################ Configure leptons #################################################
################################################################################################

postfix = 'EI'

from PhysicsTools.PatAlgos.tools.pfTools import adaptPFMuons, adaptPFElectrons
from PhysicsTools.PatAlgos.tools.helpers import loadWithPostfix
from PhysicsTools.PatAlgos.tools.helpers import applyPostfix

#loadWithPostfix(process,'PhysicsTools.PatAlgos.patSequences_cff',postfix)

# Electrons

adaptPFElectrons(process, process.patElectrons, postfix)

# Muons

adaptPFMuons(process,
             process.patMuons,
             postfix,
             muonMatchModule=process.muonMatch)

# Taus
################ TO DO : We need a tau expert to do this. ###################
#process.patTaus.tauSource = cms.InputTag("pfTaus"+postfix)

################################################################################################
############################ Run extra MET reconstruction ######################################
################################################################################################
Esempio n. 3
0
  selectedPatMuonsLoose.src = cms.InputTag( 'patMuonsLoose' + postfix )
  selectedPatMuonsLoose.cut = muonCutLoosePF
  setattr(process,'selectedPatMuonsLoose'+postfix,selectedPatMuonsLoose)

  ## Electrons
  pfIsolatedElectronsLoose = applyPostfix(process, 'pfIsolatedElectrons', postfix).clone()
  pfIsolatedElectronsLoose.isolationCut = cms.double(999.0)
  pfIsolatedElectronsLoose.combinedIsolationCut = cms.double(999.0)
  setattr(process,'pfIsolatedElectronsLoose'+postfix,pfIsolatedElectronsLoose)

  patElectronsLoose = applyPostfix(process, 'patElectrons', postfix).clone()
  patElectronsLoose.pfElectronSource = cms.InputTag( 'pfIsolatedElectronsLoose' + postfix )

  setattr(process,'patElectronsLoose'+postfix,patElectronsLoose)

  adaptPFElectrons( process, getattr(process, 'patElectronsLoose'+postfix), postfix )

  getattr(process, 'patElectronsLoose'+postfix ).isolationValues.user = cms.VInputTag("isoValElectronWithChargedDR03"+postfix
                                                                                      , "isoValElectronWithNeutralDR03"+postfix
                                                                                      , "isoValElectronWithPhotonsDR03"+postfix
                                                                                      , "isoValElectronWithPUDR03"+postfix
                                                                                      , "isoValElectronWithChargedDR04"+postfix
                                                                                      , "isoValElectronWithNeutralDR04"+postfix
                                                                                      , "isoValElectronWithPhotonsDR04"+postfix
                                                                                      , "isoValElectronWithPUDR04"+postfix
    )

  selectedPatElectronsLoose = applyPostfix(process, 'selectedPatElectrons', postfix).clone()
  selectedPatElectronsLoose.src = cms.InputTag( 'patElectronsLoose' + postfix )
  selectedPatElectronsLoose.cut = electronCutLoosePF
  setattr(process,'selectedPatElectronsLoose'+postfix,selectedPatElectronsLoose)
Esempio n. 4
0
    selectedPatMuonsLoose.src = cms.InputTag("patMuonsLoose" + postfix)
    selectedPatMuonsLoose.cut = muonCutLoosePF
    setattr(process, "selectedPatMuonsLoose" + postfix, selectedPatMuonsLoose)

    ## Electrons
    pfIsolatedElectronsLoose = applyPostfix(process, "pfIsolatedElectrons", postfix).clone()
    pfIsolatedElectronsLoose.isolationCut = cms.double(999.0)
    pfIsolatedElectronsLoose.combinedIsolationCut = cms.double(999.0)
    setattr(process, "pfIsolatedElectronsLoose" + postfix, pfIsolatedElectronsLoose)

    patElectronsLoose = applyPostfix(process, "patElectrons", postfix).clone()
    patElectronsLoose.pfElectronSource = cms.InputTag("pfIsolatedElectronsLoose" + postfix)

    setattr(process, "patElectronsLoose" + postfix, patElectronsLoose)

    adaptPFElectrons(process, getattr(process, "patElectronsLoose" + postfix), postfix)

    getattr(process, "patElectronsLoose" + postfix).isolationValues.user = cms.VInputTag(
        "isoValElectronWithChargedDR03" + postfix,
        "isoValElectronWithNeutralDR03" + postfix,
        "isoValElectronWithPhotonsDR03" + postfix,
        "isoValElectronWithPUDR03" + postfix,
        "isoValElectronWithChargedDR04" + postfix,
        "isoValElectronWithNeutralDR04" + postfix,
        "isoValElectronWithPhotonsDR04" + postfix,
        "isoValElectronWithPUDR04" + postfix,
    )

    selectedPatElectronsLoose = applyPostfix(process, "selectedPatElectrons", postfix).clone()
    selectedPatElectronsLoose.src = cms.InputTag("patElectronsLoose" + postfix)
    selectedPatElectronsLoose.cut = electronCutLoosePF