Helper functions based on art/canvas. More...
#include "canvas/Persistency/Common/Ptr.h"
#include "canvas/Persistency/Provenance/BranchDescription.h"
#include "canvas/Persistency/Provenance/ProductID.h"
#include "canvas/Utilities/Exception.h"
#include <type_traits>
Go to the source code of this file.
Namespaces | |
util | |
Namespace for general, non-LArSoft-specific utilities. | |
Functions | |
template<typename Event > | |
art::InputTag | util::inputTagOf (Event const &event, art::ProductID const &productID) |
Reads and returns the input tag of the producer of productID . More... | |
template<typename Event , typename Handle > | |
std::enable_if_t < std::is_void_v< std::void_t < typename Handle::HandleTag > >, art::InputTag > | util::inputTagOf (Event const &event, Handle const &handle) |
Reads and returns the input tag of the product with the specified handle . More... | |
template<typename Event , typename T > | |
art::InputTag | util::inputTagOf (Event const &event, art::Ptr< T > const &ptr) |
Reads and returns the input tag of the product ptr points to. More... | |
Helper functions based on art/canvas.
This library is header only.
Definition in file CanvasUtils.h.