Hi Elena, What you do cannot work for TH1D or any TH1. In your script, replace the lines: TH2F* h1 = new TH2F(); h1->SetNameTitle("h1","phi vs eta"); dt->Draw("MUO.trk.Phi0*180/pi:MUO.trk.Eta>>h1",cmisl); by dt->Draw("MUO.trk.Phi0*180/pi:MUO.trk.Eta>>h1",cmisl); h1->SetNameTitle("h1","phi vs eta"); Rene Brun Elena Vataga wrote: > > Hello rooters! > > I am making 2D plots from TTree and want to write my title instead of > default TTree one using following code in macro: > > TH2F* h1 = new TH2F(); > h1->SetNameTitle("h1","phi vs eta"); > > dt->Draw("MUO.trk.Phi0*180/pi:MUO.trk.Eta>>h1",cmisl); > > It works with TH1D but not with TH2D... > How can I set Title? > > Will be grateful for any suggestion, > regards, > Elena
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:43 MET