Getting A Pointer To A Custom Class Stored In A Tree

I would like to be able to pass the pointer of a class stored in a TTree to a function using the TTree::Draw command.

Is this possible?

I was trying to do this without adding member data to the class so my group would not all need to reprocess experimental data.

The workaround I came up with was to add a member function to the class to that returns the this pointer.

It seems a little sloppy, any thoughts would be appreciated.