-
Notifications
You must be signed in to change notification settings - Fork 9
Create An Experiment Processor
#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.
#Updating DetectorDriver.cpp We will need to edit [the header definition] (https://github.com/pixie16/pixie_scan/blob/master/src/core/DetectorDriver.cpp#L53) to include the proper name. We will update these lines to have the proper name.
#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.