CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Printer.py
Go to the documentation of this file.
1 from __future__ import print_function
2 from PhysicsTools.HeppyCore.framework.analyzer import Analyzer
3 
4 class Printer(Analyzer):
5 
6  def beginLoop(self, setup):
7  super(Printer, self).beginLoop(setup)
8  self.firstEvent = True
9 
10  def process(self, event):
11  if self.firstEvent:
12  event.input.Print()
13  self.firstEvent = False
14  print("printing event", event.iEv, 'var1', event.input.var1)
15 
def beginLoop
Definition: Printer.py:6
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47