23 HnSparse(
const char * name,
const char * title, Int_t dim,
const Int_t * nbins,
const Double_t * xmin = 0,
24 const Double_t * xmax = 0, Int_t chunksize = 1024 * 16);
27 Bool_t
Import(std::vector<Int_t> r, TString filename, TString objname, TString cacheDir = gSystem->HomeDirectory());
37 bool RecursiveLoop(THnSparse * s, Int_t level, Int_t * coord, Int_t * dims, std::vector<Int_t> & r);
85 HnSparseT(
const char * name,
const char * title, Int_t dim,
const Int_t * nbins,
const Double_t * xmin =
nullptr,
86 const Double_t * xmax =
nullptr, Int_t chunksize = 1024 * 16)
87 :
HnSparse(name, title, dim, nbins, xmin, xmax, chunksize)
92 TArray *
GenerateArray()
const override {
return new CONT(GetChunkSize()); }
100typedef HnSparseT<TArrayD> HnSparseD;
101typedef HnSparseT<TArrayF> HnSparseF;
102#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 0)
103typedef HnSparseT<TArrayL64> HnSparseL;
105typedef HnSparseT<TArrayL> HnSparseL;
107typedef HnSparseT<TArrayI> HnSparseI;
108typedef HnSparseT<TArrayS> HnSparseS;
109typedef HnSparseT<TArrayC> HnSparseC;
HnSparseT(const char *name, const char *title, Int_t dim, const Int_t *nbins, const Double_t *xmin=nullptr, const Double_t *xmax=nullptr, Int_t chunksize=1024 *16)
Constructor.
HnSparseT()
Default constructor.
TArray * GenerateArray() const override
Returns content array.
void ReserveBins(Long64_t nBins)
void SetOutputFileName(const char *fn)
Setting output file name.
Bool_t Import(std::vector< Int_t > r, TString filename, TString objname, TString cacheDir=gSystem->HomeDirectory())
TString GetOutputFileName() const
Returns output filename.
bool RecursiveLoop(THnSparse *s, Int_t level, Int_t *coord, Int_t *dims, std::vector< Int_t > &r)
TString fOutputFileName
Output filename.