Go to the source code of this file.
int main |
( |
int |
, |
|
|
char ** |
|
|
) |
| |
Definition at line 32 of file gtestAlgorithms.cxx.
void testReconfigInOwnedModules(void)
void testReconfigInCommonPool(void)
void testReconfigInCommonPool |
( |
void |
| ) |
|
Definition at line 40 of file gtestAlgorithms.cxx.
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);
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...
void ForceReconfiguration(bool ignore_alg_opt_out=false)
const Algorithm * GetAlgorithm(const AlgId &algid)
void UnLock(void)
unlocks the registry (doesn't unlock items)
Algorithm ID (algorithm name + configuration set name)
A registry. Provides the container for algorithm configuration parameters.
Registry * FindRegistry(string key) const
The GENIE Algorithm Factory.
void Set(RgIMapPair entry)
void testReconfigInOwnedModules |
( |
void |
| ) |
|
Definition at line 87 of file gtestAlgorithms.cxx.
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.
Algorithm abstract base class.
virtual const Registry & GetConfig(void) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
virtual void Configure(const Registry &config)
void AdoptSubstructure(void)
Algorithm * AdoptAlgorithm(const AlgId &algid) const
Algorithm ID (algorithm name + configuration set name)
A registry. Provides the container for algorithm configuration parameters.
The GENIE Algorithm Factory.