src::datasource Namespace Reference


Functions

def setConfigFile
def setOption
def setOptions
def DataSource

Variables

 _cfgFile = None
dictionary _options = {}
 _global_env = None


Function Documentation

def src::datasource::setConfigFile (   name  ) 

Set the name of the psana configuration file, default configuration
file name is psana.cfg. If you want to avoid reading any configuration
file then set it to empty string. 

Configuration file name set with setConfigFile() is used in a next call to DataSource().

Definition at line 8 of file datasource.py.

def src::datasource::setOption (   name,
  value 
)

Set the psana configuration option, this will override any configuration 
option in a file. Option name has format "section.option" where "section" 
is the name of the section in configuration file (such as "psana" or 
"psana_examples.DumpPrinceton"). Value can be any string, possibly empty,
non-string values will be converted to strings using str() call.

Configuration options set with setOption() are used in a next call to DataSource().

Definition at line 19 of file datasource.py.

def src::datasource::setOptions (   mapping  ) 

Set the psana configuration option, this will override any configuration 
option in a file. Argument to this calls is a mapping (dictionary) whose
keys are option names. Option name has format "section.option" where "section" 
is the name of the section in configuration file (such as "psana" or 
"psana_examples.DumpPrinceton"). Value can be any string, possibly empty,
non-string values will be converted to strings using str() call.

Configuration options set with setOptions() are used in a next call to DataSource().

Definition at line 32 of file datasource.py.

def src::datasource::DataSource (   args,
  kwargs 
)

Makes an instance of the data source object (:py:class:`psana._DataSource`).
Arguments can be either a single list of strings or any number of strings,
each string represents either an input file name or event collection.

Definition at line 47 of file datasource.py.

Referenced by psana::PSAna::dataSource().


Variable Documentation

src::datasource::_cfgFile = None [static]

Definition at line 4 of file datasource.py.

dictionary src::datasource::_options = {} [static]

Definition at line 5 of file datasource.py.

src::datasource::_global_env = None [static]

Definition at line 6 of file datasource.py.


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7