|
ndmspc
v1.2.0-0.1.rc3
|
Navigator object for managing hierarchical data structures and projections. More...
#include <NGnNavigator.h>
Public Member Functions | |
| NGnNavigator (const char *name="GnNavigator", const char *title="Gn Navigator", std::vector< std::string > objectTypes={"TH1"}) | |
| Constructor. More... | |
| virtual | ~NGnNavigator () |
| Destructor. | |
| NGnNavigator * | Reshape (std::string binningName, std::vector< std::vector< int >> levels, size_t 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 * | Reshape (NBinningDef *binningDef, std::vector< std::vector< int >> levels, size_t level=0, std::map< int, std::vector< int >> ranges={}, std::map< int, std::vector< int >> rangesBase={}, NGnNavigator *parent=nullptr) |
| Reshape navigator using NBinningDef and levels. More... | |
| void | Export (const std::string &filename, std::vector< std::string > objectNames, const std::string &wsUrl="", int timeoutMs=1000) |
| Export navigator data to file. More... | |
| void | ExportToJson (json &j, NGnNavigator *obj, std::vector< std::string > objectNames) |
| Export navigator data to JSON. More... | |
| virtual void | Print (Option_t *option="") const override |
| Print navigator information. More... | |
| virtual void | Draw (Option_t *option="") override |
| Draw navigator objects. More... | |
| json | GetInfoJson () const |
| Retrieves information about the navigator in JSON format. More... | |
| virtual TList * | DrawSpectra (std::string parameterName, std::vector< int > projIds, std::vector< double > minmax={0.05}, const std::string &minmaxMode="V", Option_t *option="") const |
| Draw spectra for a parameter. More... | |
| virtual TList * | DrawSpectraByName (std::string parameterName, std::vector< std::string > projAxes, std::vector< double > minmax={0.05}, const std::string &minmaxMode="V", Option_t *option="") const |
| Draws spectra for the given parameter and projection axes. More... | |
| virtual TList * | DrawSpectraAll (std::string parameterName, std::vector< double > minmax={0.05}, const std::string &minmaxMode="V", Option_t *option="") const |
| Draws all spectra for the given parameter. More... | |
| virtual void | Paint (Option_t *option="") override |
| Paint navigator objects. More... | |
| Int_t | DistancetoPrimitive (Int_t px, Int_t py) override |
| Calculate distance to primitive for graphical selection. More... | |
| virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) override |
| Handle execution of events (e.g., mouse, keyboard). More... | |
| NGnTree * | GetGnTree () const |
| Get pointer to NGnTree object. More... | |
| void | SetGnTree (NGnTree *tree) |
| Set NGnTree object pointer. More... | |
| std::vector< NGnNavigator * > | GetChildren () const |
| Get vector of child navigators. More... | |
| void | SetChildrenSize (size_t n) |
| Set number of children. More... | |
| NGnNavigator * | GetChild (size_t index) const |
| Get child navigator at index. More... | |
| NGnNavigator * | GetChild (std::vector< std::vector< size_t >> coords) const |
| void | SetChild (NGnNavigator *child, int index=-1) |
| Set child navigator at index. More... | |
| NGnNavigator * | GetParent () const |
| Get parent navigator. More... | |
| NGnNavigator * | GetRoot () const |
| Returns the root parent of this NGnNavigator. More... | |
| void | SetParent (NGnNavigator *parent) |
| Set parent navigator. More... | |
| std::map< std::string, std::vector< TObject * > > | GetObjectContentMap () const |
| Get object content map. More... | |
| void | ResizeObjectContentMap (const std::string &name, size_t n) |
| Resize object content map for a given name. More... | |
| std::vector< TObject * > | GetObjects (const std::string &name) const |
| Get objects by name. More... | |
| TObject * | GetObject (const std::string &name, int index=0) const |
| Get object by name and index. More... | |
| void | SetObject (const std::string &name, TObject *obj, int index=-1) |
| Set object by name and index. More... | |
| void | SetObjectTypes (const std::vector< std::string > &types) |
| Set object types managed by navigator. More... | |
| std::vector< std::string > | GetObjectNames () const |
| Get object names managed by navigator. More... | |
| void | SetObjectNames (const std::vector< std::string > &names) |
| Set object names managed by navigator. More... | |
| std::map< std::string, std::vector< double > > | GetParameterContentMap () const |
| Get parameter content map. More... | |
| void | ResizeParameterContentMap (const std::string &name, int n) |
| Resize parameter content map for a given name. More... | |
| std::vector< double > | GetParameters (const std::string &name) const |
| Get parameters by name. More... | |
| double | GetParameter (const std::string &name, int index=0) const |
| Get parameter value by name and index. More... | |
| void | SetParameter (const std::string &name, double value, int index=-1) |
| Set parameter value by name and index. More... | |
| std::map< std::string, std::vector< double > > | GetParameterErrorContentMap () const |
| Returns the map containing parameter error vectors for each parameter name. More... | |
| void | ResizeParameterErrorContentMap (const std::string &name, int n) |
| Resizes the error vector for a given parameter name. More... | |
| std::vector< double > | GetParameterErrors (const std::string &name) const |
| Retrieves the error vector for a given parameter name. More... | |
| double | GetParameterError (const std::string &name, int index=0) const |
| Retrieves a specific error value for a parameter. More... | |
| void | SetParameterError (const std::string &name, double value, int index=-1) |
| Sets a specific error value for a parameter. More... | |
| std::vector< std::string > | GetParameterNames () const |
| Get parameter names managed by navigator. More... | |
| void | SetParameterNames (const std::vector< std::string > &names) |
| Set parameter names managed by navigator. More... | |
| TH1 * | GetProjection () const |
| Get projection histogram. More... | |
| void | SetProjection (TH1 *h) |
| Set projection histogram. More... | |
| size_t | GetNLevels () const |
| Get number of levels in hierarchy. More... | |
| void | SetNLevels (size_t n) |
| Set number of levels in hierarchy. More... | |
| size_t | GetLevel () const |
| Get current level in hierarchy. More... | |
| void | SetLevel (size_t l) |
| Set current level in hierarchy. More... | |
| std::vector< std::vector< int > > | GetLevels () const |
| Get the current levels as a vector of vectors of integers. More... | |
| void | SetLevels (const std::vector< std::vector< int >> &levels) |
| Set the levels using a vector of vectors of integers. More... | |
| size_t | GetNCells () const |
| Get number of cells in projection histogram. More... | |
| void | SetNCells (size_t n) |
| Set number of cells in projection histogram. More... | |
| size_t | GetLastIndexSelected () const |
| Get last selected index. More... | |
| void | SetLastIndexSelected (size_t idx) |
| Set last selected index. More... | |
| size_t | GetLastHoverBin () const |
| Get last hovered bin index. More... | |
| void | SetLastHoverBin (size_t b) |
| Set last hovered bin index. More... | |
Private Attributes | |
| NGnTree * | fGnTree {nullptr} |
| ! Pointer to the NGnTree | |
| std::vector< std::string > | fObjectNames {} |
| Object names. | |
| std::map< std::string, std::vector< TObject * > > | fObjectContentMap {} |
| Object content map. | |
| std::vector< std::string > | fParameterNames {} |
| Parameter names. | |
| std::map< std::string, std::vector< double > > | fParameterContentMap {} |
| Parameter content map. | |
| std::map< std::string, std::vector< double > > | fParameterErrorContentMap {} |
| Parameter error content map. | |
| std::vector< std::string > | fObjectTypes {"TH1"} |
| Object types. | |
| NGnNavigator * | fParent {nullptr} |
| Parent object. | |
| std::vector< NGnNavigator * > | fChildren {} |
| Children objects. | |
| TH1 * | fProjection {nullptr} |
| Projection histogram. | |
| size_t | fNLevels {1} |
| Number of levels in the hierarchy. | |
| size_t | fLevel {0} |
| Level of the object in the hierarchy. | |
| std::vector< std::vector< int > > | fLevels {} |
| Levels definition. | |
| size_t | fNCells {0} |
| Number of cells in the projection histogram. | |
| size_t | fLastHoverBin {0} |
| To avoid spamming the console on hover. | |
| size_t | fLastIndexSelected {0} |
| last selected index in the object | |
| Int_t | fTrigger {kButton1Down} |
| last triggered event | |
Navigator object for managing hierarchical data structures and projections.
Handles navigation, reshaping, exporting, drawing, and management of objects and parameters in a hierarchical tree structure. Supports projections, children/parent relationships, and integration with NBinningDef and NGnTree.
Definition at line 22 of file NGnNavigator.h.
| Ndmspc::NGnNavigator::NGnNavigator | ( | const char * | name = "GnNavigator", |
| const char * | title = "Gn Navigator", |
||
| std::vector< std::string > | objectTypes = {"TH1"} |
||
| ) |
Constructor.
| name | Navigator name. |
| title | Navigator title. |
| objectTypes | Types of objects managed (default: {"TH1"}). |
Definition at line 36 of file NGnNavigator.cxx.
Referenced by Reshape().
|
override |
Calculate distance to primitive for graphical selection.
| px | X coordinate. |
| py | Y coordinate. |
This method tells the pad if the mouse is "on" our object.
Definition at line 1294 of file NGnNavigator.cxx.
References fProjection.
|
overridevirtual |
Draw navigator objects.
| option | Draw options. |
Draw object
Definition at line 1183 of file NGnNavigator.cxx.
References fLevel, fNLevels, fProjection, fTrigger, GetChild(), GetChildren(), and GetProjection().
|
virtual |
Draw spectra for a parameter.
| parameterName | Name of parameter. |
| option | Draw options. |
| projIds | Projection IDs. |
Draw spectra for a parameter.
| parameterName | Name of parameter. |
| projIds | Projection IDs. |
| minmax | Min/max or percent range. |
| minmaxMode | Mode for min/max calculation ("VE" = value±error, "V" = value only). |
| option | Draw options. |
Draws the NGnProjection object with the specified projection IDs
Definition at line 1732 of file NGnNavigator.cxx.
References fGnTree, fLevel, fParameterContentMap, fProjection, Ndmspc::NGnTree::GetBinning(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NBinning::GetDefinition(), GetLevels(), GetParameterErrors(), GetParameters(), GetRoot(), Ndmspc::NUtils::Join(), Ndmspc::NUtils::Permutations(), Ndmspc::NUtils::ProjectTHnSparse(), and Ndmspc::NUtils::SetAxisRanges().
Referenced by DrawSpectraAll(), and DrawSpectraByName().
|
virtual |
Draws all spectra for the given parameter.
| parameterName | The name of the parameter to draw all spectra for. |
| option | Optional drawing options. |
Draws all spectra for the given parameter.
| parameterName | The name of the parameter to draw all spectra for. |
| minmax | Min/max or percent range. |
| minmaxMode | Mode for min/max calculation ("VE" = value±error, "V" = value only). |
| option | Optional drawing options. |
Draws the NGnProjection object for all projection IDs
Definition at line 1676 of file NGnNavigator.cxx.
References DrawSpectra().
|
virtual |
Draws spectra for the given parameter and projection axes.
| parameterName | The name of the parameter to draw spectra for. |
| projAxes | A vector of axis names to project onto. |
| option | Optional drawing options. |
Draws spectra for the given parameter and projection axes.
| parameterName | The name of the parameter to draw spectra for. |
| projAxes | A vector of axis names to project onto. |
| minmax | Min/max or percent range. |
| minmaxMode | Mode for min/max calculation ("VE" = value±error, "V" = value only). |
| option | Optional drawing options. |
Draws the NGnProjection object for all projection IDs
Definition at line 1686 of file NGnNavigator.cxx.
References DrawSpectra(), fProjection, and Ndmspc::NUtils::GetCoordsString().
|
overridevirtual |
Handle execution of events (e.g., mouse, keyboard).
| event | Event type. |
| px | X coordinate. |
| py | Y coordinate. |
Execute event
Definition at line 1305 of file NGnNavigator.cxx.
References fGnTree, fLastHoverBin, fLevel, fNLevels, fObjectNames, fProjection, fTrigger, Ndmspc::NGnTree::GetBinning(), GetChild(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NBinning::GetDefinition(), GetLastIndexSelected(), GetObject(), GetProjection(), and SetLastIndexSelected().
| void Ndmspc::NGnNavigator::Export | ( | const std::string & | filename, |
| std::vector< std::string > | objectNames, | ||
| const std::string & | wsUrl = "", |
||
| int | timeoutMs = 1000 |
||
| ) |
Export navigator data to file.
| filename | Output file name. |
| objectNames | Names of objects to export. |
| wsUrl | Optional WebSocket URL. |
| timeoutMs | Timeout in milliseconds (default: 5000). |
Export object to file
Definition at line 760 of file NGnNavigator.cxx.
References Ndmspc::NWsClient::Connect(), Ndmspc::NWsClient::Disconnect(), ExportToJson(), Ndmspc::NUtils::SaveRawFile(), and Ndmspc::NWsClient::Send().
| void Ndmspc::NGnNavigator::ExportToJson | ( | json & | j, |
| NGnNavigator * | obj, | ||
| std::vector< std::string > | objectNames | ||
| ) |
Export navigator data to JSON.
| j | JSON object to fill. |
| obj | Navigator object to export. |
| objectNames | Names of objects to export. |
Export NGnNavigator to JSON object
Definition at line 837 of file NGnNavigator.cxx.
References fObjectTypes, GetChildren(), Ndmspc::NUtils::GetCoordsString(), GetObjectContentMap(), GetParameterContentMap(), GetParameterError(), GetParent(), GetProjection(), and Ndmspc::NUtils::GetTrueHistogramMinMax().
Referenced by Export().
| NGnNavigator * Ndmspc::NGnNavigator::GetChild | ( | size_t | index | ) | const |
Get child navigator at index.
| index | Child index. |
Returns child object at given index
Definition at line 1440 of file NGnNavigator.cxx.
References fChildren.
Referenced by Draw(), ExecuteEvent(), GetChild(), and Reshape().
| NGnNavigator * Ndmspc::NGnNavigator::GetChild | ( | std::vector< std::vector< size_t >> | coords | ) | const |
Returns a pointer to a child NGnNavigator object specified by a sequence of coordinate vectors. Each inner vector in the coords parameter represents a set of indices at a particular hierarchy level. Traverses the hierarchy according to the provided coordinates. If the specified child does not exist, returns nullptr.
| coords | A vector of vectors of size_t, each representing coordinates at each hierarchy level. |
Get child object at given indices
Definition at line 1460 of file NGnNavigator.cxx.
References fGnTree, fLevel, fProjection, Ndmspc::NGnTree::GetBinning(), GetChild(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NBinning::GetDefinition(), GetLevels(), GetRoot(), Print(), and Ndmspc::NUtils::SetAxisRanges().
|
inline |
Get vector of child navigators.
Definition at line 190 of file NGnNavigator.h.
References fChildren.
Referenced by Draw(), ExportToJson(), Print(), and Reshape().
|
inline |
Get pointer to NGnTree object.
Definition at line 178 of file NGnNavigator.h.
References fGnTree.
| json Ndmspc::NGnNavigator::GetInfoJson | ( | ) | const |
Retrieves information about the navigator in JSON format.
Convert NGnNavigator info to JSON object
Definition at line 1165 of file NGnNavigator.cxx.
References fChildren, fLevel, fLevels, fNLevels, GetLevels(), GetObjectNames(), GetParameterNames(), and GetParent().
|
inline |
Get last hovered bin index.
Definition at line 459 of file NGnNavigator.h.
References fLastHoverBin.
|
inline |
Get last selected index.
Definition at line 447 of file NGnNavigator.h.
References fLastIndexSelected.
Referenced by ExecuteEvent().
|
inline |
Get current level in hierarchy.
Definition at line 411 of file NGnNavigator.h.
References fLevel.
|
inline |
Get the current levels as a vector of vectors of integers.
Definition at line 423 of file NGnNavigator.h.
References fLevels.
Referenced by DrawSpectra(), GetChild(), and GetInfoJson().
|
inline |
Get number of cells in projection histogram.
Definition at line 435 of file NGnNavigator.h.
References fNCells.
|
inline |
Get number of levels in hierarchy.
Definition at line 399 of file NGnNavigator.h.
References fNLevels.
| TObject * Ndmspc::NGnNavigator::GetObject | ( | const std::string & | name, |
| int | index = 0 |
||
| ) | const |
Get object by name and index.
| name | Object name. |
| index | Object index (default: 0). |
Returns point for given name and index
Definition at line 1540 of file NGnNavigator.cxx.
References fObjectContentMap.
Referenced by ExecuteEvent().
|
inline |
Get object content map.
Definition at line 249 of file NGnNavigator.h.
References fObjectContentMap.
Referenced by ExportToJson(), and Reshape().
|
inline |
Get object names managed by navigator.
Definition at line 291 of file NGnNavigator.h.
References fObjectNames.
Referenced by GetInfoJson(), and Print().
| std::vector< TObject * > Ndmspc::NGnNavigator::GetObjects | ( | const std::string & | name | ) | const |
Get objects by name.
| name | Object name. |
Returns points for given name
Definition at line 1530 of file NGnNavigator.cxx.
References fObjectContentMap.
| double Ndmspc::NGnNavigator::GetParameter | ( | const std::string & | name, |
| int | index = 0 |
||
| ) | const |
Get parameter value by name and index.
| name | Parameter name. |
| index | Parameter index (default: 0). |
Returns parameter for given name and index
Definition at line 1592 of file NGnNavigator.cxx.
References fParameterContentMap.
|
inline |
Get parameter content map.
Definition at line 303 of file NGnNavigator.h.
References fParameterContentMap.
Referenced by ExportToJson().
| double Ndmspc::NGnNavigator::GetParameterError | ( | const std::string & | name, |
| int | index = 0 |
||
| ) | const |
Retrieves a specific error value for a parameter.
| name | The name of the parameter. |
| index | The index of the error value (default is 0). |
Returns parameter for given name and index
Definition at line 1639 of file NGnNavigator.cxx.
References fParameterErrorContentMap.
Referenced by ExportToJson().
|
inline |
Returns the map containing parameter error vectors for each parameter name.
Definition at line 339 of file NGnNavigator.h.
References fParameterErrorContentMap.
| std::vector< double > Ndmspc::NGnNavigator::GetParameterErrors | ( | const std::string & | name | ) | const |
Retrieves the error vector for a given parameter name.
| name | The name of the parameter. |
Returns parameters for given name
Definition at line 1629 of file NGnNavigator.cxx.
References fParameterErrorContentMap.
Referenced by DrawSpectra().
|
inline |
Get parameter names managed by navigator.
Definition at line 375 of file NGnNavigator.h.
References fParameterNames.
Referenced by GetInfoJson(), and Print().
| std::vector< double > Ndmspc::NGnNavigator::GetParameters | ( | const std::string & | name | ) | const |
Get parameters by name.
| name | Parameter name. |
Returns parameters for given name
Definition at line 1582 of file NGnNavigator.cxx.
References fParameterContentMap.
Referenced by DrawSpectra().
|
inline |
Get parent navigator.
Definition at line 227 of file NGnNavigator.h.
References fParent.
Referenced by ExportToJson(), GetInfoJson(), and GetRoot().
|
inline |
Get projection histogram.
Definition at line 387 of file NGnNavigator.h.
References fProjection.
Referenced by Draw(), ExecuteEvent(), ExportToJson(), and Reshape().
| NGnNavigator * Ndmspc::NGnNavigator::GetRoot | ( | ) | const |
Returns the root parent of this NGnNavigator.
Traverses up the parent hierarchy and returns a pointer to the root NGnNavigator. If this navigator has no parent, returns itself.
Returns the root navigator in the hierarchy
Definition at line 2124 of file NGnNavigator.cxx.
References fParent, and GetParent().
Referenced by DrawSpectra(), and GetChild().
|
overridevirtual |
Paint navigator objects.
| option | Paint options. |
Paint object
Definition at line 1280 of file NGnNavigator.cxx.
References fLevel, and fProjection.
|
overridevirtual |
Print navigator information.
| option | Print options. |
Print NGnNavigator information
Definition at line 1109 of file NGnNavigator.cxx.
References fChildren, fGnTree, fLevel, fLevels, fNLevels, fParent, fProjection, Ndmspc::NGnTree::GetBinning(), GetChildren(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NBinning::GetDefinition(), GetObjectNames(), GetParameterNames(), Print(), and Ndmspc::NGnTree::Print().
Referenced by GetChild(), and Print().
| NGnNavigator * Ndmspc::NGnNavigator::Reshape | ( | NBinningDef * | binningDef, |
| std::vector< std::vector< int >> | levels, | ||
| size_t | level = 0, |
||
| std::map< int, std::vector< int >> | ranges = {}, |
||
| std::map< int, std::vector< int >> | rangesBase = {}, |
||
| NGnNavigator * | parent = nullptr |
||
| ) |
Reshape navigator using NBinningDef and levels.
| binningDef | Pointer to NBinningDef. |
| levels | Vector of levels. |
| level | Current level (default: 0). |
| ranges | Map of ranges for axes. |
| rangesBase | Map of base ranges for axes. |
| parent | Pointer to parent NGnNavigator. |
Reshape the navigator
Handle THnSparse branch object
Definition at line 156 of file NGnNavigator.cxx.
References Ndmspc::NDimensionalExecutor::Execute(), fGnTree, fLevel, fNLevels, Ndmspc::NUtils::GetAxisRangeInBase(), Ndmspc::NStorageTree::GetBranch(), Ndmspc::NStorageTree::GetBranchesMap(), Ndmspc::NTreeBranch::GetBranchStatus(), GetChild(), GetChildren(), Ndmspc::NBinningDef::GetContent(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NGnTree::GetEntry(), Ndmspc::NParameters::GetHisto(), GetObjectContentMap(), GetProjection(), Ndmspc::NGnTree::GetStorageTree(), NGnNavigator(), Reshape(), ResizeObjectContentMap(), Ndmspc::NUtils::SetAxisRanges(), Ndmspc::NTreeBranch::SetBranchStatus(), SetChild(), SetChildrenSize(), SetGnTree(), SetLevel(), SetLevels(), SetNCells(), SetNLevels(), SetObject(), SetParameter(), SetParameterError(), SetParent(), and SetProjection().
| NGnNavigator * Ndmspc::NGnNavigator::Reshape | ( | std::string | binningName, |
| std::vector< std::vector< int >> | levels, | ||
| size_t | 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 71 of file NGnNavigator.cxx.
References fGnTree, Ndmspc::NGnTree::GetBinning(), Ndmspc::NUtils::GetCoordsString(), Ndmspc::NBinning::GetDefinition(), and Ndmspc::NBinningDef::GetVariableAxes().
Referenced by Reshape(), and Ndmspc::NGnTree::Reshape().
|
inline |
Resize object content map for a given name.
| name | Object name. |
| n | New size. |
Definition at line 256 of file NGnNavigator.h.
References fObjectContentMap.
Referenced by Reshape(), and SetObject().
|
inline |
Resize parameter content map for a given name.
| name | Parameter name. |
| n | New size. |
Definition at line 310 of file NGnNavigator.h.
References fParameterContentMap.
Referenced by SetParameter().
|
inline |
Resizes the error vector for a given parameter name.
| name | The name of the parameter. |
| n | The new size for the error vector. |
Definition at line 346 of file NGnNavigator.h.
References fParameterErrorContentMap.
Referenced by SetParameterError().
| void Ndmspc::NGnNavigator::SetChild | ( | NGnNavigator * | child, |
| int | index = -1 |
||
| ) |
Set child navigator at index.
| child | Pointer to child NGnNavigator. |
| index | Index to set (-1 for append). |
Set child object at given index
Definition at line 1449 of file NGnNavigator.cxx.
References fChildren, and SetParent().
Referenced by Reshape().
|
inline |
Set number of children.
| n | Number of children. |
Definition at line 196 of file NGnNavigator.h.
References fChildren.
Referenced by Reshape().
|
inline |
Set NGnTree object pointer.
| tree | Pointer to NGnTree. |
Definition at line 184 of file NGnNavigator.h.
References fGnTree.
Referenced by Ndmspc::NGnTree::NGnTree(), Ndmspc::NGnTree::Open(), Reshape(), and Ndmspc::NGnTree::Reshape().
|
inline |
Set last hovered bin index.
| b | Bin index to set. |
Definition at line 465 of file NGnNavigator.h.
References fLastHoverBin.
|
inline |
Set last selected index.
| idx | Index to set. |
Definition at line 453 of file NGnNavigator.h.
References fLastIndexSelected.
Referenced by ExecuteEvent().
|
inline |
Set current level in hierarchy.
| l | Level to set. |
Definition at line 417 of file NGnNavigator.h.
References fLevel.
Referenced by Reshape().
|
inline |
Set the levels using a vector of vectors of integers.
| levels | A vector of vectors of int to set as the new levels. |
Definition at line 429 of file NGnNavigator.h.
References fLevels.
Referenced by Reshape().
|
inline |
Set number of cells in projection histogram.
| n | Number of cells. |
Definition at line 441 of file NGnNavigator.h.
References fNCells.
Referenced by Reshape().
|
inline |
Set number of levels in hierarchy.
| n | Number of levels. |
Definition at line 405 of file NGnNavigator.h.
References fNLevels.
Referenced by Reshape().
| void Ndmspc::NGnNavigator::SetObject | ( | const std::string & | name, |
| TObject * | obj, | ||
| int | index = -1 |
||
| ) |
Set object by name and index.
| name | Object name. |
| obj | Pointer to TObject. |
| index | Index to set (-1 for append). |
Set object for given name and index
Definition at line 1550 of file NGnNavigator.cxx.
References fNCells, fObjectContentMap, fObjectNames, and ResizeObjectContentMap().
Referenced by Reshape().
|
inline |
Set object names managed by navigator.
| names | Vector of object names. |
Definition at line 297 of file NGnNavigator.h.
References fObjectNames.
|
inline |
Set object types managed by navigator.
| types | Vector of object type strings. |
Definition at line 285 of file NGnNavigator.h.
References fObjectTypes.
| void Ndmspc::NGnNavigator::SetParameter | ( | const std::string & | name, |
| double | value, | ||
| int | index = -1 |
||
| ) |
Set parameter value by name and index.
| name | Parameter name. |
| value | Value to set. |
| index | Index to set (-1 for append). |
Set parameter for given name and index
Definition at line 1602 of file NGnNavigator.cxx.
References fNCells, fParameterContentMap, fParameterNames, and ResizeParameterContentMap().
Referenced by Reshape().
| void Ndmspc::NGnNavigator::SetParameterError | ( | const std::string & | name, |
| double | value, | ||
| int | index = -1 |
||
| ) |
Sets a specific error value for a parameter.
| name | The name of the parameter. |
| value | The error value to set. |
| index | The index at which to set the error value (default is -1, which may indicate appending or special handling). |
Set parameter for given name and index
Definition at line 1649 of file NGnNavigator.cxx.
References fNCells, fParameterErrorContentMap, fParameterNames, and ResizeParameterErrorContentMap().
Referenced by Reshape().
|
inline |
Set parameter names managed by navigator.
| names | Vector of parameter names. |
Definition at line 381 of file NGnNavigator.h.
References fParameterNames.
|
inline |
Set parent navigator.
| parent | Pointer to parent NGnNavigator. |
Definition at line 243 of file NGnNavigator.h.
References fParent.
Referenced by Reshape(), and SetChild().
|
inline |
Set projection histogram.
| h | Pointer to TH1 histogram. |
Definition at line 393 of file NGnNavigator.h.
References fProjection.
Referenced by Reshape().