26 using namespace genie;
31 LOG(
"test",
pINFO) <<
"Get config pool instance";
35 LOG(
"test",
pINFO) <<
"Printing the config pool\n" << *pool;
41 LOG(
"test",
pINFO) <<
"Instantiate a concrete algorithm";
48 LOG(
"test",
pINFO) <<
"Instantiate another concrete algorithm";
50 algf->
GetAlgorithm(
"genie::DipoleELFormFactorsModel",
"Default");
57 LOG(
"test",
pINFO) <<
"Find the configuration for both algorithms";
62 if(config1)
LOG(
"test",
pINFO) <<
"1st algorithm config: \n" << *config1;
63 if(config2)
LOG(
"test",
pINFO) <<
"2nd algorithm config: \n" << *config2;
THE MAIN GENIE PROJECT NAMESPACE
A singleton class holding all configuration registries built while parsing all loaded XML configurati...
Algorithm abstract base class.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
const Algorithm * GetAlgorithm(const AlgId &algid)
static AlgFactory * Instance()
A registry. Provides the container for algorithm configuration parameters.
Registry * FindRegistry(string key) const
The GENIE Algorithm Factory.
static AlgConfigPool * Instance()