Hi, How can I loop over some variable list and ntuple list and make plots with the TNtuple::Draw method? I want to do something like: for vars in z rho phi for tuples in net1 net2 net3 net4 tuples->Draw("abs(t_net-t_phot):[vars]"); endfor endfor What I do now is: // * z net1->Draw("abs(t_net-t_phot):z","","prof"); net2->Draw("abs(t_net-t_phot):z","","prof same"); net3->Draw("abs(t_net-t_phot):z","","prof same"); net4->Draw("abs(t_net-t_phot):z","","prof same"); c1.Update(); psfile.NewPage(); // * rho net1->Draw("abs(t_net-t_phot):rho","","prof"); net2->Draw("abs(t_net-t_phot):rho","","prof same"); net3->Draw("abs(t_net-t_phot):rho","","prof same"); net4->Draw("abs(t_net-t_phot):rho","","prof same"); c1.Update(); psfile.NewPage(); // * phi net1->Draw("abs(t_net-t_phot):phi","","prof"); net2->Draw("abs(t_net-t_phot):phi","","prof same"); net3->Draw("abs(t_net-t_phot):phi","","prof same"); net4->Draw("abs(t_net-t_phot):phi","","prof same"); c1.Update(); thanks! daan
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET