33 for (
int i = 0; i < count; ++i) {
34 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
41 static const int nBinsX = 4; \
42 double x[nBinsX] = {0., 0.1, 0.3, 1.}; \
43 static const int nBinsY = 5; \
44 double y[nBinsY] = {0., 1., 2., 3., 10.}
46#define DECLOLD TH2D hist("a", "a hist", nBinsX - 1, x, nBinsY - 1, y)
56 for (
int i = 0; i < count; ++i) {
65 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
66 for (
int i = 0; i < count; ++i)
67 hist.Fill({0.611, 0.611});
68 return hist.GetNDim();
74 for (
int i = 0; i < count; ++i)
75 hist.Fill(0.611, 0.611);
76 return (
long)hist.GetEntries();
81 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
82 std::vector<Hist::RCoordArray<2>>
v(count);
83 for (
int i = 0; i < count; ++i)
84 v[i] = {0.611, 0.611};
86 return hist.GetNDim();
93 for (
int i = 0; i < count; ++i)
94 hist.Fill(0.611, 0.611);
95 return (
long)hist.GetEntries();
100 RH2D hist({{{{0., 0.1, 0.3, 1.}}, {{0., 1., 2., 3., 10.}}}});
102 for (
int i = 0; i < count; ++i)
103 filler.Fill({0.611, 0.611});
104 return hist.GetNDim();
112 for (
int i = 0; i < count; ++i) {
113 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
122 for (
int i = 0; i < count; ++i) {
123 TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
131 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
132 for (
int i = 0; i < count; ++i)
133 hist.Fill({0.611, 0.611});
134 return hist.GetNDim();
139 TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
140 for (
int i = 0; i < count; ++i)
141 hist.Fill(0.611, 0.611);
142 return (
long)hist.GetEntries();
147 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
148 std::vector<Hist::RCoordArray<2>>
v(count);
149 for (
int i = 0; i < count; ++i)
150 v[i] = {0.611, 0.611};
152 return hist.GetNDim();
157 TH2D hist(
"a",
"a hist", 100, 0., 1., 5, 0., 10.);
159 for (
int i = 0; i < count; ++i)
160 hist.Fill(0.611, 0.611);
161 return (
long)hist.GetEntries();
166 RH2D hist({{{100, 0., 1.}, {5, 0., 10.}}});
168 for (
int i = 0; i < count; ++i)
169 filler.Fill({0.611, 0.611});
170 return hist.GetNDim();
173using timefunc_t = std::add_pointer_t<long(
int)>;
177 using namespace std::chrono;
178 auto start = high_resolution_clock::now();
180 auto end = high_resolution_clock::now();
183 std::cout << count <<
" * " <<
name <<
": " <<
time_span.count() <<
"seconds \n";
194 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)