Commit in projects/lcdd/trunk on MAIN | |||
include/lcdd/hits/CalorimeterHitMap.hh | +6 | 3000 -> 3001 | |
src/lcdd/hits/CalorimeterHitMap.cc | +4 | 3000 -> 3001 | |
+10 |
add size method
--- 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/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(); +}
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1