Skip to content

Create An Experiment Processor

tking53 edited this page Oct 22, 2016 · 6 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 /Scan/utkscan/experiment/source 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/paass/blob/master/Scan/utkscan/core/source/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.

Clone this wiki locally