1 #ifndef Ndmspc_NBinningPoint_H
2 #define Ndmspc_NBinningPoint_H
5 #include "NParameters.h"
38 virtual void Print(Option_t * option =
"")
const;
97 Long64_t
Fill(
bool ignoreFilledCheck =
false);
124 std::string
GetString(
const std::string & prefix =
"",
bool all =
false)
const;
149 Double_t
GetBinMin(std::string axis)
const;
156 Double_t
GetBinMax(std::string axis)
const;
179 Int_t
GetBin(std::string axis)
const;
Represents a single point in multi-dimensional binning.
Double_t * GetMins() const
Get the array of minimum values for all axes.
json & GetTempCfg()
Get reference to temporary configuration JSON object.
NGnTree * fInput
Input NGnTree object.
NBinningPoint(NBinning *b=nullptr)
Constructor.
Double_t GetBinMax(std::string axis) const
Get the maximum value for a specific axis.
Long64_t Fill(bool ignoreFilledCheck=false)
Fill the binning point content.
Int_t fNDimensions
Number of dimensions.
std::map< int, std::vector< int > > GetBaseAxisRanges() const
Get base axis ranges for the point.
std::string GetString(const std::string &prefix="", bool all=false) const
Returns a string representation of the binning point.
Double_t * GetMaxs() const
Get the array of maximum values for all axes.
void SetEntryNumber(Long64_t entry)
Set entry number for the point.
void SetTreeStorage(NStorageTree *s)
Set storage tree object pointer.
std::string GetBinLabel(std::string axis) const
Get the label for a specific axis.
bool RecalculateStorageCoords(Long64_t entry=-1, bool useBinningDefCheck=false)
Recalculate storage coordinates for the point.
virtual ~NBinningPoint()
Destructor.
Long64_t GetEntryNumber() const
Get entry number for the point.
Int_t * fContentCoords
Coordinates of the point.
NParameters * GetParameters() const
Get the parameters associated with this binning point.
std::vector< std::string > fLabels
Labels for each axis.
Int_t * GetStorageCoords() const
Get pointer to storage coordinates array.
Double_t GetBinCenter(std::string axis) const
Returns the center value of the bin along the specified axis.
json fTempCfg
Temporary configuration object.
NBinning * fBinning
Binning object.
NParameters * fParameters
Parameter axis (if any)
Int_t * fBaseBinMin
Base bin minimum (for variable binning)
NStorageTree * GetTreeStorage() const
Get pointer to storage tree object.
void SetTempObject(const std::string &name, TObject *obj)
Set a temporary object with the given name.
void SetCfg(json cfg)
Set configuration JSON object.
NStorageTree * GetStorageTree() const
Returns a pointer to the associated storage tree.
virtual void Print(Option_t *option="") const
Print binning point information.
std::vector< std::string > GetLabels() const
Get labels for each axis.
Double_t * fMaxs
Maximum values for each axis.
bool SetPointContentFromLinearIndex(Long64_t linBin, bool checkBinningDef=false)
Set point content from linear index.
Int_t fContentNDimensions
Number of dimensions in content histogram.
Double_t * fMins
Minimum values for each axis.
void SetBinning(NBinning *b)
Set NBinning object pointer.
TObject * GetTempObject(const std::string &name) const
Retrieve a temporary object by name.
NStorageTree * fTreeStorage
Storage tree object.
NGnTree * GetInput() const
Get pointer to input NGnTree object.
NBinning * GetBinning() const
Get pointer to NBinning object.
Int_t GetBin(std::string axis) const
Returns the bin index for the specified axis.
std::map< std::string, TObject * > fTempObjects
! Outputs map
Int_t * GetCoords() const
Get pointer to content coordinates array.
void SetParameters(NParameters *params)
Set the parameters for this binning point.
Long64_t fEntryNumber
Entry in the storage tree.
Int_t * fBaseBinMax
Base bin maximum (for variable binning)
void SetInput(NGnTree *input)
Set input NGnTree object pointer.
json fCfg
Configuration object.
Int_t GetNDimensions() const
Get number of dimensions.
virtual void Reset()
Reset the binning point to initial state.
Int_t * fStorageCoords
Storage coordinates of the point.
json & GetCfg()
Get reference to configuration JSON object.
Int_t GetNDimensionsContent() const
Get number of dimensions in content histogram.
Double_t GetBinMin(std::string axis) const
Get the minimum value for a specific axis.
NBinning object for managing multi-dimensional binning and axis definitions.
NDMSPC tree object for managing multi-dimensional data storage and processing.
NDMSPC storage tree object for managing ROOT TTree-based data storage.