CMS 3D CMS Logo

FWGenericHandle Class Reference

#include <Fireworks/Core/interface/FWGenericHandle.h>

Detailed Description

Description: Allows interaction with data in the Event without actually using the C++ class. Ported to work with

Usage: This is a rip-off of edm::FWGenericHandle. I extended it to work with edm::EventBase as well.

The FWGenericHandle allows one to get data back from the edm::EventBase as a edm::ObjectWithDict instead of as the actual C++ class type.

make a handle to hold an instance of 'MyClass' edm::FWGenericHandle myHandle("MyClass");

event.getByLabel("mine",myHandle);

call the print method of 'MyClass' instance myHandle->invoke("print);