Jpp
18.0.0-rc.3
the software that should make you happy
|
Implementation test that verify if two histograms are the same. More...
#include <JTestIdentical_t.hh>
Public Member Functions | |
JTestIdentical_t () | |
Default constructor. More... | |
template<class T > | |
JTestResult | JIdenticalTest (T *h1, T *h2, double tolerance, std::string testName, std::string parameterName) |
Bin-by-Bin test of two histograms, that verifies whether the histograms are the same. More... | |
Implementation test that verify if two histograms are the same.
Definition at line 21 of file JTestIdentical_t.hh.
|
inline |
|
inline |
Bin-by-Bin test of two histograms, that verifies whether the histograms are the same.
For each bin, the test calculates the difference, and compares it with a tolerance passed as an argument.
The test is passed if the difference is smaller than the tolerance for every bin.
The template parameter can be TH1X, TH2X or TH3X.
h1 | First object |
h2 | Second object |
tolerance | tolerance value for the bin-by-bin differences |
parameterName | Name of the parameter used to test the histograms |
testName | Name of the test used to compare the histograms |
Definition at line 45 of file JTestIdentical_t.hh.