LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
RefCore.cc
Go to the documentation of this file.
1 // ======================================================================
2 //
3 // RefCore: The component of art::Ptr containing
4 // - the product ID and
5 // - the product getter.
6 //
7 // ======================================================================
8 
10 
12 #include <cassert>
13 
14 bool
16 {
17  return productPtr() != nullptr ||
18  (id_.isValid() && productGetter() != 0 && productGetter()->isReady() &&
19  productGetter()->getIt() != nullptr);
20 }
virtual EDProduct const * getIt() const =0
bool isAvailable() const
Definition: RefCore.cc:15
EDProductGetter const * productGetter() const
Definition: RefCore.h:105
virtual bool isReady() const =0
bool isValid() const
Definition: ProductID.h:33
ProductID id_
Definition: RefCore.h:65
void const * productPtr() const
Definition: RefCore.h:99