![]() |
MaCh3
2.2.3
Reference Guide
|
KS: Small struct storying info about used binning. More...
#include <Samples/SampleStructs.h>
Public Member Functions | |
int | GetBin (const int xBin, const int yBin) const |
Get linear bin index from 2D bin indices. More... | |
int | GetBinSafe (const int xBin, const int yBin) const |
Get linear bin index from 2D bin indices with additional checks. More... | |
int | GetBinGlobal (const int xBin, const int yBin) const |
Calculates the global bin number for a given 2D bin, accounting for multiple binning samples. More... | |
int | FindXBin (const double XVar, const int NomXBin) const |
DB Find the relevant bin in the PDF for each event. More... | |
void | InitialiseLookUpSingleDimension (std::vector< BinShiftLookup > &BinLookup, const std::vector< double > &BinEdges, const size_t TotBins) |
Initializes lookup arrays for efficient bin migration in a single dimension. More... | |
void | InitialiseBinMigrationLookUp () |
Initialise special lookup arrays allowing to more efficiently perform bin-migration These arrays store the lower and upper edges of each bin and their neighboring bins. More... | |
Public Attributes | |
std::vector< double > | XBinEdges |
Vector to hold x-axis bin-edges. More... | |
std::vector< double > | YBinEdges |
Vector to hold y-axis bin-edges. More... | |
size_t | nXBins = M3::_BAD_INT_ |
Number of X axis bins in the histogram used for likelihood calculation. More... | |
size_t | nYBins = M3::_BAD_INT_ |
Number of Y axis bins in the histogram used for likelihood calculation. More... | |
size_t | nBins = M3::_BAD_INT_ |
Number of total bins. More... | |
size_t | GlobalOffset = M3::_BAD_INT_ |
If you have binning for multiple samples and trying to define 1D vector let's. More... | |
std::vector< BinShiftLookup > | xBinLookup |
Bin lookups for X axis only. More... | |
KS: Small struct storying info about used binning.
Definition at line 183 of file SampleStructs.h.
|
inline |
DB Find the relevant bin in the PDF for each event.
Definition at line 231 of file SampleStructs.h.
|
inline |
Get linear bin index from 2D bin indices.
xBin | The bin index along the X axis (0-based) |
yBin | The bin index along the Y axis (0-based) |
Definition at line 205 of file SampleStructs.h.
|
inline |
Calculates the global bin number for a given 2D bin, accounting for multiple binning samples.
xBin | The bin index along the X axis (0-based) |
yBin | The bin index along the Y axis (0-based) |
Definition at line 226 of file SampleStructs.h.
|
inline |
Get linear bin index from 2D bin indices with additional checks.
xBin | The bin index along the X axis (0-based) |
yBin | The bin index along the Y axis (0-based) |
Definition at line 214 of file SampleStructs.h.
|
inline |
Initialise special lookup arrays allowing to more efficiently perform bin-migration These arrays store the lower and upper edges of each bin and their neighboring bins.
Definition at line 294 of file SampleStructs.h.
|
inline |
Initializes lookup arrays for efficient bin migration in a single dimension.
BinLookup | Reference to the BinShiftLookup struct to be initialized. |
BinEdges | Vector of bin edges defining the bin boundaries. |
TotBins | Number of bins in the dimension. |
Definition at line 264 of file SampleStructs.h.
size_t SampleBinningInfo::GlobalOffset = M3::_BAD_INT_ |
If you have binning for multiple samples and trying to define 1D vector let's.
Definition at line 197 of file SampleStructs.h.
size_t SampleBinningInfo::nBins = M3::_BAD_INT_ |
Number of total bins.
Definition at line 195 of file SampleStructs.h.
size_t SampleBinningInfo::nXBins = M3::_BAD_INT_ |
Number of X axis bins in the histogram used for likelihood calculation.
Definition at line 191 of file SampleStructs.h.
size_t SampleBinningInfo::nYBins = M3::_BAD_INT_ |
Number of Y axis bins in the histogram used for likelihood calculation.
Definition at line 193 of file SampleStructs.h.
std::vector<double> SampleBinningInfo::XBinEdges |
Vector to hold x-axis bin-edges.
Definition at line 186 of file SampleStructs.h.
std::vector<BinShiftLookup> SampleBinningInfo::xBinLookup |
Bin lookups for X axis only.
Definition at line 199 of file SampleStructs.h.
std::vector<double> SampleBinningInfo::YBinEdges |
Vector to hold y-axis bin-edges.
Definition at line 188 of file SampleStructs.h.