|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef AthenaMonitoringKernel_HistogramFiller_HistogramFillerRebinable1D_h
6 #define AthenaMonitoringKernel_HistogramFiller_HistogramFillerRebinable1D_h
23 template<
typename BASE, Monitored::Axis AXIS>
28 : BASE(definition, provider) {
37 if (AXIS >= vars.
size() ) {
return 0; }
38 if (vars.
var[AXIS]->size()==0) {
return 0; }
43 for (
size_t i = 0;
i <
var.size();
i++) {
44 const double v =
var.get(
i);
49 TH1*
hist = this->
template histogram<TH1>();
50 TAxis*
axis = detail::getAxis<AXIS>(
hist);
53 Monitored::detail::rebinHistogram<AXIS>(
hist,
max);
61 if (min < axis->GetXmin())
hist->ExtendAxis(
min,
axis);
OH histogram lock header file.
bool kAddBinsDynamically
add new bins outside the existing range
virtual unsigned fill(const HistogramFiller::VariablesPack &vars) const override
the internal class used to keep parsed Filler properties
Mixin class for rebinning of histogram axis.
helper class to pass variables to fillers
Generic monitoring tool for athena components.
size_t size() const
number of variables in the pack ( not counting the weight and mask )
HistogramFillerRebinableAxis< HistogramFiller2D, Axis::X > HistogramFillerRebinable2DX
Rebinable 2D histogram (x-axis only)
HistogramFillerRebinableAxis< HistogramFiller2D, Axis::Y > HistogramFillerRebinable2DY
Rebinable 2D histogram (y-axis only)
void fill(H5::Group &out_file, size_t iterations)
static std::mutex & globalROOTMutex()
std::vector< const Monitored::IMonitoredVariable * > var
storage for variables, default size of 4, serves all histograming uses
constexpr std::array axis_bit
HistogramFillerRebinableAxis< HistogramFillerRebinable2DX, Axis::Y > HistogramFillerRebinable2D
Rebinable 2D histogram (both axes)
HistogramFillerRebinableAxis(const HistogramDef &definition, std::shared_ptr< IHistogramProvider > provider)
bool shouldRebinHistogram(const TAxis *axis, const double value)
Method checks if histogram should be rebinned.
HistogramFillerRebinableAxis< HistogramFiller1D, Axis::X > HistogramFillerRebinable1D
Rebinable 1D histogram.