#include "rec/JppShowerPdf.hh" #include "rec/JppPdfTest.hh" #include "rec/util.hh" int main(int argc, char** argv){ JppShowerPdf pdf( argv[1], argv[2] ); Trk test_trk; test_trk.E = 1e6; test_trk.pos = Vec(12.0, 13.0, 14.0); test_trk.dir = Vec(0.1, 0.2, 0.3); cout << "Running test_params..." << endl; const uint error_count = pdf.test_params( test_trk ); if( error_count ){ cout << "Test failed! Number of errors: " << error_count << endl; } else cout << "Test passed." << endl; return error_count; }