![]() |
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 131 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 31 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 116 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 390 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 121 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 401 of file HistogramRegistry.cxx.
| HistPtr o2::framework::HistogramRegistry::add | ( | const HistogramSpec & | histSpec | ) |
Definition at line 111 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 126 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 408 of file HistogramRegistry.h.
| void o2::framework::HistogramRegistry::addClone | ( | const std::string & | source, |
| const std::string & | target | ||
| ) |
Definition at line 132 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::apply | ( | std::function< void(HistogramRegistry const &, TNamed *named)> | callback | ) | const |
Definition at line 289 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::clean | ( | ) |
deletes all the histograms from the registry
Definition at line 194 of file HistogramRegistry.cxx.
| bool o2::framework::HistogramRegistry::contains | ( | const HistName & | histName | ) |
Definition at line 161 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::fill | ( | const HistName & | histName, |
| const T & | table, | ||
| const o2::framework::expressions::Filter & | filter | ||
| ) |
Definition at line 484 of file HistogramRegistry.h.
| void o2::framework::HistogramRegistry::fill | ( | const HistName & | histName, |
| Ts... | positionAndWeight | ||
| ) |
Definition at line 444 of file HistogramRegistry.h.
| std::shared_ptr< T > o2::framework::HistogramRegistry::get | ( | const HistName & | histName | ) |
Definition at line 414 of file HistogramRegistry.h.
| double o2::framework::HistogramRegistry::getSize | ( | const HistName & | histName, |
| double | fillFraction = 1. |
||
| ) |
Definition at line 177 of file HistogramRegistry.cxx.
| double o2::framework::HistogramRegistry::getSize | ( | double | fillFraction = 1. | ) |
Definition at line 185 of file HistogramRegistry.cxx.
| std::shared_ptr< T > o2::framework::HistogramRegistry::operator() | ( | const HistName & | histName | ) |
Definition at line 424 of file HistogramRegistry.h.
| void o2::framework::HistogramRegistry::print | ( | bool | showAxisDetails = false | ) |
Definition at line 202 of file HistogramRegistry.cxx.
| OutputRef o2::framework::HistogramRegistry::ref | ( | uint16_t | idx, |
| uint16_t | pipelineSize | ||
| ) | const |
Definition at line 54 of file HistogramRegistry.cxx.
| void o2::framework::HistogramRegistry::setHash | ( | uint32_t | hash | ) |
Definition at line 63 of file HistogramRegistry.cxx.
| OutputSpec const o2::framework::HistogramRegistry::spec | ( | ) |
Definition at line 41 of file HistogramRegistry.cxx.
|
mutable |
Definition at line 207 of file HistogramRegistry.h.