test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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.process
def process
Definition:
Printer.py:9
Printer.Printer.beginLoop
def beginLoop
Definition:
Printer.py:5
Printer.Printer
Definition:
Printer.py:3
Printer.Printer.firstEvent
firstEvent
Definition:
Printer.py:7
Generated for CMSSW Reference Manual by
1.8.5