test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
service.py
Go to the documentation of this file.
1 class Service(object):
2  '''Basic service interface.
3  If you want your own service, you should respect this interface
4  so that your service can be used by the looper.
5  '''
6 
7  def __init__(self, cfg, comp, outdir):
8  '''
9  cfg: framework.config.Service object containing whatever parameters
10  you need
11  comp: dummy parameter
12  outdir: output directory for your service (feel free not to use it)
13 
14  Please have a look at TFileService for more information
15  '''
16 
17  def start(self):
18  '''Start the service.
19  Called by the looper, not by the user.
20  '''
21  pass
22 
23  def stop(self):
24  '''Stop the service.
25  Called by the looper, not by the user.
26  '''
27  pass
list object
Definition: dbtoconf.py:77
def __init__
Definition: service.py:7