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

◆ beginLoop()

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 

◆ process()

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  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 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

◆ firstEvent

Printer.Printer.firstEvent

Definition at line 8 of file Printer.py.

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