CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def close
 

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 13 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 23 of file looper.py.

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

Member Function Documentation

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

Definition at line 41 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().

41 
42  def close(self):
43  '''Stop all services'''
44  for service in self.services.values():
45  service.stop()
46 
def close
Definition: looper.py:41

Member Data Documentation

looper.Setup.config

Definition at line 38 of file looper.py.

looper.Setup.services

Definition at line 39 of file looper.py.