7. CustomizationΒΆ

Customizing Sherpa according to your needs.

Sherpa can be easily extended with certain user defined tools. To this extent, a corresponding C++ class must be written, and compiled into an external library:

$ g++ -shared \
      -I`$SHERPA_PREFIX/bin/Sherpa-config --incdir` \
      `$SHERPA_PREFIX/bin/Sherpa-config --ldflags` \
      -o libMyCustomClass.so My_Custom_Class.C

This library can then be loaded in Sherpa at runtime with the option SHERPA_LDADD, e.g.:

SHERPA_LDADD:
- MyCustomClass

Several specific examples of features which can be extended in this way are listed in the following sections.