LDMX-Software / fire

Event-by-event processing framework using HDF5 and C++17
https://ldmx-software.github.io/fire/
GNU General Public License v3.0
1 stars 0 forks source link

add after get same object #18

Closed tomeichlersmith closed 2 years ago

tomeichlersmith commented 2 years ago

I need to check what happens and decide if it is the behavior we want.

I can't sus out if the add would overwrite what was get or if there is an exception I'm not thinking of.

tomeichlersmith commented 2 years ago

This has been resolved by commit https://github.com/LDMX-Software/fire/commit/4108e8a88175acb3f5bd1045739a2753d5a56b18 which checks the internal products listing for a match when creating a new event object within add. This handles the case of when a user attempts to add an object of the same name and pass as a object being read in from the input file.