Added singleDetector.cxx to run program for 1 detector only