Utilities to map data pointer elements to their art::Ptr.
More...
#include "larcorealg/CoreUtils/enumerate.h"#include "art/Framework/Principal/Event.h"#include "art/Persistency/Common/PtrMaker.h"#include "canvas/Persistency/Common/Ptr.h"#include <map>#include <vector>#include <type_traits>Go to the source code of this file.
Namespaces | |
| util | |
| Namespace for general, non-LArSoft-specific utilities. | |
| util::details | |
Typedefs | |
| template<typename T > | |
| using | util::details::DataProductPointerMap_t = std::map< T const *, art::Ptr< T >> |
| template<typename Handle > | |
| using | util::ArtHandleData_t = typename Handle::element_type::value_type |
| Type of data in a art handle to vector data product. More... | |
| template<typename T > | |
| using | util::DataProductPointerMap_t = details::DataProductPointerMap_t< T > |
| Type of map for data product pointers to art pointers. More... | |
Functions | |
| template<typename Handle > | |
| DataProductPointerMap_t < ArtHandleData_t< Handle > > | util::mapDataProductPointers (art::Event const &event, Handle const &handle) |
| Creates a map from address of data product element to art pointer to it. More... | |
Utilities to map data pointer elements to their art::Ptr.
This library is header only.
Definition in file DataProductPointerMap.h.
1.8.5