Add ability to map const pointers obtained from getView back to data products
As discussed in the stakeholders meeting, we would like to be able to take the const pointers in
std::vector< const MyProd* >
obtained using art::Event::getView() and point them back to the data products from which they come in order to store the references in other data products.
#1 Updated by Marc Paterno over 9 years ago
- Category set to Navigation
- Status changed from New to Resolved
- Assignee set to Marc Paterno
- Target version set to 0.5.0
This feature is now complete. To support this requirement, we have added a class template: art::View<T>, which contains a std::vector<T const*> as well as the other data necessary to allow filling the PtrVector<T>.
There are now also overloads for the Event::getView() that take a View<T>, in addition to the overloads that take std::vector<T const*>.