Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions DataFormats/Common/interface/Wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Wrapper: A template wrapper around EDProducts to hold the product ID.
#include <algorithm>
#include <cassert>
#include <memory>
#include <string>
#include <typeinfo>

namespace edm {
Expand All @@ -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); }
Expand Down Expand Up @@ -176,6 +178,7 @@ namespace edm {
}
};
} // namespace soa

template <typename T>
inline std::shared_ptr<edm::soa::TableExaminerBase> Wrapper<T>::tableExaminer_() const {
return soa::MakeTableExaminer<T>::make(&obj);
Expand All @@ -185,4 +188,4 @@ namespace edm {

#include "DataFormats/Common/interface/WrapperView.icc"

#endif
#endif // DataFormats_Common_Wrapper_h