27 using namespace genie;
64 LOG(
"test",
pINFO) <<
"Instantiate a concrete algorithm";
65 AlgId id(
"genie::QELPXSec",
"CC-Default");
69 LOG(
"test",
pINFO) <<
"Access its configuration at the config pool";
75 LOG(
"test",
pINFO) <<
"Modifying registry";
76 r->
Set(
"CabbiboAngle",0.25);
110 LOG(
"test",
pINFO) <<
"Instantiate a concrete algorithm";
111 AlgId id(
"genie::QELPXSec",
"CC-Default");
117 LOG(
"test",
pINFO) <<
"Adopting substructure";
126 LOG(
"test",
pINFO) <<
"Taking a clone of the deep config registry:";
130 LOG(
"test",
pINFO) <<
"Modifying parameters at the deep registry";
131 r.Set(
"CabbiboAngle", 0.23);
132 r.Set(
"FormFactorsAlg/MuN", -1.92);
133 r.Set(
"FormFactorsAlg/ElFormFactorsAlg/MuN",-1.92);
135 LOG(
"test",
pINFO) <<
"Modified deep config registry:";
Cross Section Calculation Interface.
void testReconfigInOwnedModules(void)
A singleton class holding all configuration registries built while parsing all loaded XML configurati...
Algorithm abstract base class.
int main(int argc, char **argv)
virtual const Registry & GetConfig(void) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void ForceReconfiguration(bool ignore_alg_opt_out=false)
virtual void Configure(const Registry &config)
const Algorithm * GetAlgorithm(const AlgId &algid)
void AdoptSubstructure(void)
Algorithm * AdoptAlgorithm(const AlgId &algid) const
void testReconfigInCommonPool(void)
void UnLock(void)
unlocks the registry (doesn't unlock items)
Algorithm ID (algorithm name + configuration set name)
static AlgFactory * Instance()
A registry. Provides the container for algorithm configuration parameters.
Registry * FindRegistry(string key) const
The GENIE Algorithm Factory.
void Set(RgIMapPair entry)
static AlgConfigPool * Instance()