LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
getCollection.h
Go to the documentation of this file.
1 
11 #ifndef LARDATA_RECOBASEPROXY_PROXYBASE_GETCOLLECTION_H
12 #define LARDATA_RECOBASEPROXY_PROXYBASE_GETCOLLECTION_H
13 
14 // LArSoft libraries
16 
17 // C/C++ standard
18 #include <utility> // std::forward()
19 
20 namespace proxy {
21 
22  // ---------------------------------------------------------------------------
80  template <typename CollProxy, typename Event, typename... OptionalArgs>
81  auto getCollection(Event const& event, OptionalArgs&&... optionalArgs)
82  {
84  std::forward<OptionalArgs>(optionalArgs)...);
85  }
86 
87  // ---------------------------------------------------------------------------
88 
89 } // namespace proxy
90 
91 #endif // LARDATA_RECOBASEPROXY_PROXYBASE_GETCOLLECTION_H
Infrastructure for the creation of a collection proxy.
auto getCollection(Event const &event, OptionalArgs &&...optionalArgs)
Creates a proxy to a data product collection.
Definition: getCollection.h:81
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...
Encloses LArSoft data product proxy objects and utilities.See this doxygen module for an introduction...
Event finding and building.