Test for classes in GausFitCache,h. More...
#include <cassert>
#include <cmath>
#include <array>
#include <limits>
#include "boost/test/unit_test.hpp"
#include "cetlib/pow.h"
#include "TH1D.h"
#include "TFitResultPtr.h"
#include "TFitResult.h"
#include "larreco/RecoAlg/GausFitCache.h"
Go to the source code of this file.
Classes | |
struct | RootGausFuncWrapper |
Macros | |
#define | BOOST_TEST_MODULE ( HitAnaAlg_test ) |
Typedefs | |
using | tolerance_t = decltype(0.001%tolerance()) |
Functions | |
BOOST_AUTO_TEST_CASE (TestGaussianTest) | |
BOOST_AUTO_TEST_CASE (GaussianTest) | |
BOOST_AUTO_TEST_CASE (GaussianTrunc5Test) | |
BOOST_AUTO_TEST_CASE (GaussianTrunc4Test) | |
Double_t | multi_gaus (Double_t x, const unsigned int nGaus, Double_t const *params) |
Expect for each Gaussian ROOT-like parameters: amplitude, mean, sigma. More... | |
std::vector< Double_t > | SortGaussianResults (TF1 const *pFunc, Double_t const *Params) |
void | ThreeGaussianFitTest (hit::GausFitCache &GausCache, tolerance_t tol) |
BOOST_AUTO_TEST_CASE (ThreeGaussianTest) | |
BOOST_AUTO_TEST_CASE (RunTimeThreeGaussianFitTest) | |
BOOST_AUTO_TEST_CASE (CompiledThreeGaussianFitTest) | |
BOOST_AUTO_TEST_CASE (CompiledTruncated5ThreeGaussianFitTest) | |
BOOST_AUTO_TEST_CASE (CompiledTruncated4ThreeGaussianFitTest) | |
BOOST_AUTO_TEST_CASE (CompiledTruncated3ThreeGaussianFitTest) | |
Test for classes in GausFitCache,h.
Definition in file GausFitCache_test.cc.
#define BOOST_TEST_MODULE ( HitAnaAlg_test ) |
Definition at line 19 of file GausFitCache_test.cc.
using tolerance_t = decltype(0.001% tolerance()) |
Definition at line 36 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | TestGaussianTest | ) |
Definition at line 52 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | GaussianTest | ) |
Definition at line 107 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | GaussianTrunc5Test | ) |
Definition at line 141 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | GaussianTrunc4Test | ) |
Definition at line 175 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | ThreeGaussianTest | ) |
Definition at line 364 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | RunTimeThreeGaussianFitTest | ) |
Definition at line 387 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | CompiledThreeGaussianFitTest | ) |
Definition at line 396 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | CompiledTruncated5ThreeGaussianFitTest | ) |
Definition at line 406 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | CompiledTruncated4ThreeGaussianFitTest | ) |
Definition at line 417 of file GausFitCache_test.cc.
BOOST_AUTO_TEST_CASE | ( | CompiledTruncated3ThreeGaussianFitTest | ) |
Definition at line 427 of file GausFitCache_test.cc.
Double_t multi_gaus | ( | Double_t | x, |
const unsigned int | nGaus, | ||
Double_t const * | params | ||
) |
Expect for each Gaussian ROOT-like parameters: amplitude, mean, sigma.
Definition at line 214 of file GausFitCache_test.cc.
std::vector<Double_t> SortGaussianResults | ( | TF1 const * | pFunc, |
Double_t const * | Params | ||
) |
Definition at line 229 of file GausFitCache_test.cc.
void ThreeGaussianFitTest | ( | hit::GausFitCache & | GausCache, |
tolerance_t | tol | ||
) |
Definition at line 271 of file GausFitCache_test.cc.