CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
Printer.Printer Class Reference
Inheritance diagram for Printer.Printer:

Public Member Functions

def beginLoop
 
def process
 

Public Attributes

 firstEvent
 

Detailed Description

Definition at line 4 of file Printer.py.

Member Function Documentation

def Printer.Printer.beginLoop (   self,
  setup 
)

Definition at line 6 of file Printer.py.

6 
7  def beginLoop(self, setup):
8  super(Printer, self).beginLoop(setup)
9  self.firstEvent = True
def beginLoop
Definition: Printer.py:6
def Printer.Printer.process (   self,
  event 
)

Definition at line 10 of file Printer.py.

References Printer.Printer.firstEvent, CSCFileReader.firstEvent, lhef::LHEReader.firstEvent, lhef::LH5Reader.firstEvent, ApeEstimatorSummary.firstEvent, LeptonRecoSkim.firstEvent, SiStripMonitorPedestals.firstEvent, SiPixelPhase1Analyzer.firstEvent, SiStripMonitorDigi.firstEvent, SiStripMonitorCluster.firstEvent, SiStripMonitorTrack.firstEvent, and print().

10 
11  def process(self, event):
12  if self.firstEvent:
13  event.input.Print()
14  self.firstEvent = False
15  print("printing event", event.iEv, 'var1', event.input.var1)
16 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

Printer.Printer.firstEvent

Definition at line 8 of file Printer.py.

Referenced by looper.Looper.loop(), and Printer.Printer.process().