12#define BOOST_TEST_MODULE Test FlatHisto class
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
20#include <TFitResult.h>
32 for (
int i = 0;
i < 1000000;
i++) {
33 h1.
fill(gRandom->Gaus(10, 30));
36 for (
int i = 0;
i < 10000000;
i++) {
37 auto x = gRandom->Gaus(10, 40),
y = gRandom->Gaus(10, 10);
42 auto res = th1f->Fit(
"gaus",
"S");
43 BOOST_CHECK_CLOSE(
res->GetParams()[1], 10, 0.2);
45 printf(
"%e %e\n", h2.
getSum(), h2ref->Integral());
60 TFile flout(
"flathisto.root",
"recreate");
61 flout.WriteObjectAny(&h1,
"o2::dataformats::FlatHisto1D_f",
"h1");
62 flout.WriteObjectAny(&h2,
"o2::dataformats::FlatHisto2D_f",
"h2");
66 TFile flin(
"flathisto.root");
1D messeageable histo class
2D messeageable histo class
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
BOOST_AUTO_TEST_CASE(FlatHisto)