Results.h
Go to the documentation of this file.
1 #ifndef art_Framework_Principal_Results_h
2 #define art_Framework_Principal_Results_h
3 // vim: set sw=2 expandtab :
4 
5 // ==================================================================
6 // This is the primary interface for accessing results-level
7 // EDProducts and inserting new results-level EDProducts.
8 //
9 // For its usage, see "art/Framework/Principal/DataViewImpl.h"
10 // ==================================================================
11 
14 
15 namespace art {
16 
17  class Results final : private DataViewImpl {
18  public:
19  ~Results();
20 
21  explicit Results(ResultsPrincipal const& p, ModuleContext const& mc);
22 
23  Results(Results const&) = delete;
24  Results(Results&&) = delete;
25  Results& operator=(Results const&) = delete;
26  Results& operator=(Results&&) = delete;
27 
35  using DataViewImpl::put;
36 
41 
42  // Obsolete interface (will be deprecated)
43  using DataViewImpl::get;
48 
50  };
51 
52 } // namespace art
53 
54 #endif /* art_Framework_Principal_Results_h */
55 
56 // Local Variables:
57 // mode: c++
58 // End:
PROD const * getPointerByLabel(InputTag const &tag) const
Definition: DataViewImpl.h:651
ProductID getProductID(std::string const &instance_name="") const
Definition: DataViewImpl.h:338
Handle< PROD > getHandle(SelectorBase const &) const
Definition: DataViewImpl.h:382
bool get(SelectorBase const &, Handle< PROD > &result) const
Definition: DataViewImpl.h:606
void movePutProductsToPrincipal(Principal &principal)
std::vector< InputTag > getInputTags(SelectorBase const &selector=MatchAllSelector{}) const
Definition: DataViewImpl.h:457
std::vector< ProductToken< PROD > > getProductTokens(SelectorBase const &selector=MatchAllSelector{}) const
Definition: DataViewImpl.h:466
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
Definition: DataViewImpl.h:633
std::vector< Handle< PROD > > getMany(SelectorBase const &selector=MatchAllSelector{}) const
Definition: DataViewImpl.h:479
EDProductGetter const * productGetter(ProductID const pid) const
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
Definition: DataViewImpl.h:441
void getManyByType(std::vector< Handle< PROD >> &results) const
Definition: DataViewImpl.h:677
p
Definition: test.py:223
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition: DataViewImpl.h:686
cet::exempt_ptr< BranchDescription const > getProductDescription(ProductID) const
bool removeCachedProduct(Handle< PROD > &) const
Definition: DataViewImpl.h:927
Results(ResultsPrincipal const &p, ModuleContext const &mc)
Definition: Results.cc:10
std::size_t getView(std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, std::vector< ELEMENT const * > &result) const
Definition: DataViewImpl.h:500
bool getByToken(ProductToken< PROD > const &token, Handle< PROD > &result) const
Definition: DataViewImpl.h:660
PROD const & getProduct(InputTag const &tag) const
Definition: DataViewImpl.h:367
Results & operator=(Results const &)=delete