ROOT Version (e.g. 6.12/02): ROOT 6.08/00
Platform, compiler (e.g. CentOS 7.3, gcc6.2): CentOS Linux release 7.4.1708 (Core) ,gcc (GCC) 4.8.5 20150623
anyone have an idea to retrieve the drawing style from previous settings?
i have set my drawing style in one plots, and want to retrieve the style settings as function parameter inputs
for example:
hist->SetLineColorAlpha(2,0.5);
draw_XX(hist);
_____________________________________
defined function :
draw_XX(hist)
{
//i would like to do something like: **Int_t col=hist->GetLineColor();**
**//
**Float_t alpha=hist->GetLineAlpha();**
TH1F* hist2=(TH1F*) hist->Clone("hist");
hist2->SetLineColorAlpha(col,alpha);
hist2->Draw();
}
one solution is to use col and alpha as function option parameters, but does root have a similar simple function just get the drawing style? if I want to change other style without building complex input function.
or: it is possible to implement root function like hist for such option?
Thanks!