The TDrawFeedback class is only provided as an example of usage of the Feedback mechanism, namely to show how to connect to the Feedback(TList *) signal emitted by PROOF. You should write your own feedback class and in its Feedback(TList *) method (or in the one the you Connect in the constructor) you can do what you need, in particular you can create your canvases and draw the histograms members of your object.
The TDrawFeedback class is only provided as an example of usage of the Feedback mechanism, namely to show how to connect to the Feedback(TList *) signal emitted by PROOF. You should write your own feedback class and in its Feedback(TList *) method (or in the one the you Connect in the constructor) you can do what you need, in particular you can create your canvases and draw the histograms members of your object.
If we remove the dynamic_cast, we can no longer call DrawCopy which is not part of the TObject interface but only appear in TH1 (and a few other interfaces).
If we remove the dynamic_cast, we can no longer call DrawCopy which is not part of the TObject interface but only appear in TH1 (and a few other interfaces).
DrawCopy and DrawClone have some significant differences and are not interchangeable (for example it set the cloned histogram to belong to the canvas rather than the current directory).
What we can do is to call DrawCopy for histograms and DrawClone for the others.
However, TDrawFeedback is really for illustration only, and people should really just use it as the basic example of how the whole thing works, and as starting point for their own feedback-displaying class.