New macro REST_MakeProcess added for process template generation

It makes it much simpler to write a new process.

Definition:

Int_t REST_MakeProcess(TString name, TString inputevent = "TRestEvent", TString outputevent = "TRestEvent")

If output event is not given while the input event is given, or the two event types are same, it will regard the process to be an analysis process. If both are not given, it will regard the process to be an general input process. The template code will be different due to the cases.

Example:

restMakeProcess TRestMyNewProcess TRestHitsEvent

Then, you will get the .cxx file and the .h file in your current directory.

TRestMyNewProcess.cxx (3.3 KB) TRestMyNewProcess.h (2.7 KB)

1 Like