A series of C++ classes for use in high energy particle physics