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

Constructor & Destructor Documentation

◆ __init__()

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

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

Member Function Documentation

◆ close()

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

Definition at line 47 of file looper.py.

47  def close(self):
48  '''Stop all services'''
49  for service in self.services.values():
50  service.stop()
51 
52 

References looper.Setup.services, SequenceVisitors.NodeVisitor.services, config.Config.services, Config.Process.services, and contentValuesCheck.values.

Referenced by esMonitoring.AsyncLineReaderMixin.handle_close(), and esMonitoring.FDJsonServer.handle_close().

Member Data Documentation

◆ config

looper.Setup.config

Definition at line 44 of file looper.py.

◆ services

looper.Setup.services

Definition at line 45 of file looper.py.

Referenced by looper.Setup.close().

contentValuesCheck.values
values
Definition: contentValuesCheck.py:38