1 #ifndef DataFormats_Common_ConvertHandle_h
2 #define DataFormats_Common_ConvertHandle_h
15 namespace handleimpl {
26 void const* basicWrapper = bh.wrapper();
27 if UNLIKELY (
nullptr == basicWrapper) {
40 void const* basicWrapper = bh.wrapper();
41 if UNLIKELY (basicWrapper ==
nullptr) {
44 if UNLIKELY (!(bh.wrapper()->dynamicTypeInfo() ==
typeid(
T))) {
void throwConvertTypeError(std::type_info const &expected, std::type_info const &actual)
Handle< T > convert_handle(BasicHandle &&bh) noexcept(true)
T const * product() const
Handle< T > convert_handle_check_type(BasicHandle &&bh)
std::shared_ptr< edm::HandleExceptionFactory const > makeInvalidReferenceException()
static HepMC::HEPEVT_Wrapper wrapper