Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
PhysicsTools
PatExamples
python
customizedSelection_cff.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
2
3
from
PhysicsTools.PatAlgos.selectionLayer1.electronSelector_cfi
import
selectedPatElectrons
4
isolatedPatElectrons = selectedPatElectrons.clone(src=
"selectedPatElectrons"
, cut=
"pt>10 & abs(eta)<2.5 & (trackIso+caloIso)/pt<0.05"
)
5
6
from
PhysicsTools.PatAlgos.selectionLayer1.muonSelector_cfi
import
selectedPatMuons
7
isolatedPatMuons = selectedPatMuons.clone(src=
"selectedPatMuons"
, cut=
"pt>10 & abs(eta)<2.5 & (trackIso+caloIso)/pt<0.05"
)
8
9
customSelection = cms.Sequence(
10
isolatedPatElectrons *isolatedPatMuons
11
)
Config
electronSelector_cfi
muonSelector_cfi
Generated for CMSSW Reference Manual by
1.8.5