FRIBParallelanalysis
1.0
FrameworkforMPIParalleldataanalysisatFRIB
|
#include <MPIRawToParametersWorker.h>
Public Member Functions | |
CMPIRawToParametersWorker (AbstractApplication &App) | |
virtual | ~CMPIRawToParametersWorker () |
virtual void | operator() (int argc, char **argv) |
virtual void | initializeUserCode (int argc, char **argv, AbstractApplication &pApp) |
virtual void | unpackData (const void *pData)=0 |
This is an abstract base class for a worker that maps raw parameter data into parameter data. The framework takes care of getting data from the dealer, asking user code to map the associated data into tree parameters and then firing those parameters on to the trigger sorter.
Normally this is used by deriving from this class and supplying an implementation for the unpackData method. This method is expected to analyze the ring item it is given and fill in associated tree parameters. The tree parameters must be those which are defined in the tree parameter setup file. Any new tree parameters can be created and output, but they will not be described in the output file which makes it possible they won't be decipherable at other stages of the analysis pipeline.
The very top levels of the MPI framework are expected to have read in the parameter definition file and assignment of names to ids is assumed to be deterministic.
Users must implement unpackData as it is pure virtual. Users may implement initializeUserCode if they have one-time initialization code they must run.
frib::analysis::CMPIRawToParametersWorker::CMPIRawToParametersWorker | ( | AbstractApplication & | App | ) |
Constructor
App | - referencees the application |
|
virtual |
Destructor Kill off the parameter bufer:
|
virtual |
operator() The entry point for the application object.
argc,argv | - the program parameters. |