![]() |
Project
|
Namespaces | |
namespace | details |
Classes | |
class | BinCenterView |
Axis iterator over bin centers. More... | |
class | BinLowerView |
Axis iterator over bin lower edges. More... | |
class | BinUpperView |
Axis iterator over bin upper edges. More... | |
class | DebugStreamer |
class to enable streaming debug information to root files More... | |
class | DLLoaderBase |
class | EnumFlags |
Classs to aggregate and manage enum-based on-off flags. More... | |
class | FIFO |
class | FileFetcher |
class | fitResult |
class | IRFrameSelector |
struct | MemFileHelper |
struct | ParameterDebugStreamer |
struct for setting and storing the streamer level More... | |
class | RngHelper |
class | RootChain |
class | RootSerializableKeyValueStore |
class | ShmAllocator |
class | ShmManager |
struct | ShmMetaInfo |
struct | Str |
class | TreeStream |
class | TreeStreamRedirector |
class | ValueMonitor |
Concepts | |
concept | EnumFlag |
Enumerations | |
enum class | FitGausError_t { FIT_ERROR_MAX , FIT_ERROR_MIN , FIT_ERROR_ENTRIES , FIT_ERROR_KTOL_MEAN , FIT_ERROR_KTOL_SIGMA , FIT_ERROR_KTOL_RMS } |
Error code for invalid result in the fitGaus process. More... | |
enum | StreamFlags { streamdEdx = 1 << 0 , streamDigitFolding = 1 << 1 , streamDigits = 1 << 2 , streamFastTransform = 1 << 3 , streamITCorr = 1 << 4 , streamDistortionsSC = 1 << 5 , streamUpdateTrack = 1 << 6 , streamRejectCluster = 1 << 7 , streamMergeBorderTracksBest = 1 << 8 , streamMergeBorderTracksAll = 1 << 9 , streamFlagsCount = 10 } |
struct defining the flags which can be used to check if a certain debug streamer is used More... | |
enum | SamplingTypes { sampleAll = 0 , sampleRandom = 1 , sampleID = 2 , sampleIDGlobal = 3 , sampleWeights = 4 , sampleTsallis = 5 } |
Functions | |
template<typename AxisIterator > | |
BinCenterView< AxisIterator > | operator+ (BinCenterView< AxisIterator > lhs, int n) |
template<typename AxisIterator > | |
BinUpperView< AxisIterator > | operator+ (BinUpperView< AxisIterator > lhs, int n) |
template<typename AxisIterator > | |
BinLowerView< AxisIterator > | operator+ (BinLowerView< AxisIterator > lhs, int n) |
std::string | createErrorMessageFitGaus (o2::utils::FitGausError_t errorcode) |
Printing an error message when then fit returns an invalid result. | |
template<typename T , typename Iterator , typename BinCenterView > | |
std::vector< double > | fitGaus (Iterator first, Iterator last, BinCenterView axisfirst, const bool ignoreUnderOverflowBin=true) |
Function to fit histogram to a gaussian using iterators. | |
template<typename valuetype , typename... axes> | |
std::vector< double > | fitBoostHistoWithGaus (boost::histogram::histogram< axes... > &hist) |
template<typename Hist > | |
Hist | boosthistoFromRoot_1D (TH1D *inHist1D) |
Convert a 1D root histogram to a Boost histogram. | |
template<typename Hist > | |
Hist | boostHistoFromRoot_2D (TH2D *inHist2D) |
Convert a 2D root histogram to a Boost histogram. | |
template<typename... axes> | |
double | getMeanBoost1D (boost::histogram::histogram< axes... > &inHist1D, const double rangeLow=0, const double rangeHigh=0) |
Get the mean of a 1D boost histogram. | |
template<typename... axes> | |
double | getVarianceBoost1D (boost::histogram::histogram< axes... > &inHist1D, double mean=-999999, const double rangeLow=0, const double rangeHigh=0, const double weight=1) |
Get the variance of a 1D boost histogram. | |
template<class BoostHist > | |
TH1F | TH1FFromBoost (BoostHist hist, const char *name="hist") |
Convert a 2D boost histogram to a root histogram. | |
template<class BoostHist > | |
TH2F | TH2FFromBoost (BoostHist hist, const char *name="hist") |
Convert a 2D boost histogram to a root histogram. | |
template<typename... axes> | |
auto | ProjectBoostHistoX (const boost::histogram::histogram< axes... > &hist2d, const int binLow, const int binHigh) |
Function to project 2d boost histogram onto x-axis. | |
template<typename... axes> | |
auto | ProjectBoostHistoXFast (const boost::histogram::histogram< axes... > &hist2d, const int binLow, const int binHigh) |
Function to project 2d boost histogram onto x-axis. | |
template<typename... axes> | |
auto | ReduceBoostHistoFastSlice (const boost::histogram::histogram< axes... > &hist2d, int binXLow, int binXHigh, int binYLow, int binYHigh, bool includeOverflowUnderflow) |
Function to project 2d boost histogram onto x-axis. | |
template<typename... axes> | |
auto | ReduceBoostHistoFastSlice1D (boost::histogram::histogram< axes... > &hist1d, int binXLow, int binXHigh, bool includeOverflowUnderflow) |
template<typename... axes> | |
auto | ReduceBoostHistoFastSliceByValue (boost::histogram::histogram< axes... > &hist2d, double xLow, double xHigh, double yLow, double yHigh, bool includeOverflowUnderflow) |
Function to project 2d boost histogram onto x-axis. | |
template<typename... axes> | |
double | getIntegralBoostHist (boost::histogram::histogram< axes... > &hist, double min, double max) |
Function to integrate 1d boost histogram in specified range. | |
StreamFlags | operator| (StreamFlags a, StreamFlags b) |
StreamFlags | operator& (StreamFlags a, StreamFlags b) |
StreamFlags | operator~ (StreamFlags a) |
template<EnumFlag E> | |
std::ostream & | operator<< (std::ostream &os, const EnumFlags< E > &f) |
std::vector< std::string > | listFiles (std::string const &dir, std::string const &searchpattern) |
std::vector< std::string > | listFiles (std::string const &searchpattern) |
void | createDirectoriesIfAbsent (std::string const &path) |
std::string | expandShellVarsInFileName (std::string const &input) |
template<typename T > | |
std::vector< T > * | createSimVector () |
template<typename T > | |
void | freeSimVector (std::vector< T > *ptr) |
std::string | createErrorMessage (o2::utils::FitGausError_t errorcode) |
Printing an error message when then fit returns an invalid result. | |
Variables | |
constexpr size_t | SHMPOOLSIZE = 1024 * 1024 * 1024 |
const char * | SHMIDNAME = "ALICEO2_SIMSHM_SHMID" |
const char * | SHMADDRNAME = "ALICEO2_SIMSHM_COMMONADDR" |
|
strong |
Error code for invalid result in the fitGaus process.
Definition at line 225 of file BoostHistogramUtils.h.
Definition at line 47 of file DebugStreamer.h.
struct defining the flags which can be used to check if a certain debug streamer is used
Definition at line 33 of file DebugStreamer.h.
Hist o2::utils::boosthistoFromRoot_1D | ( | TH1D * | inHist1D | ) |
Convert a 1D root histogram to a Boost histogram.
Definition at line 405 of file BoostHistogramUtils.h.
Hist o2::utils::boostHistoFromRoot_2D | ( | TH2D * | inHist2D | ) |
Convert a 2D root histogram to a Boost histogram.
Definition at line 430 of file BoostHistogramUtils.h.
void o2::utils::createDirectoriesIfAbsent | ( | std::string const & | path | ) |
Definition at line 58 of file FileSystemUtils.cxx.
std::string o2::utils::createErrorMessage | ( | o2::utils::FitGausError_t | errorcode | ) |
Printing an error message when then fit returns an invalid result.
errorcode | Error of the type FitGausError_t, thrown when fit result is invalid. |
Definition at line 45 of file BoostHistogramUtils.cxx.
std::string o2::utils::createErrorMessageFitGaus | ( | o2::utils::FitGausError_t | errorcode | ) |
Printing an error message when then fit returns an invalid result.
errorcode | Error of the type FitGausError_t, thrown when fit result is invalid. |
Definition at line 22 of file BoostHistogramUtils.cxx.
std::vector< T > * o2::utils::createSimVector | ( | ) |
Definition at line 109 of file ShmAllocator.h.
std::string o2::utils::expandShellVarsInFileName | ( | std::string const & | input | ) |
Definition at line 69 of file FileSystemUtils.cxx.
std::vector< double > o2::utils::fitBoostHistoWithGaus | ( | boost::histogram::histogram< axes... > & | hist | ) |
Definition at line 398 of file BoostHistogramUtils.h.
std::vector< double > o2::utils::fitGaus | ( | Iterator | first, |
Iterator | last, | ||
BinCenterView | axisfirst, | ||
const bool | ignoreUnderOverflowBin = true |
||
) |
Function to fit histogram to a gaussian using iterators.
first | begin iterator of the histogram |
last | end iterator of the histogram |
axisFirst | axis iterator over the bin centers |
ignoreUnderOverflowBin | switch to disable taking under and overflow bin into fit |
** Temp Note: For now we forgo the templated struct in favor of a std::vector in order to have this compile while we are working out the details
Definition at line 250 of file BoostHistogramUtils.h.
void o2::utils::freeSimVector | ( | std::vector< T > * | ptr | ) |
Definition at line 122 of file ShmAllocator.h.
double o2::utils::getIntegralBoostHist | ( | boost::histogram::histogram< axes... > & | hist, |
double | min, | ||
double | max | ||
) |
Function to integrate 1d boost histogram in specified range.
hist | 1d boost histogram |
min | lower integration range |
max | upper integration range |
Definition at line 723 of file BoostHistogramUtils.h.
double o2::utils::getMeanBoost1D | ( | boost::histogram::histogram< axes... > & | inHist1D, |
const double | rangeLow = 0 , |
||
const double | rangeHigh = 0 |
||
) |
Get the mean of a 1D boost histogram.
inHist1D | input boost histogram |
rangeLow | minimum range considered for the mean calculation (if rangeLow == rangeHigh, no cut will be performed) |
rangeHigh | maximum range considered for the mean calculation (if rangeLow == rangeHigh, no cut will be performed) |
Definition at line 468 of file BoostHistogramUtils.h.
double o2::utils::getVarianceBoost1D | ( | boost::histogram::histogram< axes... > & | inHist1D, |
double | mean = -999999 , |
||
const double | rangeLow = 0 , |
||
const double | rangeHigh = 0 , |
||
const double | weight = 1 |
||
) |
Get the variance of a 1D boost histogram.
inHist1D | input boost histogram |
mean | mean mean of the histogram, if set to -999999, mean will be caluclated |
weight | weight of the entries in the histogram. Per default set to 1 |
rangeLow | minimum range considered for the mean calculation (if rangeLow == rangeHigh, no cut will be performed) |
rangeHigh | maximum range considered for the mean calculation (if rangeLow == rangeHigh, no cut will be performed) |
Definition at line 495 of file BoostHistogramUtils.h.
std::vector< std::string > o2::utils::listFiles | ( | std::string const & | dir, |
std::string const & | searchpattern | ||
) |
Definition at line 30 of file FileSystemUtils.cxx.
std::vector< std::string > o2::utils::listFiles | ( | std::string const & | searchpattern | ) |
Definition at line 53 of file FileSystemUtils.cxx.
|
inline |
Definition at line 62 of file DebugStreamer.h.
BinCenterView< AxisIterator > o2::utils::operator+ | ( | BinCenterView< AxisIterator > | lhs, |
int | n | ||
) |
Definition at line 152 of file BoostHistogramUtils.h.
BinLowerView< AxisIterator > o2::utils::operator+ | ( | BinLowerView< AxisIterator > | lhs, |
int | n | ||
) |
Definition at line 172 of file BoostHistogramUtils.h.
BinUpperView< AxisIterator > o2::utils::operator+ | ( | BinUpperView< AxisIterator > | lhs, |
int | n | ||
) |
Definition at line 162 of file BoostHistogramUtils.h.
std::ostream & o2::utils::operator<< | ( | std::ostream & | os, |
const EnumFlags< E > & | f | ||
) |
Definition at line 691 of file EnumFlags.h.
|
inline |
Definition at line 58 of file DebugStreamer.h.
|
inline |
Definition at line 63 of file DebugStreamer.h.
auto o2::utils::ProjectBoostHistoX | ( | const boost::histogram::histogram< axes... > & | hist2d, |
const int | binLow, | ||
const int | binHigh | ||
) |
Function to project 2d boost histogram onto x-axis.
hist2d | 2d boost histogram |
binLow | lower bin in y for projection |
binHigh | lower bin in y for projection |
Definition at line 567 of file BoostHistogramUtils.h.
auto o2::utils::ProjectBoostHistoXFast | ( | const boost::histogram::histogram< axes... > & | hist2d, |
const int | binLow, | ||
const int | binHigh | ||
) |
Function to project 2d boost histogram onto x-axis.
hist2d | 2d boost histogram |
binLow | lower bin in y for projection |
binHigh | lower bin in y for projection |
Definition at line 593 of file BoostHistogramUtils.h.
auto o2::utils::ReduceBoostHistoFastSlice | ( | const boost::histogram::histogram< axes... > & | hist2d, |
int | binXLow, | ||
int | binXHigh, | ||
int | binYLow, | ||
int | binYHigh, | ||
bool | includeOverflowUnderflow | ||
) |
Function to project 2d boost histogram onto x-axis.
hist2d | 2d boost histogram |
binXLow | lower bin in x for the reduction |
binXHigh | lower bin in x for the reduction |
binYLow | lower bin in y for the reduction |
binYHigh | lower bin in y for the reduction |
includeOverflowUnderflow | option to include overflow and underflow bins |
Definition at line 621 of file BoostHistogramUtils.h.
auto o2::utils::ReduceBoostHistoFastSlice1D | ( | boost::histogram::histogram< axes... > & | hist1d, |
int | binXLow, | ||
int | binXHigh, | ||
bool | includeOverflowUnderflow | ||
) |
hist1d | 2d boost histogram |
binXLow | lower bin in x for the reduction |
binXHigh | lower bin in x for the reduction |
includeOverflowUnderflow | option to include overflow and underflow bins |
Definition at line 665 of file BoostHistogramUtils.h.
auto o2::utils::ReduceBoostHistoFastSliceByValue | ( | boost::histogram::histogram< axes... > & | hist2d, |
double | xLow, | ||
double | xHigh, | ||
double | yLow, | ||
double | yHigh, | ||
bool | includeOverflowUnderflow | ||
) |
Function to project 2d boost histogram onto x-axis.
hist2d | 2d boost histogram |
xLow | lower value in x for the reduction |
xHigh | lower value in x for the reduction |
yLow | lower value in y for the reduction |
yHigh | lower value in y for the reduction |
includeOverflowUnderflow | option to include overflow and underflow bins |
Definition at line 706 of file BoostHistogramUtils.h.
TH1F o2::utils::TH1FFromBoost | ( | BoostHist | hist, |
const char * | name = "hist" |
||
) |
Convert a 2D boost histogram to a root histogram.
Definition at line 524 of file BoostHistogramUtils.h.
TH2F o2::utils::TH2FFromBoost | ( | BoostHist | hist, |
const char * | name = "hist" |
||
) |
Convert a 2D boost histogram to a root histogram.
Definition at line 541 of file BoostHistogramUtils.h.
const char* o2::utils::SHMADDRNAME = "ALICEO2_SIMSHM_COMMONADDR" |
Definition at line 42 of file ShmManager.cxx.
const char* o2::utils::SHMIDNAME = "ALICEO2_SIMSHM_SHMID" |
Definition at line 40 of file ShmManager.cxx.
|
constexpr |
Definition at line 42 of file ShmManager.h.