test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
def beginLoop
Definition: Printer.py:5