import FWCore.ParameterSet.Config as cms import os from CMGTools.Common.factories.cmgLepton_cfi import leptonFactory electronFactory = cms.PSet( inputCollection = cms.InputTag("patElectronsWithTrigger"), primaryVertexCollection = cms.InputTag("offlinePrimaryVerticesWithBS"), leptonFactory = leptonFactory.clone(), electronMVAFile = cms.FileInPath("CMGTools/Common/data/TMVA_BDTSimpleCat.weights.xml") ) from CMGTools.Common.selections.cutidelectron_cfi import * cmgElectron = cms.EDFilter("ElectronPOProducer", cfg = electronFactory.clone(), cuts = cms.PSet( ecalDriven = cms.string('ecalDriven() == 1'), isEB = cms.string('sourcePtr().isEB()'), isEE = cms.string('sourcePtr().isEE()'), ) )
import FWCore.ParameterSet.Config as cms from CMGTools.Common.factories.cmgLepton_cfi import leptonFactory muonFactory = cms.PSet( inputCollection=cms.InputTag("selectedPatMuons"), trackType=cms.int32(0), #use the global track, #the flag for muonID, see DataFormats/MuonReco/interface/MuonSelectors.h muonIDType=cms.string("AllGlobalMuons"), leptonFactory=leptonFactory.clone()) #from CMGTools.Common.selections.isolation_cfi import isomuon from ExoDiBosonResonances.EDBRMuon.selections.hmmjjMuonId_cfi import * from ExoDiBosonResonances.EDBRMuon.selections.muKinematics_cfi import muKinematics #from ExoDiBosonResonances.EDBRMuon.selections.muontrigger_cfi import muontrigger cmgMuon = cms.EDFilter( "MuonPOProducer", cfg=muonFactory.clone(), cuts=cms.PSet( kinematics=muKinematics.clone(), isomuon=cms.PSet(reliso=cms.string( '((sourcePtr().get().trackIso() + sourcePtr().get().caloIso())/sourcePtr().get().pt())< 0.15' )), #AB: PF iso by defualt, to be corrected by eff area vbtfmuon=vbtfmuon.clone(), HPTTKmuon=HPTmuonTKId2012.clone(), HPTGBmuon=HPTmuonGlobalId2012.clone(), HPTmuonLoose=HPTmuonLooseId.clone() # trigger = muontrigger.clone() ))