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

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

Detailed Description

Helper functions based on art/canvas.

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

This library is header only.

Definition in file CanvasUtils.h.