Text entry in displaying histograms

Ok. So your case is slightly different from the one I described.
The issues is that CINT does NOT know about your chain!.
Somehow you have to declare the variable data to CINT.
So somewhere your might need to add

gROOT->ProcessLine(Form("TChain *data = (TChain*)0x%x;",&data));

Cheers,
Philippe.