LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
DelayedReader.cc
Go to the documentation of this file.
3 // vim: set sw=2 expandtab :
4 
6 
7 using namespace std;
8 
9 namespace art {
10 
11  DelayedReader::DelayedReader() = default;
12  DelayedReader::~DelayedReader() noexcept = default;
13 
14  std::unique_ptr<EDProduct>
15  DelayedReader::getProduct(Group const* grp,
16  ProductID const pid,
17  RangeSet& rs) const
18  {
19  return getProduct_(grp, pid, rs);
20  }
21 
22  void
23  DelayedReader::setPrincipal(cet::exempt_ptr<Principal> principal)
24  {
25  setPrincipal_(principal);
26  }
27 
28  void
29  DelayedReader::setPrincipal_(cet::exempt_ptr<Principal>)
30  {}
31 
32  vector<ProductProvenance>
33  DelayedReader::readProvenance() const
34  {
35  return readProvenance_();
36  }
37 
38  vector<ProductProvenance>
39  DelayedReader::readProvenance_() const
40  {
41  return {};
42  }
43 
44  bool
45  DelayedReader::isAvailableAfterCombine(ProductID pid) const
46  {
47  return isAvailableAfterCombine_(pid);
48  }
49 
50  bool
51  DelayedReader::isAvailableAfterCombine_(ProductID) const
52  {
53  return false;
54  }
55 
56  std::unique_ptr<Principal>
57  DelayedReader::readFromSecondaryFile(int& idx)
58  {
59  return readFromSecondaryFile_(idx);
60  }
61 
62  std::unique_ptr<Principal>
63  DelayedReader::readFromSecondaryFile_(int& /*idx*/)
64  {
65  return nullptr;
66  }
67 
68 } // namespace art
STL namespace.
Definition: MVAAlg.h:12