All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Typedefs | Functions
DataProductPointerMap.h File Reference

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...
 

Detailed Description

Utilities to map data pointer elements to their art::Ptr.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
December 13, 2019

This library is header only.

Definition in file DataProductPointerMap.h.