Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
PhysicsTools
Heppy
python
analyzers
examples
SimpleMuonAnalyzer.py
Go to the documentation of this file.
1
from
PhysicsTools.Heppy.analyzers.core.Analyzer
import
Analyzer
2
from
PhysicsTools.Heppy.analyzers.core.AutoHandle
import
AutoHandle
3
from
PhysicsTools.Heppy.physicsobjects.Muon
import
Muon
4
5
6
class
SimpleMuonAnalyzer
(
Analyzer
):
7
'''Just a simple jet analyzer, to be used in tutorials.'''
8
9
def
declareHandles
(self):
10
super(SimpleMuonAnalyzer, self).
declareHandles
()
11
self.handles[
'muons'
] = AutoHandle(
'slimmedMuons'
,
12
'std::vector<pat::Muon>'
)
13
def
process
(self, event):
14
super(SimpleMuonAnalyzer, self).readCollections(event.input)
15
event.muons =
map
(Muon, self.handles[
'muons'
].product())
16
SimpleMuonAnalyzer.SimpleMuonAnalyzer.process
def process(self, event)
Definition:
SimpleMuonAnalyzer.py:13
SimpleMuonAnalyzer.SimpleMuonAnalyzer
Definition:
SimpleMuonAnalyzer.py:6
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
SimpleMuonAnalyzer.SimpleMuonAnalyzer.declareHandles
def declareHandles(self)
Definition:
SimpleMuonAnalyzer.py:9
remoteMonitoring_LASER_era2018_cfg.Analyzer
Analyzer
Definition:
remoteMonitoring_LASER_era2018_cfg.py:62
Generated for CMSSW Reference Manual by
1.8.14