All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
ICARUSservices.ICARUSserviceManagerClass Class Reference
Inheritance diagram for ICARUSservices.ICARUSserviceManagerClass:
LArSoftUtils.ServiceManagerInstance LArSoftUtils.ServiceManagerInterface LArSoftUtils.ServiceManagerInterface

Public Member Functions

def defaultConfiguration
 
def __init__
 
def setup
 
- Public Member Functions inherited from LArSoftUtils.ServiceManagerInstance
def __init__
 
def registry
 
def registerLoader
 
def get
 
def defaultConfiguration
 
def setConfiguration
 
def setup
 
def __init__
 
def registry
 
def registerLoader
 
def get
 
def defaultConfiguration
 
def setConfiguration
 
def setup
 
- Public Member Functions inherited from LArSoftUtils.ServiceManagerInterface
def registry
 
def loaders
 
def loaded
 
def supported
 
def registerLoader
 
def get
 
def __call__
 
def registry
 
def loaders
 
def loaded
 
def supported
 
def registerLoader
 
def get
 
def __call__
 

Static Public Attributes

string DefaultConfigPath = "services_basic_icarus.fcl"
 
string DefaultServiceTable = "icarus_basic_services"
 
- Static Public Attributes inherited from LArSoftUtils.ServiceManagerInstance
dictionary StandardLoadingTable
 

Additional Inherited Members

- Public Attributes inherited from LArSoftUtils.ServiceManagerInstance
 manager
 
 configuration
 

Detailed Description

Definition at line 46 of file ICARUSservices.py.

Constructor & Destructor Documentation

def ICARUSservices.ICARUSserviceManagerClass.__init__ (   self)

Definition at line 71 of file ICARUSservices.py.

71 
72  def __init__(self):
74  self.setConfiguration(
75  configFile=ICARUSserviceManagerClass.DefaultConfigPath,
76  serviceTable=ICARUSserviceManagerClass.DefaultServiceTable,
)

Member Function Documentation

def ICARUSservices.ICARUSserviceManagerClass.defaultConfiguration (   self)
Configuration:

If `serviceTable` is not `None`, a new configuration is created with the
service table as `serviceTable`, and `configPath` is included in that
configuration (presumably to define `serviceTable`). In this case, if
`configPath` is `None`, "services_icarus_simulation.fcl" is included.

If both `configPath` and `serviceTable` are `None`, the configuration is
created as above, using "icarus_simulation_services" as `serviceTable`.

Finally, if only `serviceTable` is `None`, the configuration file in
`configPath` is included directly, and it is assumed that it already
properly defines a `services` table.

Definition at line 51 of file ICARUSservices.py.

51 
52  def defaultConfiguration(self):
53  """
54 
55  Configuration:
56 
57  If `serviceTable` is not `None`, a new configuration is created with the
58  service table as `serviceTable`, and `configPath` is included in that
59  configuration (presumably to define `serviceTable`). In this case, if
60  `configPath` is `None`, "services_icarus_simulation.fcl" is included.
61 
62  If both `configPath` and `serviceTable` are `None`, the configuration is
63  created as above, using "icarus_simulation_services" as `serviceTable`.
64 
65  Finally, if only `serviceTable` is `None`, the configuration file in
66  `configPath` is included directly, and it is assumed that it already
67  properly defines a `services` table.
68  """
return DefaultConfigPath, DefaultServiceTable
def ICARUSservices.ICARUSserviceManagerClass.setup (   self)
Prepares for ICARUS service provider access in python/Gallery.

Definition at line 79 of file ICARUSservices.py.

79 
80  def setup(self):
81  """Prepares for ICARUS service provider access in python/Gallery."""
82 
84 
85  #
86  # register the services we know about;
87  # some are already known
88  # (`LArSoftUtils.ServiceManagerClass.StandardLoadingTable`), including
89  # 'Geometry', 'LArProperties', 'DetectorClocks' and 'DetectorProperties',
90  # but se override the former with our flavor of it
91  #
92 
93  self.manager.registerLoader('Geometry', ICARUSGeometryServiceGetter())
94 
95  return self.manager

Member Data Documentation

string ICARUSservices.ICARUSserviceManagerClass.DefaultConfigPath = "services_basic_icarus.fcl"
static

Definition at line 48 of file ICARUSservices.py.

string ICARUSservices.ICARUSserviceManagerClass.DefaultServiceTable = "icarus_basic_services"
static

Definition at line 49 of file ICARUSservices.py.


The documentation for this class was generated from the following file: