 |
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, std::move(provider)) {
37 if (AXIS >= vars.
size() ) {
return 0; }
38 if (vars[AXIS]->
size()==0) {
return 0; }
44 anyTrue |=
static_cast<bool>(vars.
cut->
get(
i));
46 if(!anyTrue) {
return 0; }
52 for (
size_t i = 0;
i <
var.size();
i++) {
53 const double v =
var.get(
i);
58 TH1*
hist = this->
template histogram<TH1>();
59 TAxis*
axis = detail::getAxis<AXIS>(
hist);
62 Monitored::detail::rebinHistogram<AXIS>(
hist,
max);
70 if (min < axis->GetXmin())
hist->ExtendAxis(
min,
axis);
OH histogram lock header file.
bool kAddBinsDynamically
add new bins outside the existing range
virtual size_t size() const =0
gives size of vector representation
const Monitored::IMonitoredVariable * cut
pointer to cut mask variable, typically absent
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
virtual double get(size_t) const =0
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)
static std::mutex & globalROOTMutex()
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.