ATLAS Offline Software
|
Classes | |
struct | get_value_type |
Get element type for containers. More... | |
struct | get_value_type< ActsTrk::TrackContainer > |
struct | get_value_type< std::reference_wrapper< T > > |
Specializations for reference_wrappers which are hopefully never chosen. More... | |
struct | get_value_type< std::reference_wrapper< T[N]> > |
struct | get_value_type< T[N]> |
Get element type for arrays. More... | |
struct | make_pointer_const |
struct | make_pointer_const< T * > |
Functions | |
template<typename H , typename W , typename M , typename ... Ms> | |
void | doFill (H *hist, W weight, size_t i, const M &m1, const Ms &... m) |
Perform (arbitrary dimension) histogram fill with weight. More... | |
template<typename W > | |
void | doFill (TProfile *, W, size_t, const double &, const char *const &) |
template<typename W > | |
void | doFill (TProfile *, W, size_t, const char *const &, const char *const &) |
template<typename W > | |
void | doFill (TProfile2D *, W, size_t, const double &, const double &, const char *const &) |
template<typename W > | |
void | doFill (TProfile2D *, W, size_t, const char *const &, const char *const &, const char *const &) |
template<typename W > | |
void | doFill (TProfile2D *, W, size_t, const char *const &, const double &, const char *const &) |
template<typename W > | |
void | doFill (TProfile2D *, W, size_t, const double &, const char *const &, const char *const &) |
template<typename T = int> | |
int | findToolIndex (const ToolHandleArray< GenericMonitoringTool > &toolArray, const std::string &name) |
Finds the index of an element in a tool handle array by its string name. More... | |
template<Axis AXIS, typename H > | |
constexpr auto | getAxis (H *hist) |
Helper to get corresponding TAxis selected by Monitored::Axis. More... | |
template<Axis AXIS, typename H > | |
double | getFillValue (const H *hist, const IMonitoredVariable *var, size_t i) |
Return value for filling i'th entry of var into AXIS for hist. More... | |
bool | shouldRebinHistogram (const TAxis *axis, const double value) |
Method checks if histogram should be rebinned. More... | |
template<Axis AXIS, typename H > | |
void | rebinHistogram (H *hist, const double value) |
Method that rebins a histogram. More... | |
template<typename T > | |
bool | fillWillRebinHistogram (const TAxis *axis, T value) |
Check if Fill would result in rebinning. More... | |
template<> | |
bool | fillWillRebinHistogram (const TAxis *axis, const char *value) |
Check if Fill would result in rebinning for alphanumeric axis. More... | |
template<typename H , typename T , T... a, typename ... Vs> | |
bool | fillWillRebinHistogram (H *hist, std::integer_sequence< T, a... >, const Vs &... v) |
Check if any of the histogram axes will be rebinned. More... | |
Variables | |
auto | noWeight = [](size_t){ return 1.0; } |
no weight for filling More... | |
auto | noCut = [](size_t){ return true; } |
no cut for filling More... | |
constexpr std::array | axis_name {"X", "Y", "Z"} |
Convert axis to ROOT-compatible character. More... | |
constexpr std::array | axis_bit {TH1::kXaxis, TH1::kYaxis, TH1::kZaxis} |
void Monitored::detail::doFill | ( | H * | hist, |
W | weight, | ||
size_t | i, | ||
const M & | m1, | ||
const Ms &... | m | ||
) |
Perform (arbitrary dimension) histogram fill with weight.
hist | histogram to fill |
weight | weight accessor |
i | IMonitoredVariable entry to fill |
m1,m... | IMonitoredVariable list to fill from |
Definition at line 164 of file HistogramFillerUtils.h.
void Monitored::detail::doFill | ( | TProfile * | , |
W | , | ||
size_t | , | ||
const char *const & | , | ||
const char *const & | |||
) |
Definition at line 192 of file HistogramFillerUtils.h.
void Monitored::detail::doFill | ( | TProfile * | , |
W | , | ||
size_t | , | ||
const double & | , | ||
const char *const & | |||
) |
Definition at line 190 of file HistogramFillerUtils.h.
void Monitored::detail::doFill | ( | TProfile2D * | , |
W | , | ||
size_t | , | ||
const char *const & | , | ||
const char *const & | , | ||
const char *const & | |||
) |
Definition at line 196 of file HistogramFillerUtils.h.
void Monitored::detail::doFill | ( | TProfile2D * | , |
W | , | ||
size_t | , | ||
const char *const & | , | ||
const double & | , | ||
const char *const & | |||
) |
Definition at line 198 of file HistogramFillerUtils.h.
void Monitored::detail::doFill | ( | TProfile2D * | , |
W | , | ||
size_t | , | ||
const double & | , | ||
const char *const & | , | ||
const char *const & | |||
) |
Definition at line 200 of file HistogramFillerUtils.h.
void Monitored::detail::doFill | ( | TProfile2D * | , |
W | , | ||
size_t | , | ||
const double & | , | ||
const double & | , | ||
const char *const & | |||
) |
Definition at line 194 of file HistogramFillerUtils.h.
bool Monitored::detail::fillWillRebinHistogram | ( | const TAxis * | axis, |
const char * | value | ||
) |
Check if Fill would result in rebinning for alphanumeric axis.
Note that even adding a new label to an unlabeled bin is not thread-safe and needs to be treated as "rebinning" (ADHI-4881).
Definition at line 130 of file HistogramFillerUtils.h.
bool Monitored::detail::fillWillRebinHistogram | ( | const TAxis * | axis, |
T | value | ||
) |
Check if Fill would result in rebinning.
Determine if Fill(value) would result in a rebinning of the histogram.
Definition at line 113 of file HistogramFillerUtils.h.
bool Monitored::detail::fillWillRebinHistogram | ( | H * | hist, |
std::integer_sequence< T, a... > | , | ||
const Vs &... | v | ||
) |
Check if any of the histogram axes will be rebinned.
hist | histogram to check |
a... | integer sequence of axes to check (0, 1, ...) |
v... | x, y, ... values to fill |
Definition at line 149 of file HistogramFillerUtils.h.
int Monitored::detail::findToolIndex | ( | const ToolHandleArray< GenericMonitoringTool > & | toolArray, |
const std::string & | name | ||
) |
Finds the index of an element in a tool handle array by its string name.
Definition at line 132 of file MonitoredGroup.h.
|
constexpr |
Helper to get corresponding TAxis selected by Monitored::Axis.
(works for const/non-const TAxis/TH1 thanks to auto return type)
Definition at line 40 of file HistogramFillerUtils.h.
double Monitored::detail::getFillValue | ( | const H * | hist, |
const IMonitoredVariable * | var, | ||
size_t | i | ||
) |
Return value for filling i'th entry of var into AXIS for hist.
If var is string-valued performs a bin lookup first.
AXIS | Histograms axis |
hist | Histogram |
var | MonitoredVariable for value lookup |
i | index for IMonitoredVariable value lookup |
Definition at line 56 of file HistogramFillerUtils.h.
void Monitored::detail::rebinHistogram | ( | H * | hist, |
const double | value | ||
) |
Method that rebins a histogram.
Algorithm will increase a size of the histogram until value
can be included in new range of values. Examples for xMin=1.0, xMax=3.0; value=2.9, xMax will be unchanged value=3.0, xMax will be doubled value=4.9, xMax will be doubled value=5.0, xMax will be quadrupled value=5.1, xMax will be quadrupled value=8.9, xMax will be quadrupled value=9.0, xMax will be octupled value=9.1, xMax will be octupled
Definition at line 89 of file HistogramFillerUtils.h.
Method checks if histogram should be rebinned.
It should happen when the new value is greater or equal to the greatest value of the histogram axis.
Definition at line 70 of file HistogramFillerUtils.h.
|
constexpr |
Definition at line 33 of file HistogramFillerUtils.h.
|
constexpr |
Convert axis to ROOT-compatible character.
Definition at line 32 of file HistogramFillerUtils.h.
auto Monitored::detail::noCut = [](size_t){ return true; } |
no cut for filling
Definition at line 29 of file HistogramFillerUtils.h.
auto Monitored::detail::noWeight = [](size_t){ return 1.0; } |
no weight for filling
Definition at line 28 of file HistogramFillerUtils.h.