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.

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 

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

Member Data Documentation

◆ firstEvent

Printer.Printer.firstEvent

Definition at line 8 of file Printer.py.

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

LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66