Main Page
Namespaces
Classes
Package Documentation
PhysicsTools
HeppyCore
python
analyzers
Printer.py
Go to the documentation of this file.
1
from
PhysicsTools.HeppyCore.framework.analyzer
import
Analyzer
2
3
class
Printer
(Analyzer):
4
5
def
beginLoop
(self, setup):
6
super(Printer, self).
beginLoop
(setup)
7
self.
firstEvent
=
True
8
9
def
process
(self, event):
10
if
self.
firstEvent
:
11
event.input.Print()
12
self.
firstEvent
=
False
13
print
"printing event"
, event.iEv,
'var1'
, event.input.var1
14
Printer.Printer.beginLoop
def beginLoop(self, setup)
Definition:
Printer.py:5
Printer.Printer
Definition:
Printer.py:3
Printer.Printer.firstEvent
firstEvent
Definition:
Printer.py:7
Printer.Printer.process
def process(self, event)
Definition:
Printer.py:9
Generated for CMSSW Reference Manual by
1.8.11