You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S. V. Paulauskas edited this page May 20, 2016
·
3 revisions
#Template
As an example, take a look at the Template experiment processor header and source.
#Naming the new Processor
To make your own experiment processor you can simply copy/paste the example files to a new name (following the Style Guidelines. You should then edit these files to replace TemplateExpProcessor, with the appropriate name and make it do what you want it to.
#Updating the CMakeLists.txt
We will need to update src/experiment/CMakeLists.txt to compile our new processor. You should edit this file to look like the following line:
set(EXPERIMENT_SOURCES
NameOfNewProcessor.cpp
)
You can add more than one experiment processor, but you will have to take careful accounting of the histograms, and do a little trickery. I will not detail that here.
#Editing the source code
This part is largely left up to the user. You will have to set the "associatedTypes" to what you want, define your histograms, etc.