![]() |
Project
|
#include <HistogramRegistry.h>
Public Member Functions | |
| HistogramRegistry (char const *const name="histograms", std::vector< HistogramSpec > histSpecs={}, OutputObjHandlingPolicy policy=OutputObjHandlingPolicy::AnalysisObject, bool sortHistos=false, bool createRegistryDir=false) | |
| HistPtr | add (const HistogramSpec &histSpec) |
| HistPtr | add (char const *const name, char const *const title, const HistogramConfigSpec &histConfigSpec, bool callSumw2=false) |
| HistPtr | add (char const *const name, char const *const title, HistType histType, const std::vector< AxisSpec > &axes, bool callSumw2=false) |
| HistPtr | add (const std::string &name, char const *const title, HistType histType, const std::vector< AxisSpec > &axes, bool callSumw2=false) |
| template<typename T > | |
| std::shared_ptr< T > | add (char const *const name, char const *const title, const HistogramConfigSpec &histConfigSpec, bool callSumw2=false) |
| template<typename T > | |
| std::shared_ptr< T > | add (char const *const name, char const *const title, HistType histType, const std::vector< AxisSpec > &axes, bool callSumw2=false) |
| template<typename T > | |
| std::shared_ptr< T > | add (const std::string &name, char const *const title, HistType histType, const std::vector< AxisSpec > &axes, bool callSumw2=false) |
| void | addClone (const std::string &source, const std::string &target) |
| bool | contains (const HistName &histName) |
| template<typename T > | |
| std::shared_ptr< T > | get (const HistName &histName) |
| template<typename T > | |
| std::shared_ptr< T > | operator() (const HistName &histName) |
| void | apply (std::function< void(HistogramRegistry const &, TNamed *named)> callback) const |
| OutputSpec const | spec () |
| OutputRef | ref (uint16_t idx, uint16_t pipelineSize) const |
| void | setHash (uint32_t hash) |
| void | clean () |
| deletes all the histograms from the registry | |
| template<typename... Ts> requires (FillValue<Ts> && ...) | |
| void | fill (const HistName &histName, Ts... positionAndWeight) |
| template<typename... Cs, typename T > | |
| void | fill (const HistName &histName, const T &table, const o2::framework::expressions::Filter &filter) |
| double | getSize (const HistName &histName, double fillFraction=1.) |
| double | getSize (double fillFraction=1.) |
| void | print (bool showAxisDetails=false) |
Public Attributes | |
| uint32_t | lookup = 0 |
HistogramRegistry for storing and filling histograms of any type.
Definition at line 127 of file HistogramRegistry.h.
| o2::framework::HistogramRegistry::HistogramRegistry | ( | char const *const | name = "histograms", |
| std::vector< HistogramSpec > | histSpecs = {}, |
||
| OutputObjHandlingPolicy | policy = OutputObjHandlingPolicy::AnalysisObject, |
||
| bool | sortHistos = false, |
||
| bool | createRegistryDir = false |
||
| ) |
Definition at line 32 of file HistogramRegistry.cxx.
| template std::shared_ptr< StepTHn > o2::framework::HistogramRegistry::add< StepTHn > | ( | char const *const | name, |
| char const *const | title, | ||
| const HistogramConfigSpec & | histConfigSpec, | ||
| bool | callSumw2 = false |
||
| ) |
Definition at line 117 of file HistogramRegistry.cxx.
| std::shared_ptr< T > o2::framework::HistogramRegistry::add | ( | char const *const | name, |
| char const *const | title, | ||
| const HistogramConfigSpec & | histConfigSpec, | ||
| bool | callSumw2 = false |
||
| ) |
Definition at line 391 of file HistogramRegistry.cxx.
| template std::shared_ptr< StepTHn > o2::framework::HistogramRegistry::add< StepTHn > | ( | char const *const | name, |
| char const *const | title, | ||
| HistType | histType, | ||
| const std::vector< AxisSpec > & | axes, | ||
| bool | callSumw2 = false |
||
| ) |
Definition at line 122 of file HistogramRegistry.cxx.
| std::shared_ptr< T > o2::framework::HistogramRegistry::add | ( | char const *const | name, |
| char const *const | title, | ||
| HistType | histType, | ||
| const std::vector< AxisSpec > & | axes, | ||
| bool | callSumw2 = false |
||
| ) |
Definition at line 402 of file HistogramRegistry.cxx.
| HistPtr o2::framework::HistogramRegistry::add | ( | const HistogramSpec & | histSpec | ) |
Definition at line 112 of file HistogramRegistry.cxx.
| HistPtr o2::framework::HistogramRegistry::add | ( | const std::string & | name, |
| char const *const | title, | ||
| HistType | histType, | ||
| const std::vector< AxisSpec > & | axes, | ||
| bool | callSumw2 = false |
||
| ) |
Definition at line 127 of file HistogramRegistry.cxx.
| std::shared_ptr< T > o2::framework::HistogramRegistry::add | ( | const std::string & | name, |
| char const *const | title, | ||
| HistType | histType, | ||
| const std::vector< AxisSpec > & | axes, | ||
| bool | callSumw2 = false |
||
| ) |
Definition at line 398 of file HistogramRegistry.h.
| void o2::framework::HistogramRegistry::addClone | ( | const std::string & | source, |
| const std::string & | target | ||
| ) |
Definition at line 133 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::apply | ( | std::function< void(HistogramRegistry const &, TNamed *named)> | callback | ) | const |
Definition at line 290 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::clean | ( | ) |
deletes all the histograms from the registry
Definition at line 195 of file HistogramRegistry.cxx.
| bool o2::framework::HistogramRegistry::contains | ( | const HistName & | histName | ) |
Definition at line 162 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::fill | ( | const HistName & | histName, |
| const T & | table, | ||
| const o2::framework::expressions::Filter & | filter | ||
| ) |
Definition at line 474 of file HistogramRegistry.h.
| void o2::framework::HistogramRegistry::fill | ( | const HistName & | histName, |
| Ts... | positionAndWeight | ||
| ) |
Definition at line 434 of file HistogramRegistry.h.
| std::shared_ptr< T > o2::framework::HistogramRegistry::get | ( | const HistName & | histName | ) |
Definition at line 404 of file HistogramRegistry.h.
| double o2::framework::HistogramRegistry::getSize | ( | const HistName & | histName, |
| double | fillFraction = 1. |
||
| ) |
Definition at line 178 of file HistogramRegistry.cxx.
| double o2::framework::HistogramRegistry::getSize | ( | double | fillFraction = 1. | ) |
Definition at line 186 of file HistogramRegistry.cxx.
| std::shared_ptr< T > o2::framework::HistogramRegistry::operator() | ( | const HistName & | histName | ) |
Definition at line 414 of file HistogramRegistry.h.
| void o2::framework::HistogramRegistry::print | ( | bool | showAxisDetails = false | ) |
Definition at line 203 of file HistogramRegistry.cxx.
| OutputRef o2::framework::HistogramRegistry::ref | ( | uint16_t | idx, |
| uint16_t | pipelineSize | ||
| ) | const |
Definition at line 55 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::setHash | ( | uint32_t | hash | ) |
Definition at line 64 of file HistogramRegistry.cxx.
| OutputSpec const o2::framework::HistogramRegistry::spec | ( | ) |
Definition at line 42 of file HistogramRegistry.cxx.
|
mutable |
Definition at line 203 of file HistogramRegistry.h.