|
ndmspc
v1.2.0-0.1.rc3
|
NDMSPC tree object for managing multi-dimensional data storage and processing. More...
#include <NGnTree.h>
Public Member Functions | |
| NGnTree () | |
| Default constructor. More... | |
| NGnTree (std::vector< TAxis * > axes, std::string filename="", std::string treename="ngnt") | |
| Constructor from vector of axes. More... | |
| NGnTree (TObjArray *axes, std::string filename="", std::string treename="ngnt") | |
| Constructor from TObjArray of axes. More... | |
| NGnTree (NGnTree *ngnt, std::string filename="", std::string treename="ngnt") | |
| Constructor from another NGnTree. More... | |
| NGnTree (NBinning *binning, NStorageTree *treeStorage) | |
| Constructor from NBinning and NStorageTree. More... | |
| NGnTree (THnSparse *hns, std::string parameterAxis, const std::string &outFileName="/tmp/ngnt_imported.root", json cfg=json::object()) | |
| Constructs an NGnTree object from a THnSparse histogram. More... | |
| virtual | ~NGnTree () |
| Destructor. More... | |
| virtual void | Print (Option_t *option="") const override |
| Print tree information. More... | |
| virtual void | Draw (Option_t *option="") override |
| Draws the tree object. More... | |
| void | Play (int timeout=0, std::string binning="", std::vector< int > outputPointIds={0}, std::vector< std::vector< int >> ranges={}, Option_t *option="") |
| Play tree data with optional binning and output point IDs. More... | |
| NBinning * | GetBinning () const |
| Get pointer to binning object. More... | |
| void | SetBinning (NBinning *binning) |
| Set binning object pointer. More... | |
| NStorageTree * | GetStorageTree () const |
| Get pointer to storage tree object. More... | |
| std::map< std::string, TList * > | GetOutputs () const |
| Get outputs map. More... | |
| TList * | GetOutput (std::string name="") |
| Get output list by name. More... | |
| void | SetOutputs (std::map< std::string, TList * > outputs) |
| Set outputs map. More... | |
| NGnTree * | GetInput () const |
| Get pointer to input NGnTree. More... | |
| void | SetInput (NGnTree *input) |
| Set input NGnTree pointer. More... | |
| NGnNavigator * | GetNavigator () const |
| Returns the navigator associated with this tree. More... | |
| void | SetNavigator (NGnNavigator *navigator) |
| Sets the navigator for this tree. More... | |
| bool | IsPureCopy () const |
| Checks if the tree is a pure copy. More... | |
| void | SetIsPureCopy (bool val) |
| Sets the pure copy status of the tree. More... | |
| Long64_t | GetEntries () const |
| Get number of entries in storage tree. More... | |
| Int_t | GetEntry (Long64_t entry, bool checkBinningDef=true) |
| Get entry by index. More... | |
| Int_t | GetEntry (std::vector< std::vector< int >> range, bool checkBinningDef=true) |
| Retrieves the entry corresponding to the specified range. More... | |
| bool | Close (bool write=false) |
| Close the tree, optionally writing data. More... | |
| bool | Process (NGnProcessFuncPtr func, const json &cfg=json::object(), std::string binningName="", NGnBeginFuncPtr beginFunc=nullptr, NGnEndFuncPtr endFunc=nullptr) |
| Process tree data using a function pointer and configuration. More... | |
| bool | Process (NGnProcessFuncPtr func, const std::vector< std::string > &defNames, const json &cfg=json::object(), NBinning *binningIn=nullptr, NGnBeginFuncPtr beginFunc=nullptr, NGnEndFuncPtr endFunc=nullptr) |
| Process tree data using a function pointer and definition names. More... | |
| void | SetWorkerMacro (const std::string ¯oList) |
| Set the macro(s) that TCP workers should load when bootstrapping. More... | |
| TList * | Projection (const json &cfg, std::string binningName="") |
| Project tree data using configuration and binning name. More... | |
| NGnNavigator * | Reshape (std::string binningName, std::vector< std::vector< int >> levels, int level=0, std::map< int, std::vector< int >> ranges={}, std::map< int, std::vector< int >> rangesBase={}) |
| Reshape navigator using binning name and levels. More... | |
| NGnNavigator * | GetResourceStatisticsNavigator (std::string binningName, std::vector< std::vector< int >> levels, int level=0, std::map< int, std::vector< int >> ranges={}, std::map< int, std::vector< int >> rangesBase={}) |
| Returns a navigator for resource statistics based on binning and levels. More... | |
| NParameters * | GetParameters () const |
| Returns the parameters associated with this tree. More... | |
| bool | InitParameters (const std::vector< std::string > ¶mNames) |
| Initializes the parameters for the tree using the provided parameter names. More... | |
Static Public Member Functions | |
| static NGnTree * | Open (const std::string &filename, const std::string &branches="", const std::string &treename="ngnt") |
| Open NGnTree from file. More... | |
| static NGnTree * | Open (TTree *tree, const std::string &branches="", TFile *file=nullptr) |
| Open NGnTree from TTree. More... | |
| static NGnTree * | Import (const std::string &findPath, const std::string &fileName, const std::vector< std::string > &headers, const std::string &outFileName="/tmp/ngnt_imported.root", bool close=true) |
| Imports an NGnTree from a specified file. More... | |
| static std::string | BuildObjectPath (const json &cfg, const json &objCfg, const NBinningPoint *point) |
| Helper: build object path string from configuration and a binning point. More... | |
Protected Attributes | |
| NBinning * | fBinning {nullptr} |
| Binning object. | |
| NStorageTree * | fTreeStorage {nullptr} |
| Tree storage. | |
| std::map< std::string, TList * > | fOutputs |
| Outputs. | |
| NGnTree * | fInput {nullptr} |
| Input NGnTree for processing. | |
| NGnNavigator * | fNavigator {nullptr} |
| ! Navigator object | |
| NParameters * | fParameters {nullptr} |
| Parameters object. | |
| bool | fOwnsBinning {true} |
| True when fBinning is owned by this instance. | |
| bool | fOwnsTreeStorage {true} |
| True when fTreeStorage is owned by this instance. | |
| bool | fIsPureCopy {false} |
| Flag indicating pure copy mode. | |
| std::string | fWorkerMacroList |
| Comma-separated macro paths sent to TCP workers. | |
NDMSPC tree object for managing multi-dimensional data storage and processing.
Provides methods for construction, printing, playing, processing, projections, and access to binning, storage, outputs, and input trees. Supports opening from files/trees, entry management, and integration with NBinning and NStorageTree.
| Ndmspc::NGnTree::NGnTree | ( | ) |
Default constructor.
Global pointer to the HTTP handler map.
This variable holds a pointer to the global HttpHandlerMap instance, which is used to manage HTTP request handlers within the application. It is initialized to nullptr and should be set during application startup.
Definition at line 157 of file NGnTree.cxx.
Referenced by GetResourceStatisticsNavigator(), Import(), NGnTree(), and Open().
| Ndmspc::NGnTree::NGnTree | ( | std::vector< TAxis * > | axes, |
| std::string | filename = "", |
||
| std::string | treename = "ngnt" |
||
| ) |
Constructor from vector of axes.
| axes | Vector of TAxis pointers. |
| filename | Optional file name. |
| treename | Optional tree name (default: "ngnt"). |
Constructor
Definition at line 159 of file NGnTree.cxx.
References fBinning, fNavigator, fTreeStorage, Ndmspc::NStorageTree::InitTree(), and Ndmspc::NGnNavigator::SetGnTree().
| Ndmspc::NGnTree::NGnTree | ( | TObjArray * | axes, |
| std::string | filename = "", |
||
| std::string | treename = "ngnt" |
||
| ) |
Constructor from TObjArray of axes.
| axes | TObjArray of axes. |
| filename | Optional file name. |
| treename | Optional tree name (default: "ngnt"). |
Constructor
Definition at line 176 of file NGnTree.cxx.
References fBinning, fNavigator, fTreeStorage, Ndmspc::NStorageTree::InitTree(), and Ndmspc::NGnNavigator::SetGnTree().
| Ndmspc::NGnTree::NGnTree | ( | NGnTree * | ngnt, |
| std::string | filename = "", |
||
| std::string | treename = "ngnt" |
||
| ) |
Constructor from another NGnTree.
| ngnt | Pointer to NGnTree object. |
| filename | Optional file name. |
| treename | Optional tree name (default: "ngnt"). |
Constructor
Definition at line 200 of file NGnTree.cxx.
References fBinning, fNavigator, fTreeStorage, GetBinning(), Ndmspc::NStorageTree::InitTree(), and Ndmspc::NGnNavigator::SetGnTree().
| Ndmspc::NGnTree::NGnTree | ( | NBinning * | binning, |
| NStorageTree * | treeStorage | ||
| ) |
Constructor from NBinning and NStorageTree.
| binning | Pointer to NBinning object. |
| treeStorage | Pointer to NStorageTree object. |
Constructor
Definition at line 225 of file NGnTree.cxx.
References fBinning, fNavigator, fOwnsTreeStorage, fTreeStorage, Ndmspc::NBinning::GetPoint(), Ndmspc::NStorageTree::InitTree(), Ndmspc::NStorageTree::SetBinning(), Ndmspc::NGnNavigator::SetGnTree(), and Ndmspc::NBinningPoint::SetTreeStorage().
| Ndmspc::NGnTree::NGnTree | ( | THnSparse * | hns, |
| std::string | parameterAxis, | ||
| const std::string & | outFileName = "/tmp/ngnt_imported.root", |
||
| json | cfg = json::object() |
||
| ) |
Constructs an NGnTree object from a THnSparse histogram.
| hns | Pointer to the input THnSparse histogram. |
| parameterAxis | Optional name of the parameter axis |
| outFileName | Name of the output file to store the imported tree (default: "/tmp/ngnt_imported.root"). |
| cfg | Optional JSON configuration object (default: empty object). |
Import THnSparse as NGnTree and use given parameter axis as result parameter
Definition at line 254 of file NGnTree.cxx.
References Ndmspc::NBinning::AddBinningDefinition(), BuildObjectPath(), Close(), GetBinning(), Ndmspc::NBinningPoint::GetCfg(), Ndmspc::NBinningPoint::GetEntryNumber(), Ndmspc::NBinningPoint::GetInput(), GetInput(), GetOutput(), Ndmspc::NBinningPoint::GetParameters(), Ndmspc::NBinningPoint::GetStorageCoords(), Ndmspc::NBinningPoint::GetString(), Ndmspc::NBinningPoint::GetTempObject(), InitParameters(), NGnTree(), Open(), Print(), Process(), Ndmspc::NUtils::SetAxisRanges(), SetInput(), Ndmspc::NParameters::SetParameter(), and Ndmspc::NBinningPoint::SetTempObject().
|
virtual |
Destructor.
Destructor
Definition at line 453 of file NGnTree.cxx.
References fBinning, fNavigator, fOwnsBinning, fOwnsTreeStorage, fParameters, and fTreeStorage.
|
static |
Helper: build object path string from configuration and a binning point.
| cfg | Global configuration json (contains axes, defaults, filename, ...). |
| objCfg | Object-specific configuration json (contains prefix, sufix, ...). |
| point | Pointer to NBinningPoint providing bin/min/max/label access. |
Definition at line 43 of file NGnTree.cxx.
References Ndmspc::NBinningPoint::GetBin(), Ndmspc::NBinningPoint::GetBinCenter(), Ndmspc::NBinningPoint::GetBinLabel(), Ndmspc::NBinningPoint::GetBinMax(), and Ndmspc::NBinningPoint::GetBinMin().
Referenced by NGnTree().
| bool Ndmspc::NGnTree::Close | ( | bool | write = false | ) |
Close the tree, optionally writing data.
| write | If true, write data before closing. |
Close the storage tree
Definition at line 1326 of file NGnTree.cxx.
References Ndmspc::NStorageTree::Close(), fOutputs, and fTreeStorage.
Referenced by Import(), Ndmspc::NGnThreadData::Merge(), NGnTree(), and Process().
|
overridevirtual |
Draws the tree object.
This method overrides the base class Draw function to provide custom drawing logic for the NGnTree object.
| option | Optional string to specify drawing options. |
Draw object
Definition at line 492 of file NGnTree.cxx.
|
inline |
Get pointer to binning object.
Definition at line 161 of file NGnTree.h.
References fBinning.
Referenced by Ndmspc::NGnNavigator::DrawSpectra(), Ndmspc::NGnNavigator::ExecuteEvent(), Ndmspc::NGnNavigator::GetChild(), Import(), Ndmspc::NGnThreadData::Init(), Ndmspc::NGnThreadData::Merge(), NGnTree(), Ndmspc::NGnNavigator::Print(), Ndmspc::NGnThreadData::Process(), Process(), Projection(), and Ndmspc::NGnNavigator::Reshape().
|
inline |
Get number of entries in storage tree.
Definition at line 236 of file NGnTree.h.
References fTreeStorage, and Ndmspc::NStorageTree::GetEntries().
| Int_t Ndmspc::NGnTree::GetEntry | ( | Long64_t | entry, |
| bool | checkBinningDef = true |
||
| ) |
Get entry by index.
| entry | Entry index. |
| checkBinningDef | Check binning definition. |
Get entry
Definition at line 1340 of file NGnTree.cxx.
References fBinning, fParameters, fTreeStorage, Ndmspc::NStorageTree::GetBranch(), Ndmspc::NBinning::GetCurrentDefinitionName(), Ndmspc::NStorageTree::GetEntry(), Ndmspc::NTreeBranch::GetObject(), and Ndmspc::NBinning::GetPoint().
Referenced by GetEntry(), Ndmspc::NGnThreadData::Merge(), Play(), Projection(), and Ndmspc::NGnNavigator::Reshape().
| Int_t Ndmspc::NGnTree::GetEntry | ( | std::vector< std::vector< int >> | range, |
| bool | checkBinningDef = true |
||
| ) |
Retrieves the entry corresponding to the specified range.
| range | A vector of vectors of integers specifying the range for each dimension. |
| checkBinningDef | If true, checks the binning definition before retrieving the entry (default: true). |
Get entry by range
Definition at line 1355 of file NGnTree.cxx.
References GetEntry().
|
inline |
Get pointer to input NGnTree.
Definition at line 198 of file NGnTree.h.
References fInput.
Referenced by Ndmspc::NGnThreadData::Merge(), NGnTree(), and Ndmspc::NGnThreadData::Process().
|
inline |
Returns the navigator associated with this tree.
Definition at line 210 of file NGnTree.h.
References fNavigator.
| TList * Ndmspc::NGnTree::GetOutput | ( | std::string | name = "" | ) |
Get output list by name.
| name | Output name (optional). |
Get output list for the given binning definition name
Definition at line 1206 of file NGnTree.cxx.
References fBinning, fOutputs, and Ndmspc::NBinning::GetCurrentDefinitionName().
Referenced by Ndmspc::NGnThreadData::Merge(), NGnTree(), Ndmspc::NGnThreadData::Process(), and Projection().
|
inline |
Get outputs map.
Definition at line 179 of file NGnTree.h.
References fOutputs.
Referenced by Ndmspc::NGnThreadData::Merge(), and Process().
|
inline |
Returns the parameters associated with this tree.
Definition at line 329 of file NGnTree.h.
References fParameters.
Referenced by Ndmspc::NGnThreadData::Init(), and Process().
| NGnNavigator * Ndmspc::NGnTree::GetResourceStatisticsNavigator | ( | std::string | binningName, |
| std::vector< std::vector< int >> | levels, | ||
| int | level = 0, |
||
| std::map< int, std::vector< int >> | ranges = {}, |
||
| std::map< int, std::vector< int >> | rangesBase = {} |
||
| ) |
Returns a navigator for resource statistics based on binning and levels.
| binningName | Name of the binning scheme to use. |
| levels | A vector of vectors specifying the levels for binning. |
| level | The starting level (default is 0). |
| ranges | Optional map specifying ranges for each level. |
| rangesBase | Optional map specifying base ranges for each level. |
Get resource statistics navigator
Definition at line 1636 of file NGnTree.cxx.
References fBinning, fOutputs, Ndmspc::NBinning::GetCurrentDefinitionName(), NGnTree(), and Open().
|
inline |
Get pointer to storage tree object.
Definition at line 173 of file NGnTree.h.
References fTreeStorage.
Referenced by Import(), Ndmspc::NGnThreadData::Init(), Ndmspc::NGnThreadData::Merge(), Ndmspc::NGnThreadData::Process(), Process(), Projection(), and Ndmspc::NGnNavigator::Reshape().
|
static |
Imports an NGnTree from a specified file.
Searches for the file in the given path, using the provided headers, and imports the NGnTree. Optionally, the imported tree can be saved to a specified output file.
| findPath | The directory path to search for the file. |
| fileName | The name of the file to import. |
| headers | A vector of header strings to use during import. |
| outFileName | The output file name to save the imported tree (default: "/tmp/ngnt_imported.root"). |
Import NGnTree from mutiple files in the given path
Definition at line 1693 of file NGnTree.cxx.
References Ndmspc::NBinning::AddBinningDefinition(), Ndmspc::NStorageTree::AddBranch(), Ndmspc::NUtils::ArrayToVector(), Ndmspc::NUtils::AxesFromDirectory(), Close(), Ndmspc::NUtils::Find(), Ndmspc::NBinning::GetAxes(), Ndmspc::NBinningPoint::GetBinLabel(), GetBinning(), Ndmspc::NStorageTree::GetBranch(), Ndmspc::NBinningPoint::GetCfg(), Ndmspc::NBinningPoint::GetCoords(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NStorageTree::GetFileName(), Ndmspc::NBinningPoint::GetNDimensionsContent(), Ndmspc::NBinningPoint::GetStorageTree(), GetStorageTree(), Ndmspc::NBinningPoint::GetTempObject(), Ndmspc::NBinningPoint::GetTreeStorage(), NGnTree(), Open(), Process(), Ndmspc::NTreeBranch::SetAddress(), SetIsPureCopy(), and Ndmspc::NBinningPoint::SetTempObject().
| bool Ndmspc::NGnTree::InitParameters | ( | const std::vector< std::string > & | paramNames | ) |
Initializes the parameters for the tree using the provided parameter names.
This function sets up the internal parameter structure based on the given list of parameter names.
| paramNames | A vector of strings containing the names of the parameters to initialize. |
Initialize parameters
Definition at line 1672 of file NGnTree.cxx.
References fParameters.
Referenced by NGnTree().
|
inline |
Checks if the tree is a pure copy.
Definition at line 223 of file NGnTree.h.
References fIsPureCopy.
Referenced by Ndmspc::NGnThreadData::Init().
|
static |
Open NGnTree from file.
| filename | File name. |
| branches | Branches to open. |
| treename | Tree name (default: "ngnt"). |
Open NGnTree from file
Definition at line 1222 of file NGnTree.cxx.
Referenced by GetResourceStatisticsNavigator(), Import(), Ndmspc::NGnThreadData::Init(), Ndmspc::NGnThreadData::Merge(), NGnTree(), and Projection().
|
static |
Open NGnTree from TTree.
| tree | Pointer to TTree. |
| branches | Branches to open. |
| file | Pointer to TFile. |
Open NGnTree from existing tree
Definition at line 1246 of file NGnTree.cxx.
References Ndmspc::NStorageTree::GetBranchesMap(), Ndmspc::NUtils::GetCoordsString(), NGnTree(), Ndmspc::NStorageTree::SetBranchAddresses(), Ndmspc::NStorageTree::SetEnabledBranches(), Ndmspc::NStorageTree::SetFileTree(), Ndmspc::NGnNavigator::SetGnTree(), SetNavigator(), SetOutputs(), and Ndmspc::NUtils::Tokenize().
| void Ndmspc::NGnTree::Play | ( | int | timeout = 0, |
| std::string | binning = "", |
||
| std::vector< int > | outputPointIds = {0}, |
||
| std::vector< std::vector< int >> | ranges = {}, |
||
| Option_t * | option = "" |
||
| ) |
Play tree data with optional binning and output point IDs.
| timeout | Timeout in seconds. |
| binning | Binning name. |
| outputPointIds | Vector of output point IDs. |
| ranges | Vector of ranges for axes. |
| option | Play options. |
| ws | Optional workspace string. |
Play the tree
Definition at line 1364 of file NGnTree.cxx.
References fBinning, fTreeStorage, Ndmspc::NStorageTree::GetBranch(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NBinning::GetCurrentDefinitionName(), Ndmspc::NBinning::GetDefinition(), Ndmspc::NBinning::GetDefinitionNames(), GetEntry(), Ndmspc::NTreeBranch::GetObject(), Ndmspc::NBinning::GetPoint(), Ndmspc::NBinningPoint::GetStorageCoords(), Ndmspc::NBinningDef::Print(), Ndmspc::NBinningPoint::Print(), and Ndmspc::NUtils::SetAxisRanges().
|
overridevirtual |
Print tree information.
| option | Print options. |
Print object
Definition at line 468 of file NGnTree.cxx.
References fBinning, fTreeStorage, Ndmspc::NBinning::Print(), and Ndmspc::NStorageTree::Print().
Referenced by NGnTree(), and Ndmspc::NGnNavigator::Print().
| bool Ndmspc::NGnTree::Process | ( | NGnProcessFuncPtr | func, |
| const json & | cfg = json::object(), |
||
| std::string | binningName = "", |
||
| NGnBeginFuncPtr | beginFunc = nullptr, |
||
| NGnEndFuncPtr | endFunc = nullptr |
||
| ) |
Process tree data using a function pointer and configuration.
| func | Processing function pointer. |
| cfg | JSON configuration object. |
| binningName | Binning name. |
Process the sparse object with the given function
Definition at line 501 of file NGnTree.cxx.
References fBinning, Ndmspc::NBinning::GetDefinitionNames(), Ndmspc::NBinning::Reset(), and Ndmspc::NBinning::SetCfg().
Referenced by Import(), NGnTree(), and Projection().
| bool Ndmspc::NGnTree::Process | ( | NGnProcessFuncPtr | func, |
| const std::vector< std::string > & | defNames, | ||
| const json & | cfg = json::object(), |
||
| NBinning * | binningIn = nullptr, |
||
| NGnBeginFuncPtr | beginFunc = nullptr, |
||
| NGnEndFuncPtr | endFunc = nullptr |
||
| ) |
Process tree data using a function pointer and definition names.
| func | Processing function pointer. |
| defNames | Vector of definition names. |
| cfg | JSON configuration object. |
| binningIn | Pointer to NBinning object. |
Process the sparse object with the given function
Definition at line 537 of file NGnTree.cxx.
References Ndmspc::NUtils::ArrayToVector(), Close(), Ndmspc::NUtils::EnableMT(), Ndmspc::NDimensionalExecutor::ExecuteParallel(), fBinning, fInput, Ndmspc::NGnThreadData::FlushDeferredDeletes(), Ndmspc::NUtils::FormatTime(), fOutputs, fParameters, fTreeStorage, fWorkerMacroList, GetBinning(), Ndmspc::NLogger::GetConsoleOutput(), Ndmspc::NBinningPoint::GetCoords(), Ndmspc::NBinning::GetDefinition(), Ndmspc::NStorageTree::GetFileName(), Ndmspc::NGnThreadData::GetHnSparseBase(), Ndmspc::NBinningDef::GetIds(), Ndmspc::NBinningPoint::GetNDimensionsContent(), GetOutputs(), GetParameters(), Ndmspc::NStorageTree::GetPostfix(), Ndmspc::NStorageTree::GetPrefix(), Ndmspc::NBinningPoint::GetStorageCoords(), GetStorageTree(), Ndmspc::NStorageTree::GetTree(), Ndmspc::NGnThreadData::Init(), Ndmspc::NGnThreadData::Merge(), Ndmspc::NBinningDef::Print(), Ndmspc::NUtils::ProgressBar(), Ndmspc::NBinningPoint::RecalculateStorageCoords(), Ndmspc::NGnThreadData::SetCfg(), and Ndmspc::NGnThreadData::SetResultsFilename().
| TList * Ndmspc::NGnTree::Projection | ( | const json & | cfg, |
| std::string | binningName = "" |
||
| ) |
Project tree data using configuration and binning name.
| cfg | JSON configuration object. |
| binningName | Binning name. |
Project THnSparse objects from the output lists based on configuration
Definition at line 1521 of file NGnTree.cxx.
References fBinning, fTreeStorage, GetBinning(), Ndmspc::NStorageTree::GetBranchObject(), Ndmspc::NBinningPoint::GetCfg(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NBinning::GetCurrentDefinitionName(), Ndmspc::NBinning::GetDefinition(), GetEntry(), Ndmspc::NBinningPoint::GetEntryNumber(), Ndmspc::NStorageTree::GetFileName(), Ndmspc::NBinningDef::GetIds(), Ndmspc::NBinningPoint::GetInput(), GetOutput(), GetStorageTree(), Ndmspc::NUtils::Join(), Open(), Ndmspc::NBinningPoint::Print(), Process(), Ndmspc::NUtils::ProjectTHnSparse(), Ndmspc::NBinningDef::RefreshIdsFromContent(), Ndmspc::NUtils::SetAxisRanges(), and SetInput().
| NGnNavigator * Ndmspc::NGnTree::Reshape | ( | std::string | binningName, |
| std::vector< std::vector< int >> | levels, | ||
| int | level = 0, |
||
| std::map< int, std::vector< int >> | ranges = {}, |
||
| std::map< int, std::vector< int >> | rangesBase = {} |
||
| ) |
Reshape navigator using binning name and levels.
| binningName | Name of binning definition. |
| levels | Vector of levels. |
| level | Current level (default: 0). |
| ranges | Map of ranges for axes. |
| rangesBase | Map of base ranges for axes. |
Reshape the navigator
Definition at line 1623 of file NGnTree.cxx.
References Ndmspc::NGnNavigator::Reshape(), and Ndmspc::NGnNavigator::SetGnTree().
|
inline |
|
inline |
Set input NGnTree pointer.
| input | Pointer to NGnTree. |
Definition at line 204 of file NGnTree.h.
References fInput.
Referenced by Ndmspc::NGnThreadData::Init(), NGnTree(), and Projection().
|
inline |
Sets the pure copy status of the tree.
| val | Boolean value to set the pure copy status. |
Definition at line 230 of file NGnTree.h.
References fIsPureCopy.
Referenced by Import().
| void Ndmspc::NGnTree::SetNavigator | ( | NGnNavigator * | navigator | ) |
Sets the navigator for this tree.
| navigator | Pointer to the NGnNavigator instance to associate. |
Set navigator
Definition at line 1312 of file NGnTree.cxx.
References fNavigator.
Referenced by Open().
|
inline |
|
inline |
Set the macro(s) that TCP workers should load when bootstrapping.
Call this before Process() on the supervisor side. The macro list is sent to each worker via the CONFIG bootstrap message so workers do not need to be started with –macro on the command line.
| macroList | Comma-separated list of macro file paths or URLs. |
Definition at line 292 of file NGnTree.h.
References fWorkerMacroList.