CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, config, services)
 
def close (self)
 

Public Attributes

 config
 
 services
 

Detailed Description

The Looper creates a Setup object to hold information relevant during 
the whole process, such as the process configuration obtained from 
the configuration file, or services that can be used by several analyzers.

The user may freely attach new information to the setup object, 
as long as this information is relevant during the whole process. 
If the information is event specific, it should be attached to the event 
object instead.

Definition at line 17 of file looper.py.

Constructor & Destructor Documentation

def looper.Setup.__init__ (   self,
  config,
  services 
)
Create a Setup object. 

parameters: 

config: configuration object from the configuration file

services: dictionary of services indexed by service name.
The service name has the form classObject_instanceLabel 
as in this example: 
<base_heppy_path>.framework.services.tfile.TFileService_myhists
To find out about the service name of a given service, 
load your configuration file in python, and print the service. 

Definition at line 27 of file looper.py.

27  def __init__(self, config, services):
28  '''
29  Create a Setup object.
30 
31  parameters:
32 
33  config: configuration object from the configuration file
34 
35  services: dictionary of services indexed by service name.
36  The service name has the form classObject_instanceLabel
37  as in this example:
38  <base_heppy_path>.framework.services.tfile.TFileService_myhists
39  To find out about the service name of a given service,
40  load your configuration file in python, and print the service.
41  '''
42  self.config = config
43  self.services = services
44 
def __init__(self, config, services)
Definition: looper.py:27

Member Function Documentation

def looper.Setup.close (   self)
Stop all services

Definition at line 45 of file looper.py.

Referenced by lumiQTWidget.ApplicationWindow.fileQuit(), esMonitoring.AsyncLineReaderMixin.handle_close(), esMonitoring.FDJsonServer.handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog.keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog.keyPressEvent().

45  def close(self):
46  '''Stop all services'''
47  for service in self.services.values():
48  service.stop()
49 
50 
def close(self)
Definition: looper.py:45

Member Data Documentation

looper.Setup.config

Definition at line 42 of file looper.py.

looper.Setup.services

Definition at line 43 of file looper.py.