![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Class to assemble the required proxy. More...
#include "CollectionProxyMaker.h"
Public Types | |
| using | traits_t = CollectionProxyMakerTraits< CollProxy > |
| Traits of the collection proxy for the collection proxy maker. More... | |
| using | main_collection_proxy_t = typename traits_t::main_collection_proxy_t |
| Type of main collection proxy. More... | |
| using | main_element_t = typename traits_t::main_element_t |
| Type returned by the main collection indexing operator. More... | |
| using | main_collection_t = typename traits_t::main_collection_t |
| Type of element of the main collection. More... | |
Static Public Member Functions | |
| template<typename Event , typename... WithArgs> | |
| static auto | make (Event const &event, art::InputTag const &tag, WithArgs &&...withArgs) |
Creates and returns a collection proxy based on CollProxy and with the requested associated data. More... | |
Class to assemble the required proxy.
| CollProxy | a type characterizing the produced proxy |
This class is used by getCollection() to create the requested proxy. The required interface for this class is:
make(): a static method returning the collection proxy, matching the signature where the first argument will be the event to read the information from.A default implementation is provided as proxy::CollectionProxyMakerBase. Specializations of proxy::CollectionProxyMaker may choose to derive from proxy::CollectionProxyMakerBase as well, for convenience.
Definition at line 144 of file CollectionProxyMaker.h.
|
inherited |
Type of main collection proxy.
Definition at line 90 of file CollectionProxyMaker.h.
|
inherited |
Type of element of the main collection.
Definition at line 96 of file CollectionProxyMaker.h.
|
inherited |
Type returned by the main collection indexing operator.
Definition at line 93 of file CollectionProxyMaker.h.
|
inherited |
Traits of the collection proxy for the collection proxy maker.
Definition at line 87 of file CollectionProxyMaker.h.
|
staticinherited |
Creates and returns a collection proxy based on CollProxy and with the requested associated data.
| Event | type of the event to read the information from |
| WithArgs | type of arguments for associated data |
| event | event to read the information from |
| tag | input tag of the main data product |
| withArgs | optional associated objects to be included |
tagFor each argument in withArgs, an action is taken. Usually that is to add an association to the proxy.
Only a few associated data collections are supported:
withAssociated<Aux>() (optional argument: hit-track association tag, as track by default): adds to the proxy an association to the Aux data product (see withAssociated()) Definition at line 281 of file CollectionProxyMaker.h.
Referenced by proxy::details::createCollectionProxyFromTraits(), and proxy::getCollection().