Analysis Software
Documentation for sPHENIX simulation software
|
Factory for modules in the Jetscape framework. More...
#include <JETSCAPE/blob/main/src/framework/JetScapeModuleBase.h>
Factory for modules in the Jetscape framework.
This class implements a static map (i.e. shared between all instances of JetScapeModuleBase) consisting of a std::string of module names (i.e. name in XML config) and a function that creates an instance of the module. This will allow us to automatically add new modules to Jetscape without modifying the framework classes.
Based on: https://stackoverflow.com/a/582456 and https://github.com/alisw/AliPhysics/blob/master/PWG/EMCAL/EMCALtasks/AliEmcalCorrectionComponent.h