Static Public Member Functions | List of all members
art::prevent_recursion< Sampled< T > > Struct Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Common/Wrapper.h"

Static Public Member Functions

static std::unique_ptr< EDProductcreate_empty_sampled_product (InputTag const &)
 
static void insert_if_sampled_product (Sampled< T > &obj, std::string const &dataset, SubRunID const &id, std::unique_ptr< EDProduct > product)
 

Detailed Description

template<typename T>
struct art::prevent_recursion< Sampled< T > >

Definition at line 271 of file Wrapper.h.

Member Function Documentation

template<typename T >
static std::unique_ptr<EDProduct> art::prevent_recursion< Sampled< T > >::create_empty_sampled_product ( InputTag const &  )
inlinestatic

Definition at line 273 of file Wrapper.h.

References art::errors::LogicError.

274  {
276  << "An attempt was made to create an empty sampled product\n"
277  << "for a sampled product. This type of recursion is not allowed.\n"
278  << "Please contact artists@fnal.gov for guidance.";
279  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
template<typename T >
static void art::prevent_recursion< Sampled< T > >::insert_if_sampled_product ( Sampled< T > &  obj,
std::string const &  dataset,
SubRunID const &  id,
std::unique_ptr< EDProduct product 
)
inlinestatic

Definition at line 282 of file Wrapper.h.

References art::Sampled< T >::insert().

286  {
287  auto& wp = dynamic_cast<Wrapper<T>&>(*product);
288  obj.insert(dataset, id, std::move(wp.obj));
289  }

The documentation for this struct was generated from the following file: