// ETrackGenerator_t.cpp #include "ETrackGenerator.hpp" #include #include #include #include #include "ptr/Ptr.h" #include "ptr/AutoPolicy.h" #include "trfbase/SurfTest.h" #include "trfbase/SurfacePtr.h" #include "trfbase/ETrack.h" using std::cout; using std::cerr; using std::endl; using std::string; using std::vector; using namespace trf; typedef Ptr ETPtr; //********************************************************************** int main( ) { string component = "ETrackGeneratorLimits"; string ok_prefix = component + " (I): "; string error_prefix = component + " test (E): "; cout << ok_prefix << "---------- Testing component " + component + ". ----------" << endl; // Make sure assert is enabled. bool assert_flag = false; assert ( ( assert_flag = true, assert_flag ) ); if ( ! assert_flag ) { cerr << "Assert is disabled" << endl; return 1; } //******************************************************************** // Verify that I can create a limit object. cout << ok_prefix << "Test default limit object." << endl; ETrackGeneratorLimits myLimit; TrackVector vmin = myLimit.get_vmin(); TrackVector vmax = myLimit.get_vmax(); TrackError emin = myLimit.get_emin(); TrackError emax = myLimit.get_emax(); cout << "vectors will range from " << endl << vmin << endl; cout << "to " << endl << vmax << endl << endl << endl; cout << "errors will range from " << endl << emin << endl; cout << "to " << endl << emax << endl<