All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
SBNDservices.SBNDserviceManagerClass Class Reference
Inheritance diagram for SBNDservices.SBNDserviceManagerClass:
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 = "simulationservices_sbnd.fcl"
 
string DefaultServiceTable = "sbnd_simulation_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 SBNDservices.py.

Constructor & Destructor Documentation

def SBNDservices.SBNDserviceManagerClass.__init__ (   self)

Definition at line 71 of file SBNDservices.py.

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

Member Function Documentation

def SBNDservices.SBNDserviceManagerClass.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`, "simulationservices_sbnd.fcl" is included.

If both `configPath` and `serviceTable` are `None`, the configuration is
created as above, using "sbnd_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 SBNDservices.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`, "simulationservices_sbnd.fcl" is included.
61 
62  If both `configPath` and `serviceTable` are `None`, the configuration is
63  created as above, using "sbnd_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 SBNDservices.SBNDserviceManagerClass.setup (   self)
Prepares for SBND service provider access in python/Gallery.

Definition at line 79 of file SBNDservices.py.

79 
80  def setup(self):
81  """Prepares for SBND 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', SBNDGeometryServiceGetter())
94 
95  return self.manager

Member Data Documentation

string SBNDservices.SBNDserviceManagerClass.DefaultConfigPath = "simulationservices_sbnd.fcl"
static

Definition at line 48 of file SBNDservices.py.

string SBNDservices.SBNDserviceManagerClass.DefaultServiceTable = "sbnd_simulation_services"
static

Definition at line 49 of file SBNDservices.py.


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