5 #ifndef PSUTILS_MEMPRINT_H
6 #define PSUTILS_MEMPRINT_H
11 #include "SiDigitization/HitIndexAndTime.h"
17 typedef std::map< IdentifierHash, SiChargedDiodeCollection* >
DiodeCache;
18 typedef std::map< IdentifierHash, std::vector<HitIndexAndTime> >
HitCache;
44 std::size_t nWafers = cache.size();
45 std::size_t nDiodes = (std::for_each(cache.begin(), cache.end(),
DiodeCacheCounter() ) ).m_count;
46 std::ostringstream sstream;
47 sstream<<
getMemUsage()<<
" n wafers "<< nWafers<<
" n diodes "<<nDiodes<<
'\n';
52 std::size_t nWafers = cache.size();
53 std::size_t nDiodes = (std::for_each(cache.begin(), cache.end(),
HitCacheCounter() ) ).m_count;
54 std::ostringstream sstream;
55 sstream<<
getMemUsage()<<
" n wafers "<< nWafers<<
" n hits "<<nDiodes<<
'\n';