Create DetectionFunction.cpp