HI Axel,
Maybe I am not understanding something, but I do the following,
THStack hs(“tag_IPinfo_weight2D_trkPt_u”,“Y”,“YProj”,“Y Projections for X Slices”,1,50,"","") (I also tried it without the trailing ,"","")
where I want to get Y projections for the TH2F tag_IPinfo_weight2D_trkPt_u
I get an error message that no definition of the constructor matches my arguments.
Error: Can’t call THStack::THStack(“tag_IPinfo_weight2D_trkPt_u”,“Y”,“YProj”,“Y Projections for X Slices”,1,50,"","") in current scope (tmpfile):1:
Possible candidates are…
filename line:size busy function type and name (in THStack)
…
(compiled) 0:0 0 public: THStack THStack(const TH1* hist,Option_t* axis=x,const char* name=0,const char* title=0,Int_t firstbin=-1,Int_t lastbin=-1,Int_t firstbin2=-1,Int_t lastbin2=-1,Option_t* proj_option=,Option_t* draw_option=);
However, at root.cern.ch/root/html/THStack.h … ck:THStack
I see - hist: the histogram used for the projections. Can be an object deriving from TH2 or TH3.