#include <HistCache.h>
Static Public Member Functions | |
static TH1D * | New (const std::string &title, const Binning &bins) |
static TH1D * | New (const std::string &title, const TAxis *bins) |
static TH1D * | Copy (const TH1D *h) |
static TH2D * | NewTH2D (const std::string &title, const Binning &xbins, const Binning &ybins) |
static TH2D * | NewTH2D (const std::string &title, const TAxis *xbins, const TAxis *ybins) |
static TH2D * | Copy (const TH2D *h) |
static void | Delete (TH1D *&h) |
static void | Delete (TH2D *&h) |
static void | PrintStats () |
static void | ClearCache () |
Static Protected Member Functions | |
static void | CheckMemoryUse () |
Static Protected Attributes | |
static std::multimap< int, std::unique_ptr< TH1D > > | fgMap |
static std::multimap < std::pair< int, int > , std::unique_ptr< TH2D > > | fgMap2D |
static int | fgOut = 0 |
static int | fgIn = 0 |
static long | fgEstMemUsage = 0 |
static long | fgMemHandedOut = 0 |
Helper for Spectrum.
ROOT's handling of allocations, and especially deletions, can be very slow. It keeps everything in a big map that it then has to lookups in. This class provides a simple cache of histograms, recycling an old histogram of the same binning instead of creating a new one.
Allocate new histograms with New, and return them to the cache with Delete.
Definition at line 24 of file HistCache.h.
|
staticprotected |
Definition at line 126 of file HistCache.cxx.
|
static |
Definition at line 142 of file HistCache.cxx.
|
static |
Definition at line 76 of file HistCache.cxx.
|
static |
Definition at line 84 of file HistCache.cxx.
|
static |
Definition at line 92 of file HistCache.cxx.
|
static |
Definition at line 109 of file HistCache.cxx.
|
static |
Definition at line 21 of file HistCache.cxx.
|
static |
Definition at line 44 of file HistCache.cxx.
|
static |
Definition at line 50 of file HistCache.cxx.
|
static |
Definition at line 70 of file HistCache.cxx.
|
static |
Definition at line 152 of file HistCache.cxx.
|
staticprotected |
Definition at line 48 of file HistCache.h.
|
staticprotected |
Definition at line 46 of file HistCache.h.
|
staticprotected |
Definition at line 43 of file HistCache.h.
|
staticprotected |
Definition at line 44 of file HistCache.h.
|
staticprotected |
Definition at line 49 of file HistCache.h.
|
staticprotected |
Definition at line 46 of file HistCache.h.