I would like to create an array of TPolyLine objects which will reflect a detector geometry. Then I want to fill in (or paint) each cell to look like what a TH2 will look like with colZ option. Do you have suggestions how to do that?
Probably the simplest solution is to
-create a TH2F empty
-set min and max
-draw it with colz
-draw your polylines with a color code corresponding to the min/max of the TH2F
The hist has its min/max set in a different program. I’m accessing to this histogram, and then getting its min and max. In the code I pasted before the max, along with bin content, is used to calculate color number.
Could you explain it little bit more if I’m not answering your question?
So I assume that for each polyline you have a Z value (like with option COL).
If you want the same behavior as the COL option you should mimic what is done in the function: THistPainter::PaintColorLevels(). something like: