A C++ object oriented version of Camwire project