ndmspc
0.20240624.0
|
#include <HnSparse.h>
Public Member Functions | |
Bool_t | Import (std::vector< Int_t > r, TString filename, TString objname, TString cacheDir=gSystem->HomeDirectory()) |
void | SetOutputFileName (const char *fn) |
Setting output file name. | |
TString | GetOutputFileName () const |
Returns output filename. | |
void | ReserveBins (Long64_t nBins) |
Protected Member Functions | |
HnSparse () | |
HnSparse (const char *name, const char *title, Int_t dim, const Int_t *nbins, const Double_t *xmin=0, const Double_t *xmax=0, Int_t chunksize=1024 *16) | |
bool | RecursiveLoop (THnSparse *s, Int_t level, Int_t *coord, Int_t *dims, std::vector< Int_t > &r) |
Private Attributes | |
TTree * | fTree {nullptr} |
Container. | |
TString | fOutputFileName {"ndh.root"} |
Output filename. | |
HnSparse object.
Definition at line 19 of file HnSparse.h.
|
protected |
Default constructor
Definition at line 16 of file HnSparse.cxx.
|
protected |
Constructor
Definition at line 23 of file HnSparse.cxx.
Bool_t NDH::HnSparse::Import | ( | std::vector< Int_t > | r, |
TString | filename, | ||
TString | objname, | ||
TString | cacheDir = gSystem->HomeDirectory() |
||
) |
Import THnSparse from file
Definition at line 32 of file HnSparse.cxx.
References fOutputFileName, fTree, and RecursiveLoop().
|
protected |
Recursive loop
Definition at line 105 of file HnSparse.cxx.
References fTree.
Referenced by Import().
void NDH::HnSparse::ReserveBins | ( | Long64_t | nBins | ) |
Reserve N bins
Definition at line 145 of file HnSparse.cxx.