11 #ifndef LARDATA_RECOBASEPROXY_PROXYBASE_ONETO01DATAPROXYMAKER_H 12 #define LARDATA_RECOBASEPROXY_PROXYBASE_ONETO01DATAPROXYMAKER_H 22 #include <type_traits> 48 template <
typename Main,
typename Aux,
typename Metadata =
void,
typename AuxTag = Aux>
88 template <
typename Event,
typename Handle,
typename MainArgs>
89 static auto make(Event
const&
event, Handle&& mainHandle, MainArgs
const& mainArgs)
108 template <
typename Event,
typename Handle,
typename MainArgs>
114 return createFromTag(event, std::forward<Handle>(mainHandle), auxInputTag);
130 template <
typename Event,
typename Handle,
typename MainArgs,
typename Assns>
131 static auto make(Event
const&, Handle&& handle, MainArgs
const&, Assns
const& assns)
133 static_assert(std::is_convertible<typename Assns::right_t, aux_element_t>(),
134 "Improper right type for one-to-(zero-or-one) association.");
135 return makeOneTo01dataFrom<data_tag>(assns, handle->size());
139 template <
typename Event,
typename Handle>
144 return makeOneTo01dataFrom<main_element_t, aux_element_t, metadata_t, data_tag>(
145 event, auxInputTag, mainHandle->size());
184 template <
typename Main,
typename Aux,
typename Metadata,
typename CollProxy,
typename Tag = Aux>
229 template <
typename Event,
typename Handle,
typename MainArgs,
typename... Args>
230 static auto make(Event
const&
event, Handle&& mainHandle, MainArgs
const& margs, Args&&... args)
233 event, std::forward<Handle>(mainHandle), margs, std::forward<Args>(args)...);
246 template <
typename Aux,
typename Metadata ,
typename AuxTag
249 template <
typename CollProxy>
258 #endif // LARDATA_RECOBASEPROXY_PROXYBASE_ONETO01DATAPROXYMAKER_H static auto make(Event const &event, Handle &&mainHandle, MainArgs const &mainArgs)
Create a association proxy collection using main collection tag.
static auto make(Event const &, Handle &&handle, MainArgs const &, Assns const &assns)
Create a association proxy collection using the specified tag.
art::Assns< main_t, aux_t > assns_t
Type of the source association.
static auto createFromTag(Event const &event, Handle &&mainHandle, art::InputTag const &auxInputTag)
Auxiliary data from one-to-(zero-or-one) sequential association.
Aux aux_element_t
Type of the auxiliary associated datum ("right").
static auto make(Event const &event, Handle &&mainHandle, MainArgs const &, art::InputTag const &auxInputTag)
Create a association proxy collection using the specified tag.
Creates an one-to-(zero-or-one) wrapper for the specified types.
Main main_element_t
Type of the main datum ("left").
Object for one-to-zero/or/one associated data interface.
static auto make(Event const &event, Handle &&mainHandle, MainArgs const &margs, Args &&...args)
Create a association proxy collection using main collection tag.
Encloses LArSoft data product proxy objects and utilities.See this doxygen module for an introduction...
typename aux_collection_proxy_t::assns_t assns_t
Type of art association being used as input.
Helper functions to create data structures associated to a proxy.
Tag data_tag
Tag labelling the associated data we are going to produce.
Creates an one-to-(zero-or-one) wrapper for the specified types.
Event finding and building.
Metadata metadata_t
Type of associated metadata.