Verbosity
RecPack provides a very complete verbosity system for easy debugging. All classes with external verbosty control should inherit
from the class EVerbose, under the directory util. There are eight vervosity levels: MUTE, ERROR, WARNING, INFO,
NORMAL, DETAILED, VERBOSE and VVERVOSE. Some examples on how to change the verbosity levels for individual classes:
// Set the verbosity of the selected fitter to DETAILED
man().fitting_svc().fitter().set_verbosity(Messenger::DETAILED);
// Set the verbosity of the navigation service VERBOSE
man().navigation_svc().set_verbosity(Messenger::VERBOSE);
// Set the verbosity of the Navigator
man().navigation_svc().navigator().set_verbosity(Messenger::VERBOSE);
// Set the verbosity of muliple scattering inspector
man().navigation_svc().inspector(RP::ms).set_verbosity(Messenger::VERBOSE);
// Set the verbosity of the master inspector
man().navigation_svc().navigator().master_inspector().set_verbosity(Messenger::VERBOSE);
// Set the verbosity of magnetic field inspector to DETAILED
man().navigation_svc().inspector(RP::BField).set_verbosity(Messenger::VERBOSE);
// Set the verbosity of energy loss inspector DETAILED
man().navigation_svc().inspector("eloss").set_verbosity(Messenger::VERBOSE);
// Set the verbosity of the Plane intersector
man().model_svc().model().intersector(RP::plane).set_verbosity(Messenger::VERBOSE);
// Set the verbosity of the numerical intersector
man().model_svc().model().intersector("numerical").set_verbosity(Messenger::VERBOSE);
// Set the verbosity of Helix equation
man().model_svc().model().equation().set_verbosity(level2);
// Set the verbosity of the Helix propagator
man().model_svc().model().propagator().set_verbosity(level2);
// Set the verbosity of MasterProjector
man().model_svc().model().projector().set_verbosity(Messenger::NORMAL);
// Set the verbosity of master noiser
man().model_svc().model().noiser().set_verbosity(Messenger::NORMAL);
// Set the verbosity of energy loss model correction
man().model_svc().model().tool("correction/eloss").set_verbosity(Messenger::NORMAL);
// Set the verbosity of the multiple scattering noiser
man().model_svc().model().tool("noiser/ms").set_verbosity(Messenger::NORMAL);
// Set the verbosity of the numerical intersector
man().model_svc().model().tool("intersector/numerical").set_verbosity(Messenger::NORMAL);
// Set the verbosity of the matching service
man().matching_svc().set_verbosity(Messenger::VERBOSE);