The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Tests::Histograms::MultiDimLayout::TestAlg Struct Reference
Inheritance diagram for Gaudi::Tests::Histograms::MultiDimLayout::TestAlg:
Collaboration diagram for Gaudi::Tests::Histograms::MultiDimLayout::TestAlg:

Public Types

using Base = Gaudi::Functional::Consumer<void()>

Public Member Functions

void operator() () const override

Public Attributes

Gaudi::Accumulators::StaticHistogram< 1 > m_h1 { this, "h1", "", { 10, 0, 10 } }
Gaudi::Accumulators::StaticHistogram< 2 > m_h2 { this, "h2", "", { 10, 0, 10 }, { 10, 0, 10 } }
Gaudi::Accumulators::StaticHistogram< 3 > m_h3

Detailed Description

Definition at line 144 of file HistogramsTests.cpp.

Member Typedef Documentation

◆ Base

Member Function Documentation

◆ operator()()

void Gaudi::Tests::Histograms::MultiDimLayout::TestAlg::operator() ( ) const
inlineoverride

Definition at line 153 of file HistogramsTests.cpp.

153 {
154 int value = 0;
155 // fill 1, 2 and 3 dimensional histograms with different values in each bin
156 for ( double x = -0.5; x < 11; x += 1.0 ) {
157 m_h1[x] += ++value;
158 for ( double y = -0.5; y < 11; y += 1.0 ) {
159 m_h2[{ x, y }] += ++value;
160 for ( double z = -0.5; z < 11; z += 1.0 ) { m_h3[{ x, y, z }] += ++value; }
161 }
162 }
163 }
Gaudi::Accumulators::StaticHistogram< 2 > m_h2
Gaudi::Accumulators::StaticHistogram< 1 > m_h1
Gaudi::Accumulators::StaticHistogram< 3 > m_h3

Member Data Documentation

◆ m_h1

Gaudi::Accumulators::StaticHistogram<1> Gaudi::Tests::Histograms::MultiDimLayout::TestAlg::m_h1 { this, "h1", "", { 10, 0, 10 } }
mutable

Definition at line 148 of file HistogramsTests.cpp.

148{ this, "h1", "", { 10, 0, 10 } };

◆ m_h2

Gaudi::Accumulators::StaticHistogram<2> Gaudi::Tests::Histograms::MultiDimLayout::TestAlg::m_h2 { this, "h2", "", { 10, 0, 10 }, { 10, 0, 10 } }
mutable

Definition at line 149 of file HistogramsTests.cpp.

149{ this, "h2", "", { 10, 0, 10 }, { 10, 0, 10 } };

◆ m_h3

Gaudi::Accumulators::StaticHistogram<3> Gaudi::Tests::Histograms::MultiDimLayout::TestAlg::m_h3
mutable
Initial value:
{ this, "h3", "",
{ 10, 0, 10 }, { 10, 0, 10 }, { 10, 0, 10 } }

Definition at line 150 of file HistogramsTests.cpp.

150 { this, "h3", "",
151 { 10, 0, 10 }, { 10, 0, 10 }, { 10, 0, 10 } };

The documentation for this struct was generated from the following file: