#include <PSAna.h>
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. |
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.
Definition at line 61 of file PSAna.h.
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.
[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().
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.
[in] | input | List of inputs which can include files names, dataset names, etc. |
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().