예제 #1
0
int main(int argc, char** argv) {

    try {    
        StandardModel* myModel;
        myModel = new StandardModel();
        myModel->InitializeModel();
        setSMparameters(*myModel);
        ZFitterWrapper ZF(*myModel);
        
        if (argc>1) {
            if (strcmp(argv[1], "-t")==0) {
                /* test with Subroutine ZFTEST */
                test_ZFTEST(ZF);
            } else {
                cout << "use the option -t for ZFTEST()" << endl;
            }
        } else {
            /* compute EW precision observables */
            test_ZFitterClass(ZF);
        }

        cout << "Test finished" << endl;

        return EXIT_SUCCESS;
    } catch (const runtime_error& e) {
        cerr << e.what() << endl;
        return EXIT_FAILURE;
    }
}