diff --git a/DataFormats/Common/interface/Wrapper.h b/DataFormats/Common/interface/Wrapper.h index 8dc9cb09995ae..3200a672d072a 100644 --- a/DataFormats/Common/interface/Wrapper.h +++ b/DataFormats/Common/interface/Wrapper.h @@ -17,7 +17,6 @@ Wrapper: A template wrapper around EDProducts to hold the product ID. #include #include #include -#include #include namespace edm { @@ -38,6 +37,9 @@ namespace edm { T const* operator->() const { return product(); } T& bareProduct() { return obj; } + T const& bareProduct() const { return obj; } + + void markAsPresent() { present = true; } //these are used by FWLite static std::type_info const& productTypeInfo() { return typeid(T); } @@ -176,6 +178,7 @@ namespace edm { } }; } // namespace soa + template inline std::shared_ptr Wrapper::tableExaminer_() const { return soa::MakeTableExaminer::make(&obj); @@ -185,4 +188,4 @@ namespace edm { #include "DataFormats/Common/interface/WrapperView.icc" -#endif +#endif // DataFormats_Common_Wrapper_h