Skip to content

Create An Experiment Processor

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.

#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.

Clone this wiki locally