ndmspc 0.20240624.0
Loading...
Searching...
No Matches
HnSparseStress.h
1#ifndef HnSparseStress_H
2#define HnSparseStress_H
3
4#include <TObject.h>
5#include <TStopwatch.h>
6#include <THnSparse.h>
7
8#include "HnSparse.h"
9namespace NDH {
10
17
18class HnSparseStress : public TObject {
19
20public:
22
23private:
24 bool GenerateRecursiveLoop(THnSparse * h, Int_t iDim, Double_t * coord, Int_t * start);
25 bool StressRecursiveLoop(HnSparse * h, int & iDim, int * coord);
26
27public:
28 virtual Bool_t Generate(THnSparse * h, Long64_t size = 1e3, Long64_t start = 1e3);
29 virtual Bool_t Stress(HnSparse * h, Long64_t size = 1e3, bool bytes = false);
30
32 void SetDebugLevel(Int_t debug) { fDebugLevel = debug; }
34 void SetPrintRefresh(Int_t n) { fPrintRefresh = n; }
36 void SetRandomFill(bool rf) { fRandomFill = rf; }
37
38private:
39 Long64_t fNFilledMax{0};
40 Long64_t fNBytesMax{0};
41 TStopwatch fTimer;
42 TStopwatch fTimerTotal;
43 Int_t fDebugLevel{0};
44 Int_t fPrintRefresh{1000};
45 bool fRandomFill{false};
46 bool fDone{false};
47
48 void PrintBin(Int_t n, Double_t * c, const char * msg);
49
51 ClassDef(HnSparseStress, 1);
53};
54
55} // namespace NDH
56
57#endif /* HnSparseStress_H */
HnSparseStress object.
Int_t fPrintRefresh
Print refresh.
void SetRandomFill(bool rf)
Setting fill random flag.
bool fDone
Flag is process is done.
bool StressRecursiveLoop(HnSparse *h, int &iDim, int *coord)
virtual Bool_t Generate(THnSparse *h, Long64_t size=1e3, Long64_t start=1e3)
bool fRandomFill
Flag is Fill is random.
virtual Bool_t Stress(HnSparse *h, Long64_t size=1e3, bool bytes=false)
Int_t fDebugLevel
Debug level.
TStopwatch fTimerTotal
Total timer.
Long64_t fNBytesMax
Max size in bytes.
bool GenerateRecursiveLoop(THnSparse *h, Int_t iDim, Double_t *coord, Int_t *start)
TStopwatch fTimer
Process timer.
void SetDebugLevel(Int_t debug)
Setting debug level.
Long64_t fNFilledMax
Max size of filled entries.
void PrintBin(Int_t n, Double_t *c, const char *msg)
void SetPrintRefresh(Int_t n)
Setting print refresh.
HnSparse object.
Definition HnSparse.h:19