Run.h
Go to the documentation of this file.
1 #ifndef art_Framework_Principal_Run_h
2 #define art_Framework_Principal_Run_h
3 // vim: set sw=2 expandtab :
4 
5 //
6 // This is the primary interface for accessing per run EDProducts
7 // and inserting new derived products.
8 //
9 // For its usage, see "art/Framework/Principal/DataViewImpl.h"
10 //
11 
14 
15 namespace art {
16 
17  class Run final : private DataViewImpl {
18 
19  public: // MEMBER FUNCTIONS -- Special Member Functions
20  ~Run();
21 
22  explicit Run(RunPrincipal const& principal,
23  ModuleContext const& mc,
24  RangeSet const& rs = RangeSet::invalid());
25 
26  Run(Run const&) = delete;
27  Run(Run&&) = delete;
28  Run& operator=(Run const&) = delete;
29  Run& operator=(Run&&) = delete;
30 
31  RunID id() const;
34  using DataViewImpl::run;
35 
43  using DataViewImpl::put;
44 
47 
52 
53  // Obsolete interface (will be deprecated)
54  using DataViewImpl::get;
59 
61  };
62 
63 } // namespace art
64 
65 #endif /* art_Framework_Principal_Run_h */
66 
67 // Local Variables:
68 // mode: c++
69 // End:
PROD const * getPointerByLabel(InputTag const &tag) const
Definition: DataViewImpl.h:651
RunID id() const
Definition: Run.cc:17
ProductID getProductID(std::string const &instance_name="") const
Definition: DataViewImpl.h:338
Handle< PROD > getHandle(SelectorBase const &) const
Definition: DataViewImpl.h:382
Run & operator=(Run const &)=delete
ProcessHistory const & processHistory() const
bool get(SelectorBase const &, Handle< PROD > &result) const
Definition: DataViewImpl.h:606
Timestamp const & endTime() const
Definition: DataViewImpl.cc:99
bool getProcessParameterSet(std::string const &process, fhicl::ParameterSet &) const
void movePutProductsToPrincipal(Principal &principal)
Definition: Run.h:17
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
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition: DataViewImpl.h:686
cet::exempt_ptr< BranchDescription const > getProductDescription(ProductID) const
RunNumber_t run() const
Definition: DataViewImpl.cc:71
bool removeCachedProduct(Handle< PROD > &) const
Definition: DataViewImpl.h:927
static RangeSet invalid()
Definition: RangeSet.cc:45
Run(RunPrincipal const &principal, ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
Definition: Run.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
Timestamp const & beginTime() const
Definition: DataViewImpl.cc:92