psana::PSAna Class Reference
[psana package]

PSana framework class. More...

#include <PSAna.h>

List of all members.

Public Member Functions

 PSAna (const std::string &config, const std::map< std::string, std::string > &options)
 Make framework instance.
 ~PSAna ()
std::vector< std::string > modules ()
 Get the list of modules.
DataSource dataSource (const std::vector< std::string > &input)
 Create data source instance for the set of input files/datasets.


Detailed Description

PSana framework class.

This class makes instances of the psana framework. For now there could be just one single instance, attempt to instantiate another instance will likely lead to exception.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

Version:
Id
PSAna.h 5435 2013-02-13 01:02:07Z salnikov@SLAC.STANFORD.EDU
Author:
Andy Salnikov

Definition at line 61 of file PSAna.h.


Constructor & Destructor Documentation

psana::PSAna::PSAna ( const std::string &  config,
const std::map< std::string, std::string > &  options 
)

Make framework instance.

Framework constructor takes the name of the configuration file which can be empty and the set of the configuration options. Option provided via mapping, keys have format "section.param", values are strings. If section is not specified then it defaults to "psana". Options provided in constructor override options specified in configuration file.

Parameters:
[in] config Name of the configuration file, typically "psana.cfg".
[in] options Other configuration options

Definition at line 116 of file PSAna.cpp.

References psana::Context::set().

psana::PSAna::~PSAna (  ) 

Definition at line 154 of file PSAna.cpp.


Member Function Documentation

DataSource psana::PSAna::dataSource ( const std::vector< std::string > &  input  ) 

Create data source instance for the set of input files/datasets.

This method can be called multiple times with different (or same) set of inputs. If list of inputs is empty then inputs from configuration file are used.

Parameters:
[in] input List of inputs which can include files names, dataset names, etc.
Returns:
Instance of the data source class.

Definition at line 172 of file PSAna.cpp.

References amap, src::datasource::DataSource(), dataSrc, exp, PSTime::TimeFormat::format(), guessType(), HDF5, IDX, psana::DynLoader::loadInputModule(), psana::DynLoader::loadModule(), logger, Mixed, MsgLog, MsgLogRoot, psana::Context::set(), SHMEM, SMALLDATA, Unknown, and XTC.

Referenced by psana::PSAnaApp::runApp().

std::vector< std::string > psana::PSAna::modules (  ) 

Get the list of modules.

Definition at line 162 of file PSAna.cpp.

Referenced by psana::PSAnaApp::runApp().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7