#include <chrono>
#include <iostream>
#include <type_traits>
{
for (int i = 0; i < count; ++i) {
RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
}
}
#define BINSOLD \
static const int nBinsX = 4; \
double x[nBinsX] = {0., 0.1, 0.3, 1.}; \
static const int nBinsY = 5; \
double y[nBinsY] = {0., 1., 2., 3., 10.}
#define DECLOLD TH2D hist("a", "a hist", nBinsX - 1, x, nBinsY - 1, y)
#define OLD \
BINSOLD; \
DECLOLD
{
for (int i = 0; i < count; ++i) {
}
}
{
RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
for (int i = 0; i < count; ++i)
hist.Fill({0.611, 0.611});
return hist.GetNDim();
}
{
for (int i = 0; i < count; ++i)
hist.Fill(0.611, 0.611);
return (long)hist.GetEntries();
}
{
RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
std::vector<Hist::RCoordArray<2>>
v(count);
for (int i = 0; i < count; ++i)
return hist.GetNDim();
}
{
for (int i = 0; i < count; ++i)
hist.Fill(0.611, 0.611);
return (long)hist.GetEntries();
}
{
RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
for (int i = 0; i < count; ++i)
return hist.GetNDim();
}
{
for (int i = 0; i < count; ++i) {
RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
}
}
{
for (int i = 0; i < count; ++i) {
TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
}
}
{
RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
for (int i = 0; i < count; ++i)
hist.Fill({0.611, 0.611});
return hist.GetNDim();
}
{
TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
for (int i = 0; i < count; ++i)
hist.Fill(0.611, 0.611);
return (long)hist.GetEntries();
}
{
RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
std::vector<Hist::RCoordArray<2>>
v(count);
for (int i = 0; i < count; ++i)
return hist.GetNDim();
}
{
TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
for (int i = 0; i < count; ++i)
hist.Fill(0.611, 0.611);
return (long)hist.GetEntries();
}
{
RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
for (int i = 0; i < count; ++i)
return hist.GetNDim();
}
{
using namespace std::chrono;
auto start = high_resolution_clock::now();
run(count);
auto end = high_resolution_clock::now();
std::cout << count <<
" * " <<
name <<
": " <<
time_span.count() <<
"seconds \n";
}
{
}
{
int factor = 1000000;
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
static Int_t GetDefaultBufferSize()
Static function return the default buffer size for automatic histograms the parameter fgBufferSize ma...
2-D histogram with a double per channel (see TH1 documentation)