Hi , i want to insert a line between a series of points (x,y,z) in a TH3F object , in order to rappresent the path of a neutron in a material.
char name [20];
sprintf(name, "%s%d%s","neutrone",j,".root");
TFile *file_geom = new TFile(name,"recreate");
TH3F *hmsic = new TH3F(name,"Distribuzione spaziale",1000,-6,6,100,-6,6,100,-6,6);
after the creation of th3f i take the coordinates of the point.
[code]hmsic->SetMarkerColor(8);
hmsic->SetMarkerStyle(34);
hmsic->SetMarkerSize(1);
hmsic->Fill(x,y,z);
hmsic->Draw();[/code]
For now I can fill the th3f but I do not know how to connect them with a line or tag them in the order of interaction.
Thank you