34 for (
int i = 0; i < count; ++i) {
35 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
42 static const int nBinsX = 4; \
43 double x[nBinsX] = {0., 0.1, 0.3, 1.}; \
44 static const int nBinsY = 5; \
45 double y[nBinsY] = {0., 1., 2., 3., 10.}
47#define DECLOLD TH2D hist("a", "a hist", nBinsX - 1, x, nBinsY - 1, y)
57 for (
int i = 0; i < count; ++i) {
66 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
67 for (
int i = 0; i < count; ++i)
68 hist.Fill({0.611, 0.611});
69 return hist.GetNDim();
75 for (
int i = 0; i < count; ++i)
76 hist.Fill(0.611, 0.611);
77 return (
long)hist.GetEntries();
82 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
83 std::vector<Hist::RCoordArray<2>>
v(count);
84 for (
int i = 0; i < count; ++i)
85 v[i] = {0.611, 0.611};
87 return hist.GetNDim();
94 for (
int i = 0; i < count; ++i)
95 hist.Fill(0.611, 0.611);
96 return (
long)hist.GetEntries();
101 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
103 for (
int i = 0; i < count; ++i)
104 filler.Fill({0.611, 0.611});
105 return hist.GetNDim();
113 for (
int i = 0; i < count; ++i) {
114 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
123 for (
int i = 0; i < count; ++i) {
124 TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
132 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
133 for (
int i = 0; i < count; ++i)
134 hist.Fill({0.611, 0.611});
135 return hist.GetNDim();
140 TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
141 for (
int i = 0; i < count; ++i)
142 hist.Fill(0.611, 0.611);
143 return (
long)hist.GetEntries();
148 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
149 std::vector<Hist::RCoordArray<2>>
v(count);
150 for (
int i = 0; i < count; ++i)
151 v[i] = {0.611, 0.611};
153 return hist.GetNDim();
158 TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
160 for (
int i = 0; i < count; ++i)
161 hist.Fill(0.611, 0.611);
162 return (
long)hist.GetEntries();
167 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
169 for (
int i = 0; i < count; ++i)
170 filler.Fill({0.611, 0.611});
171 return hist.GetNDim();
174using timefunc_t = std::add_pointer_t<long(
int)>;
178 using namespace std::chrono;
179 auto start = high_resolution_clock::now();
181 auto end = high_resolution_clock::now();
184 std::cout << count <<
" * " <<
name <<
": " <<
time_span.count() <<
"seconds \n";
195 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)