GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
void NarvalInterface::process_config ( const Char_t *  directory,
UInt_t *  error_code,
Short_t  do_adf_conf = 0 
)
staticinherited

Have to be overwritten and called in your implementation.

With this methods, global parameters/variables are set. The first argument is a path to a directory in which you may have a particular file (or set of files) required to help you algorithm running.

It could be for instance cross section tables for tracking, base signals for PSA etc ...

This method is static because it is called once per PC (with the possibility to have one thread per core/CPU in multiple core/CPU systems). It would not be efficient to load the same informations several times, especially if this informations is huge.

Warning
As a consequence, this method could not be virtual pure to oblige the user to overwrite it. It is then the charge of the user to define it properly

NarvalInterface::process_config() has to be called in your implementation do_adf_conf = 0 (default) means adf is not, in any cases, reconfigured here do_adf_conf = 1 means adf is reconfigured only if ADF_CONF_PATH is not defined
(look for ADF.conf in path) do_adf_conf = 2 means adf is reconfigured even if ADF_CONF_PATH is defined
(allows a specific actor to have a specific configuration)

Definition at line 270 of file NarvalInterface.cpp.