projects/lcdd/trunk/include/lcdd/hits
--- projects/lcdd/trunk/include/lcdd/hits/CalorimeterHitMap.hh 2014-02-14 22:58:13 UTC (rev 3000)
+++ projects/lcdd/trunk/include/lcdd/hits/CalorimeterHitMap.hh 2014-02-14 22:59:03 UTC (rev 3001)
@@ -48,6 +48,12 @@
CalorimeterHit* get(const Id64bit& id);
/**
+ * Get the size of the map.
+ * @return The size of the map.
+ */
+ int size();
+
+ /**
* Clear all entries from this hit map.
*/
void clear();
projects/lcdd/trunk/src/lcdd/hits
--- projects/lcdd/trunk/src/lcdd/hits/CalorimeterHitMap.cc 2014-02-14 22:58:13 UTC (rev 3000)
+++ projects/lcdd/trunk/src/lcdd/hits/CalorimeterHitMap.cc 2014-02-14 22:59:03 UTC (rev 3001)
@@ -20,3 +20,7 @@
void CalorimeterHitMap::clear() {
_map.clear();
}
+
+int CalorimeterHitMap::size() {
+ return _map.size();
+}