17 #include <TObjString.h> 27 using namespace genie;
48 <<
"Converting configuration registries to TFolders";
50 fConfig = gROOT->GetRootFolder()->AddFolder(
"gconfig",
"GENIE configs");
51 gROOT->GetListOfBrowsables()->Add(
fConfig,
"gconfig");
58 for(keyiter = vconfkeys.begin(); keyiter != vconfkeys.end(); ++keyiter) {
60 string key = *keyiter;
62 LOG(
"Ntp",
pDEBUG) <<
"Current configuration registry key" <<
key;
65 assert(vkey.size()==2);
66 string alg_name = vkey[0];
67 string param_set = vkey[1];
70 <<
"alg_name: " << alg_name <<
", param_set: " << param_set;
72 if( !(
fConfig->FindObject(alg_name.c_str())) ) {
73 LOG(
"Ntp",
pDEBUG) <<
"Adding new folder for alg: " << alg_name;
74 fConfig->AddFolder(alg_name.c_str(),
"");
76 TFolder * alg_folder = (TFolder *)
fConfig->FindObject(alg_name.c_str());
78 LOG(
"Ntp",
pDEBUG) <<
"Adding folder for param set: " << param_set;
79 TFolder * config_folder = alg_folder->AddFolder(param_set.c_str(),
"");
81 LOG(
"Ntp",
pDEBUG) <<
"Accessing Registry & converting it to TFolder";
Stores the GENIE configuration in ROOT TFolders along with the output event tree. ...
THE MAIN GENIE PROJECT NAMESPACE
A singleton class holding all configuration registries built while parsing all loaded XML configurati...
ClassImp(NtpMCJobConfig) NtpMCJobConfig
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
const vector< string > & ConfigKeyList(void) const
vector< string > Split(string input, string delim)
A registry. Provides the container for algorithm configuration parameters.
Registry * FindRegistry(string key) const
void CopyToFolder(TFolder *folder) const
virtual ~NtpMCJobConfig()
static AlgConfigPool * Instance()