Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:31

0001 from __future__ import print_function
0002 from PhysicsTools.HeppyCore.framework.analyzer import Analyzer
0003 
0004 class Printer(Analyzer):
0005 
0006     def beginLoop(self, setup):
0007         super(Printer, self).beginLoop(setup)
0008         self.firstEvent = True
0009         
0010     def process(self, event):
0011         if self.firstEvent:
0012             event.input.Print()
0013             self.firstEvent = False
0014         print("printing event", event.iEv, 'var1', event.input.var1)
0015