ndh 0.0.7
Loading...
Searching...
No Matches
HnSparseStress.hh
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.hh"
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
31 void SetDebugLevel(Int_t debug) { fDebugLevel = debug; }
32 void SetPrintRefresh(Int_t n) { fPrintRefresh = n; }
33
34private:
35 Long64_t fNFilledMax{0};
36 Long64_t fNBytesMax{0};
37 TStopwatch fTimer;
38 TStopwatch fTimerTotal;
39 Int_t fDebugLevel{0};
40 Int_t fPrintRefresh{1000};
41 bool fDone{false};
42
43 void PrintBin(Int_t n, Double_t * c, const char * msg);
44
46 ClassDef(HnSparseStress, 1);
48};
49
50} // namespace NDH
51
52#endif /* HnSparseStress_H */
HnSparseStress object.
Int_t fPrintRefresh
Print refresh.
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)
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.
Long64_t fNFilledMax
Max size of filled entries.
void PrintBin(Int_t n, Double_t *c, const char *msg)
HnSparse object.
Definition HnSparse.hh:18