Size fixedSamples = 100;
Size fixedSamples = 1000;
    void testMcMFPricer(const P& pricer, double storedValue,                        double tolerance, const std::string& name) {        Size fixedSamples = 100;        double minimumTol = 1.0e-2;        double value = pricer.valueWithSamples(fixedSamples);        if (QL_FABS(value-storedValue) > tolerance)            CPPUNIT_FAIL(                name + ":\n"                "    calculated value: "                + DoubleFormatter::toString(value,10) + "\n"                "    expected:         "                + DoubleFormatter::toString(storedValue,10));        tolerance = pricer.errorEstimate()/value;        tolerance = QL_MIN(tolerance/2.0, minimumTol);        value = pricer.value(tolerance);        double accuracy = pricer.errorEstimate()/value;        if (accuracy > tolerance)            CPPUNIT_FAIL(                name + ":\n"                "    reached accuracy: "                + DoubleFormatter::toString(accuracy,10) + "\n"                "    expected:         "                + DoubleFormatter::toString(tolerance,10));    }