MantisBT - Hall D Offline
View Issue Details
0000411Hall D OfflineGeneralpublic2014-06-20 08:152014-06-20 08:15
davidl 
 
normalfeatureN/A
newopen 
0000411: GetCDCWires and GetFDCWires inefficient
The GetCDCWires and GetFDCWires methods of DGeometry will allocate new wire structures every time they are called. This leads to duplication for each thread and possible memory leaks, For example, the wires are needed in the DCDCHit_factory class, but only to get the number of straws for each ring. The wires then have to be deleted one at a time.

The wires should be cached as something like vector<vector<const DCDCWire*> > and the signatures of GetCDCWires changed to use that as well. Similarly for FDC.
No tags attached.
Issue History
2014-06-20 08:15davidlNew Issue

There are no notes attached to this issue.