CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Printer.Printer Class Reference
Inheritance diagram for Printer.Printer:

Public Member Functions

def beginLoop (self, setup)
 
def process (self, event)
 

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  def beginLoop(self, setup):
7  super(Printer, self).beginLoop(setup)
8  self.firstEvent = True
9 
def beginLoop(self, setup)
Definition: Printer.py:6
def Printer.Printer.process (   self,
  event 
)

Definition at line 10 of file Printer.py.

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

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 
16 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def process(self, event)
Definition: Printer.py:10

Member Data Documentation

Printer.Printer.firstEvent

Definition at line 8 of file Printer.py.

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