23 #include <TObjString.h> 33 using namespace genie;
54 <<
"Converting configuration registries to TFolders";
56 fConfig = gROOT->GetRootFolder()->AddFolder(
"gconfig",
"GENIE configs");
57 gROOT->GetListOfBrowsables()->Add(
fConfig,
"gconfig");
62 vector<string>::const_iterator keyiter;
64 for(keyiter = vconfkeys.begin(); keyiter != vconfkeys.end(); ++keyiter) {
66 string key = *keyiter;
68 LOG(
"Ntp",
pDEBUG) <<
"Current configuration registry key" <<
key;
72 string alg_name = vkey[0];
73 string param_set = vkey[1];
76 <<
"alg_name: " << alg_name <<
", param_set: " << param_set;
78 if( !(
fConfig->FindObject(alg_name.c_str())) ) {
79 LOG(
"Ntp",
pDEBUG) <<
"Adding new folder for alg: " << alg_name;
80 fConfig->AddFolder(alg_name.c_str(),
"");
82 TFolder * alg_folder = (TFolder *)
fConfig->FindObject(alg_name.c_str());
84 LOG(
"Ntp",
pDEBUG) <<
"Adding folder for param set: " << param_set;
85 TFolder * config_folder = alg_folder->AddFolder(param_set.c_str(),
"");
87 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.
assert(nhit_max >=nhit_nbins)
Registry * FindRegistry(string key) const
void CopyToFolder(TFolder *folder) const
virtual ~NtpMCJobConfig()
static AlgConfigPool * Instance()