LDMX Software
|
Classes | |
struct | Entry |
Public Member Functions | |
SimpleCSVTableProvider (const std::string &name, const std::string &tagname, const framework::config::Parameters ¶meters, framework::Process &process) | |
virtual std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &context) |
Pure virtual getCondition function. | |
Public Member Functions inherited from framework::ConditionsObjectProvider | |
ConditionsObjectProvider (const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, Process &process) | |
Class constructor. | |
virtual | ~ConditionsObjectProvider () |
Class destructor. | |
virtual void | releaseConditionsObject (const ConditionsObject *co) |
Called by conditions system when done with a conditions object, appropriate point for cleanup. | |
virtual void | onProcessStart () |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts. | |
virtual void | onProcessEnd () |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events finishes, such as closing database connections. | |
virtual void | onNewRun (ldmx::RunHeader &) |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts for a given run. | |
const std::string & | getConditionObjectName () const |
Get the list of conditions objects available from this provider. | |
const std::string & | getTagName () const |
Access the tag name. | |
Private Types | |
enum | { OBJ_unknown , OBJ_int , OBJ_double } |
Private Member Functions | |
void | entriesFromPython (std::vector< framework::config::Parameters > &) |
void | entriesFromCSV () |
std::string | expandEnv (const std::string &s) const |
Utility for expanding environment variables. | |
Private Attributes | |
enum conditions::SimpleCSVTableProvider:: { ... } | objectType_ |
std::vector< std::string > | columns_ |
std::string | entriesURL_ |
std::string | conditions_baseURL_ |
std::vector< Entry > | entries_ |
Additional Inherited Members | |
Static Public Member Functions inherited from framework::ConditionsObjectProvider | |
static void | declare (const std::string &classname, ConditionsObjectProviderMaker *) |
Internal function which is part of the PluginFactory machinery. | |
Static Public Attributes inherited from framework::ConditionsObjectProvider | |
static const int | CLASSTYPE {10} |
Constant used to types by the PluginFactory. | |
Protected Member Functions inherited from framework::ConditionsObjectProvider | |
std::pair< const ConditionsObject *, ConditionsIOV > | requestParentCondition (const std::string &name, const ldmx::EventHeader &context) |
Request another condition needed to construct this condition. | |
const Process & | process () const |
Get the process handle. | |
Protected Attributes inherited from framework::ConditionsObjectProvider | |
logging::logger | theLog_ |
The logger for this ConditionsObjectProvider. | |
Definition at line 60 of file SimpleCSVTableProvider.h.
|
private |
Definition at line 73 of file SimpleCSVTableProvider.h.
conditions::SimpleCSVTableProvider::SimpleCSVTableProvider | ( | const std::string & | name, |
const std::string & | tagname, | ||
const framework::config::Parameters & | parameters, | ||
framework::Process & | process | ||
) |
Definition at line 13 of file SimpleCSVTableProvider.cxx.
|
virtual |
Definition at line 11 of file SimpleCSVTableProvider.cxx.
|
private |
Definition at line 88 of file SimpleCSVTableProvider.cxx.
|
private |
Definition at line 39 of file SimpleCSVTableProvider.cxx.
|
private |
Utility for expanding environment variables.
Definition at line 126 of file SimpleCSVTableProvider.cxx.
|
virtual |
Pure virtual getCondition function.
Must be implemented by any Conditions providers.
Implements framework::ConditionsObjectProvider.
Definition at line 158 of file SimpleCSVTableProvider.cxx.
References conditions::HomogenousTableCondition< T >::add(), conditions::utility::SimpleTableStreamerCSV::load(), and conditions::BaseTableCondition::setIdMask().
|
private |
Definition at line 74 of file SimpleCSVTableProvider.h.
|
private |
Definition at line 76 of file SimpleCSVTableProvider.h.
|
private |
Definition at line 90 of file SimpleCSVTableProvider.h.
|
private |
Definition at line 75 of file SimpleCSVTableProvider.h.