All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
SBNDutils Namespace Reference

Functions

def loadSBNDgeometry
 Geometry. More...
 
def justLoadSBNDgeometry
 

Variables

string __doc__
 
list __all__
 

Function Documentation

def SBNDutils.justLoadSBNDgeometry (   configFile,
  mapping = None 
)
Loads and returns SBND geometry from the specified configuration file.

This is a one-stop procedure recommended only when running interactively.

Definition at line 36 of file SBNDutils.py.

36 
37 def justLoadSBNDgeometry(configFile, mapping = None):
38  """Loads and returns SBND geometry from the specified configuration file.
39 
40  This is a one-stop procedure recommended only when running interactively.
41  """
42  if mapping is not None:
43  raise NotImplementedError("Support for non-standard mapping not implemented yet.")
44  return loadSBNDgeometry(config=LArSoftUtils.ConfigurationClass(configFile))
45 # justLoadSBNDgeometry()
46 
def justLoadSBNDgeometry
Definition: SBNDutils.py:36
def loadSBNDgeometry
Geometry.
Definition: SBNDutils.py:22
def SBNDutils.loadSBNDgeometry (   config = None,
  registry = None 
)

Geometry.

Loads and returns SBND geometry with the standard SBND channel mapping.

See `loadGeometry()` for the meaning of the arguments.

Definition at line 22 of file SBNDutils.py.

22 
23 def loadSBNDgeometry(config = None, registry = None):
24  """Loads and returns SBND geometry with the standard SBND channel mapping.
25 
26  See `loadGeometry()` for the meaning of the arguments.
27  """
28  SourceCode = LArSoftUtils.SourceCode # alias
29 
30  SourceCode.loadHeaderFromUPS('sbndcode/Geometry/ChannelMapSBNDAlg.h')
31  SourceCode.loadLibrary('sbndcode_Geometry')
32  return LArSoftUtils.loadGeometry \
33  (config=config, registry=registry, mapping=ROOT.geo.ChannelMapSBNDAlg)
34 # loadSBNDgeometry()
35 
def loadSBNDgeometry
Geometry.
Definition: SBNDutils.py:22

Variable Documentation

list SBNDutils.__all__
Initial value:
1 = [
2  'loadSBNDgeometry',
3  'justLoadSBNDgeometry',
4 ]

Definition at line 10 of file SBNDutils.py.

string SBNDutils.__doc__
Initial value:
1 = """
2 Collection of utilities to interface SBND with python, gallery and LArSoft.
3 
4 This module requires ROOT.
5 """

Definition at line 4 of file SBNDutils.py.