LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 
21 namespace proxy {
22 
23  // ---------------------------------------------------------------------------
81  template <typename CollProxy, typename Event, typename... OptionalArgs>
82  auto getCollection(Event const& event, OptionalArgs&&... optionalArgs)
83  {
85  (event, std::forward<OptionalArgs>(optionalArgs)...);
86  }
87 
88 
89  // ---------------------------------------------------------------------------
90 
91 
92 } // namespace proxy
93 
94 
95 #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:82
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.